application/helpers/qanda_helper.php 12

Type Line Description
TODO 1440 : move to a dedicated function
TODO 2020 : check if really used
TODO 2038 Correct default?
TODO 2054 : move to a dedicated function
TODO 2061 check if still used
TODO 2174 : check if $sValueHidden === $sValue
TODO 2354 : check if it should be the same than javavalue
TODO 2392 $value is not defined for some execution paths.
TODO 2406 : check if it should be the same than javavalue
TODO 2565 Regression here? Should use LEMval(minfiles) like above
TODO 3104 Slider and multiple-numeric input should really be two different question types
TODO 6028 check in prev headcolwidth if style='width:$cellwidth' and not style='width:\"$cellwidth\"'

application/helpers/frontend_helper.php 2

Type Line Description
TODO 14 Why needed?
TODO 646 What is holdpass, and is it OK to skip these lines if it is set? Related to 'Resume later' functionality

application/helpers/sanitize_helper.php 2

Type Line Description
TODO 293 define the exact format of the username
TODO 306 define the exact format of the username

application/helpers/SurveyRuntimeHelper.php 4

Type Line Description
TODO 429 set this to true if in admin mode but not if running a survey
TODO 650 FIXME
TODO 690 - does this work automatically for token answer persistence? Used to be savedsilent()
TODO 1076 - retrieveAnswers is slow - queries database separately for each question. May be fixed in _CI or _YII ports, so ignore for now

application/helpers/questionHelper.php 2

Type Line Description
TODO 1029 add these later? "1F",
TODO 1038 add these later? "1F",

application/helpers/replacements_helper.php 1

Type Line Description
TODO 692 Really generate this each time function is called? Only relevant for startpage.tstpl

application/helpers/common_helper.php 5

Type Line Description
TODO 2159 SQrelevance for different scales? $fieldmap[$fieldname]['SQrelevance']=$abrow['relevance'];
TODO 2984 Check list_filter values to make sure questions are previous?
TODO 3053 Check list_filter values to make sure questions are previous?
TODO 3835 : Adding the onload/onhover etc ... or remove this false security function
TODO 5545 remove one of the Yii::app()->session see bug #5901

application/helpers/expressions/em_manager_helper.php 43

Type Line Description
TODO 240 - add example from survey using assessments
TODO 329 ??
TODO 379 - ??
TODO 383 ??
TODO 1280 - implement qcode naming for this
TODO 1490 generic validation as to dateformat[SGQA].value : BUT not same in PHP and JS
TODO 2879 - create equations for these?
TODO 2882 ? How does it work?
TODO 3323 - create em_num_files class so can sepately style num_files vs. num_answers
TODO 3611 - do I need to force refresh, or trust that createFieldMap will cache langauges properly?
TODO 3909 Internal error if this happens
TODO 4382 - in a running survey, only need to process the current Group. For Admin mode, do we need to process all prior questions or not?
TODO 4497 - cache results and generated JavaScript equations?
TODO 4883 default should eventually be false
TODO 5078 only important thing from StartProcessingGroup?
TODO 5296 only important thing from StartProcessingGroup?
TODO 5349 - now that using $this->updatedValues, may be able to remove local copies of it (unless needed by other sub-systems)
TODO 5402 - add SQL error?
TODO 5403 - report SQL error?
TODO 5435 Internal error if this happens
TODO 5503 This kills the session if adminemail is defined, so the queries below won't work.
TODO 5504 - report SQL error?
TODO 5507 - add SQL error?
TODO 5791 only important thing from StartProcessingGroup?
TODO 5930 - what is desired behavior?
TODO 6069 how used if random?
TODO 6125 is this needed?
TODO 6224 is this needed?
TODO 6270 is this needed?
TODO 6323 is this needed?
TODO 6368 is this needed?
TODO 6404 - check this
TODO 6410 - why is array_unique needed here?
TODO 6495 - what about 'other'?
TODO 6539 - what about 'other'?
TODO 6550 - what about 'other'?
TODO 6654 check for errors?
TODO 6676 - currently invalidates all - should only invalidate those that truly fail validation rules.
TODO 7036 - what if this is called using Survey or Data Entry format?
TODO 7501 Internal error if this happens
TODO 7870 - is different type needed for text? Or process value to striphtml?
TODO 8689 Make a wrapper class around date converter, which constructor takes to-lang and from-lang
TODO 10004 - need this: $q['info']['same_default'];

