application/helpers/qanda_helper.php 12

Type Line Description
TODO 1448 : move to a dedicated function
TODO 2028 : check if really used
TODO 2046 Correct default?
TODO 2062 : move to a dedicated function
TODO 2069 check if still used
TODO 2182 : check if $sValueHidden === $sValue
TODO 2362 : check if it should be the same than javavalue
TODO 2400 $value is not defined for some execution paths.
TODO 2414 : check if it should be the same than javavalue
TODO 2573 Regression here? Should use LEMval(minfiles) like above
TODO 3112 Slider and multiple-numeric input should really be two different question types
TODO 6036 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 5549 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 3915 Internal error if this happens
TODO 4394 - 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 4509 - cache results and generated JavaScript equations?
TODO 4895 default should eventually be false
TODO 5090 only important thing from StartProcessingGroup?
TODO 5308 only important thing from StartProcessingGroup?
TODO 5361 - now that using $this->updatedValues, may be able to remove local copies of it (unless needed by other sub-systems)
TODO 5414 - add SQL error?
TODO 5415 - report SQL error?
TODO 5447 Internal error if this happens
TODO 5515 This kills the session if adminemail is defined, so the queries below won't work.
TODO 5516 - report SQL error?
TODO 5519 - add SQL error?
TODO 5803 only important thing from StartProcessingGroup?
TODO 5942 - what is desired behavior?
TODO 6081 how used if random?
TODO 6137 is this needed?
TODO 6236 is this needed?
TODO 6282 is this needed?
TODO 6335 is this needed?
TODO 6380 is this needed?
TODO 6416 - check this
TODO 6422 - why is array_unique needed here?
TODO 6507 - what about 'other'?
TODO 6551 - what about 'other'?
TODO 6562 - what about 'other'?
TODO 6666 check for errors?
TODO 6688 - currently invalidates all - should only invalidate those that truly fail validation rules.
TODO 7048 - what if this is called using Survey or Data Entry format?
TODO 7513 Internal error if this happens
TODO 7882 - is different type needed for text? Or process value to striphtml?
TODO 8701 Make a wrapper class around date converter, which constructor takes to-lang and from-lang
TODO 10026 - 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 2100 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 559 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 355 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 915 calcul correct value
TODO 1541 refactore multiple function to call the model, and then push all the common stuff to a model function for a dry code
TODO 1685 this should be get from the question model
TODO 2025 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 2025 - 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 608 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 3

Type Line Description
TODO 22 Bell animation
TODO 341 Check first_read = null instead?
TODO 386 read = null?

application/models/Survey.php 1

Type Line Description
TODO 751 : 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 7

Type Line Description
TODO 278 : Move this div inside each correct view ASAP !
TODO 297 : Move this div inside each correct view ASAP !
TODO 306 : while refactoring, we must replace the use of $aViewUrls by $aData[.. conditions ..], and then call to function such as $this->_nsurveysummary($aData);
TODO 345 : http://goo.gl/ABl5t5
TODO 357 : Move this div inside each correct view ASAP !
TODO 392 Real fix: No database queries while doing database update, meaning
TODO 913 : 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