application/helpers/expressions/em_core_helper.php 4

Type Line Description
TODO 70 - change this back to false
TODO 442 try to determine datatype?
TODO 1874 - Since want to use <span> for dynamic substitution, what if there are recursive substititons?
TODO 1937 - encode within SPAN?

application/helpers/admin/ajax_helper.php 1

Type Line Description
TODO 151 Check if user is logged in

application/helpers/admin/import_helper.php 1

Type Line Description
TODO 2099 set proper default

application/helpers/admin/statistics_helper.php 1

Type Line Description
TODO 3530 Why is $headPDF sometimes undefined here?

application/controllers/survey/index.php 1

Type Line Description
TODO 201 can this be moved to the top?

application/controllers/RegisterController.php 1

Type Line Description
TODO 377 : move xss filtering in model

application/controllers/UploaderController.php 1

Type Line Description
TODO 191 : unlink this file since this is just a preview. But we can do it only if it's not needed, and still needed to have the file content

application/controllers/admin/authentication.php 2

Type Line Description
TODO 163 for sake of clarity, the plugin function should be renamed to authenticate().
TODO 171 move this function to the user object

application/controllers/admin/conditionsaction.php 2

Type Line Description
TODO 455 Is this form needed?
TODO 1233 Check if $p_newscenarionum is null

application/controllers/admin/translate.php 2

Type Line Description
TODO 49 need to do some validation here on surveyid
TODO 564 not touched

application/controllers/admin/PluginHelper.php 1

Type Line Description
TODO 35 Assume this for all plugins?

application/controllers/admin/database.php 2

Type Line Description
TODO 38 This variable seems to be never set or used in any function call?
TODO 800 sanitise XSS

application/controllers/admin/useraction.php 1

Type Line Description
TODO 101 If error, we want to keep the form values. Can't do it nicely without CActiveForm?

application/controllers/admin/questiongroups.php 1

Type Line Description
TODO 350 This is not an array, but a string "en"

application/controllers/admin/ExpressionValidate.php 1

Type Line Description
TODO 276 : Find error in class name, style etc ....

application/controllers/admin/surveypermission.php 2

Type Line Description
TODO 86 Filter this in SQL query.
TODO 115 Commented by lemeur

application/controllers/admin/participantsaction.php 5

Type Line Description
TODO 1716 What's the Difference between lang and langdata?
TODO 2337 This is a comma separated string of ids
TODO 2361 Why?
TODO 2388 This code can't be reached
TODO 2453 Maybe do this with SQL instead?

application/controllers/admin/tokens.php 5

Type Line Description
TODO 35 : check if it does something different than the model function
TODO 226 Y or just true, and a imap_delete
TODO 275 permission checks
TODO 287 permission checks
TODO 313 Why needed?

application/controllers/admin/responses.php 1

Type Line Description
TODO 531 : add it to response delete (maybe test if timing table exist)

application/controllers/admin/templates.php 1

Type Line Description
TODO 841 : use config.xml

application/controllers/admin/questions.php 4

Type Line Description
TODO 914 calcul correct value
TODO 1540 refactore multiple function to call the model, and then push all the common stuff to a model function for a dry code
TODO 1684 this should be get from the question model
TODO 2024 Longterm, change 'other' to boolean; change the model rules

application/controllers/admin/update.php 2

Type Line Description
TODO 414 : aData should contains information about each step
TODO 609 : if no update available, set session about it...

application/controllers/admin/dataentry.php 1

Type Line Description
TODO 2028 - can questions be hidden? Are JavaScript variables names used? Consistently with everywhere else?

application/models/Participant.php 5

Type Line Description
TODO 167 For some reason, the delete button is smaller than the others
TODO 1550 Always string??
TODO 1760 Weird...
TODO 1806 What is id here? Could it overwrite something?
TODO 1815 Why use two variables for this?

application/models/AdminTheme.php 1

Type Line Description
TODO 94 replace everywhere the call to Yii::app()->getConfig('adminstyleurl) by $oAdminTheme->sTemplateUrl;

application/models/QuestionAttribute.php 3

Type Line Description
TODO 132 use an array like for a form submit, so we can parse it from the controller instead of using $_POST directly here
TODO 137 if (in_array($oQuestion->attributes, $sAttribute))
TODO 172 : replace by Yii::app()->cache

application/models/UpdateForm.php 3

Type Line Description
TODO 282 : RESTORE REPLACE NEWER !!
TODO 534 : add postgresql
TODO 1026 : Could test if curl is loaded, and if not, use httprequest2

application/models/SurveyDynamic.php 1

Type Line Description
TODO 609 This provide a first step to enable the old jQgrid selector system, and could be use for users and tokens

application/models/Question.php 2

Type Line Description
TODO 771 : USE AR PATTERN
TODO 776 : USE AR PATTERN

application/models/TemplateConfiguration.php 2

Type Line Description
TODO 96 more complex checks
TODO 139 remove

application/models/Permission.php 8

Type Line Description
TODO 521 in entry script, if CConsoleApplication, set user as superadmin
TODO 527 plugin should not be able to override the permission system (security issue),
TODO 546 see above about entry script and superadmin
TODO 553 should not be necessary
TODO 561 should not be necessary
TODO 572 give the rights to owner adding line in permissions table, so it will return true with the normal way
TODO 579 give the rights to superadmin adding line in permissions table, so it will return true with the normal way
TODO 600 that should be the only way to get the permission,

application/models/TokenDynamic.php 2

Type Line Description
TODO 737 link to Response grid filtered on the base of this Token (when responses will be rewritten using CGridView instead of jQgrid)
TODO 783 permission check

application/models/Notification.php 5

Type Line Description
TODO 22 Bell animation
TODO 335 Check first_read = null instead?
TODO 370 Escape survey id
TODO 376 Escape
TODO 380 read = null?

application/models/Survey.php 1

Type Line Description
TODO 748 : replace this with a HAS MANY relation !

application/core/LSUserIdentity.php 1

Type Line Description
TODO 68 rename the plugin function authenticate()

application/core/Survey_Common_Action.php 6

Type Line Description
TODO 266 : Move this div inside each correct view ASAP !
TODO 285 : Move this div inside each correct view ASAP !
TODO 294 : while refactoring, we must replace the use of $aViewUrls by $aData[.. conditions ..], and then call to function such as $this->_nsurveysummary($aData);
TODO 333 : http://goo.gl/ABl5t5
TODO 345 : Move this div inside each correct view ASAP !
TODO 890 : create subfunctions

application/core/plugins/ExportSTATAxml/STATAxmlWriter.php 1

Type Line Description
TODO 444 We could skip this loop if we had answer code

application/core/plugins/QuickMenu/QuickMenu.php 4

Type Line Description
TODO 484 Should not be hard-coded
TODO 504 Should not be hard-coded
TODO 526 Should not be hard-coded
TODO 531 Should be handled by plugin version system

application/commands/WipeCommand.php 1

Type Line Description
TODO 106 a valid error process

application/commands/InstallCommand.php 1

Type Line Description
TODO 85 a valid error process

application/commands/ResetPasswordCommand.php 1

Type Line Description
TODO 36 a valid error process