application/helpers/qanda_helper.php 10

Type Line Description
TODO 1430 : move to a dedicated function
TODO 1929 : check if really used
TODO 1943 Correct default?
TODO 1959 : move to a dedicated function
TODO 2067 : check if $sValueHidden === $sValue
TODO 2249 : check if it should be the same than javavalue
TODO 2283 $value is not defined for some execution paths.
TODO 2295 : check if it should be the same than javavalue
TODO 2358 Regression here? Should use LEMval(minfiles) like above
TODO 2847 Slider and multiple-numeric input should really be two different question types

application/helpers/frontend_helper.php 4

Type Line Description
TODO 16 Why needed?
TODO 950 rewrite this THE YII WAY !!!! (application/third_party + internal config for namespace + aliases; etc)
TODO 1064 move the sql queries to a model
TODO 1641 replace by group model method

application/helpers/sanitize_helper.php 2

Type Line Description
TODO 301 define the exact format of the username
TODO 314 define the exact format of the username

application/helpers/SurveyRuntimeHelper.php 11

Type Line Description
TODO 46 To respect object oriented design, all those "states" should be move to SurveyDynamic model, or its related models via relations.
TODO 68 To respect object oriented design, all those "states" should be move to Response model, or its related models via relations.
TODO 112 move somewhere else
TODO 181 - retrieveAnswers is slow - queries database separately for each question. May be fixed in _CI or _YII ports, so ignore for now
TODO 645 set this to true if in admin mode but not if running a survey
TODO 752 twig
TODO 940 Find out why language is not fetched correctly the first time. Where is s_lang set?
TODO 1027 check that line:
TODO 1516 find where they are defined before this call
TODO 1586 check with markus why $loadall, it's never ever defined, even in master branch
TODO 1691 check this:

application/helpers/questionHelper.php 2

Type Line Description
TODO 1175 add these later? "1F",
TODO 1185 add these later? "1F",

application/helpers/Hash.php 1

Type Line Description
FIXME 106 !

application/helpers/common_helper.php 9

Type Line Description
FIXME 706 rename and/or document this
TODO 908 move to template model
FIXME 949 insert UestionGroup model to here
TODO 1752 SQrelevance for different scales? $fieldmap[$fieldname]['SQrelevance']=$abrow['relevance'];
TODO 2465 input Survey Object
TODO 2486 input Survey Object
TODO 3045 : Adding the onload/onhover etc ... or remove this false security function
TODO 4229 use Yii model forms
TODO 4385 remove one of the Yii::app()->session see bug #5901

application/helpers/userstatistics_helper.php 1

Type Line Description
TODO 1880 Support three or more duplicates.

application/helpers/expressions/em_manager_helper.php 43

Type Line Description
TODO 244 - add example from survey using assessments
TODO 333 ??
TODO 383 - ??
TODO 387 ??
TODO 1279 - implement qcode naming for this
TODO 1488 generic validation as to dateformat[SGQA].value : BUT not same in PHP and JS
TODO 2875 - create equations for these?
TODO 2878 ? How does it work?
TODO 3334 - create em_num_files class so can sepately style num_files vs. num_answers
TODO 3623 - do I need to force refresh, or trust that createFieldMap will cache langauges properly?
TODO 3931 Internal error if this happens
TODO 4408 - 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 4523 - cache results and generated JavaScript equations?
TODO 4912 default should eventually be false
TODO 5103 only important thing from StartProcessingGroup?
TODO 5319 only important thing from StartProcessingGroup?
TODO 5371 - now that using $this->updatedValues, may be able to remove local copies of it (unless needed by other sub-systems)
TODO 5428 - add SQL error?
TODO 5429 - report SQL error?
TODO 5461 Internal error if this happens
TODO 5523 This kills the session if adminemail is defined, so the queries below won't work.
TODO 5524 - report SQL error?
TODO 5527 - add SQL error?
TODO 5816 only important thing from StartProcessingGroup?
TODO 5955 - what is desired behavior?
TODO 6094 how used if random?
TODO 6150 is this needed?
TODO 6240 is this needed?
TODO 6286 is this needed?
TODO 6339 is this needed?
TODO 6384 is this needed?
TODO 6420 - check this
TODO 6426 - why is array_unique needed here?
TODO 6511 - what about 'other'?
TODO 6555 - what about 'other'?
TODO 6566 - what about 'other'?
TODO 6708 check for errors?
TODO 6715 - currently invalidates all - should only invalidate those that truly fail validation rules.
TODO 7075 - what if this is called using Survey or Data Entry format?
TODO 7551 Internal error if this happens
TODO 7917 - is different type needed for text? Or process value to striphtml?
TODO 8721 Make a wrapper class around date converter, which constructor takes to-lang and from-lang
TODO 10063 - need this: $q['info']['same_default'];

application/helpers/expressions/em_core_helper.php 4

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

application/helpers/update/updatedb_helper.php 1

Type Line Description
TODO 2540 change permission from template to theme

application/helpers/remotecontrol/remotecontrol_handle.php 3

Type Line Description
FIXME 2571 $sToken is undefined!!
FIXME 2725 undefined function getQuestionAttributeValues()
FIXME 2765 $filename not defined!!!

application/helpers/admin/ajax_helper.php 1

Type Line Description
TODO 160 Check if user is logged in

application/helpers/admin/import_helper.php 1

Type Line Description
TODO 2044 set proper default

application/helpers/admin/statistics_helper.php 3

Type Line Description
TODO 1690 Support three or more duplicates.
FIXME 2052 $MyCache is undefined
TODO 2582 Support three or more duplicates.

application/controllers/survey/index.php 1

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

application/controllers/RegisterController.php 1

Type Line Description
TODO 408 : move xss filtering in model

application/controllers/UploaderController.php 1

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

Type Line Description
TODO 167 for sake of clarity, the plugin function should be renamed to authenticate().

application/controllers/admin/conditionsaction.php 3

Type Line Description
TODO 440 Is this form needed?
TODO 1130 Check if $p_newscenarionum is null
FIXME 1663 a lot of broken things here!! is this used at all?

application/controllers/admin/themes.php 1

Type Line Description
TODO 967

application/controllers/admin/translate.php 2

Type Line Description
TODO 51 need to do some validation here on surveyid
TODO 547 not touched

application/controllers/admin/PluginHelper.php 1

Type Line Description
TODO 43 Assume this for all plugins?

application/controllers/admin/database.php 1

Type Line Description
TODO 565 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 330 This is not an array, but a string "en"

application/controllers/admin/ExpressionValidate.php 1

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

application/controllers/admin/surveypermission.php 3

Type Line Description
FIXME 55 this HTML stuff MUST BE IN VIEWS!!
TODO 84 Filter this in SQL query.
TODO 109 Commented by lemeur

application/controllers/admin/participantsaction.php 5

Type Line Description
TODO 1626 What's the Difference between lang and langdata?
TODO 2209 This is a comma separated string of ids
TODO 2233 Why?
TODO 2254 This code can't be reached
TODO 2313 Maybe do this with SQL instead?

application/controllers/admin/tokens.php 4

Type Line Description
TODO 40 : check if it does something different than the model function
TODO 244 permission checks
TODO 256 permission checks
TODO 281 Why needed?

application/controllers/admin/responses.php 1

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

application/controllers/admin/surveyadmin.php 1

Type Line Description
TODO 173 document me, please :)

application/controllers/admin/questions.php 4

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

application/controllers/admin/update.php 2

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

application/libraries/PluginManager/PluginBase.php 1

Type Line Description
TODO 389 Create a config object for this? One object for each config field? Then loop through those fields.

application/libraries/Save.php 2

Type Line Description
TODO 368 $this->aSaveErrors
TODO 395 $this->aSaveErrors

application/models/User.php 5

Type Line Description
TODO 142 get this via $this instead of param
TODO 158 get this via $this instead of param
TODO 201 should be done via $oUser->delete directly
TODO 304 should be static
TODO 447 should be static

application/models/QuestionTemplate.php 1

Type Line Description
TODO 424 code duplication

application/models/Participant.php 6

Type Line Description
TODO 177 For some reason, the delete button is smaller than the others
TODO 1533 Always string??
TODO 1724 Weird...
TODO 1766 What is id here? Could it overwrite something?
TODO 1777 Why use two variables for this?
FIXME 1911 is this needed? this is currently not used here!

application/models/AdminTheme.php 1

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

application/models/Token.php 1

Type Line Description
TODO 52 Describe me!

application/models/Condition.php 1

Type Line Description
TODO 77 should be singular, not plural

application/models/QuestionAttribute.php 3

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

application/models/Response.php 1

Type Line Description
TODO 150 Internal error - wrong filename saved?

application/models/TemplateConfig.php 2

Type Line Description
TODO 173 attribute system rather than specific fields for RTL
TODO 993 try to refactore most of those methods in TemplateConfiguration and TemplateManifest so we can define their body here.

application/models/UserGroup.php 2

Type Line Description
TODO 64 remove Users... see Louis' comment
TODO 102 seems to be unused, probably shouldn't be done like that

application/models/UpdateForm.php 4

Type Line Description
TODO 244 $downloadid not used locally
TODO 282 : RESTORE REPLACE NEWER !!
TODO 508 : add postgresql
TODO 948 : Could test if curl is loaded, and if not, use httprequest2

application/models/Answer.php 2

Type Line Description
TODO 60 HAS_ONE relation should be in singular, not plural $answer->group, $answer->question
TODO 102 get via Question relations

application/models/SurveyDynamic.php 1

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

application/models/Question.php 3

Type Line Description
TODO 41 should be singular
TODO 42 should be singular
TODO 237 move getQuestionAttributesSettings() to QuestionAttribute model to avoid code duplication

application/models/SurveyTimingDynamic.php 1

Type Line Description
TODO 157 $language is not used locally

application/models/TemplateConfiguration.php 4

Type Line Description
TODO 191 Move to SurveyGroup creation, right now the 'lazy loading' approach is ok.
TODO 231 Move to SurveyGroup creation, right now the 'lazy loading' approach is ok.
TODO 267 Move to SurveyGroup creation, right now the 'lazy loading' approach is ok.
TODO 802 the remove methode

application/models/Permission.php 7

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

application/models/TemplateManifest.php 3

Type Line Description
TODO 261 load to DB
TODO 588 create a method "setToDefault"
TODO 724 "replace" and "remove"

application/models/TokenDynamic.php 3

Type Line Description
TODO 36 Describe me!
TODO 818 link to Response grid filtered on the base of this Token (when responses will be rewritten using CGridView instead of jQgrid)
TODO 851 permission check

application/models/UserInGroup.php 1

Type Line Description
TODO 54 should be singular

application/models/ParticipantShare.php 1

Type Line Description
TODO 25 should be singular

application/models/SurveyLink.php 1

Type Line Description
TODO 156 this should be in survey model

application/models/Notification.php 6

Type Line Description
TODO 23 Bell animation
TODO 272 : via survey relations
TODO 285 this should be in Survey model (relations?)
TODO 301 this should be in Survey model
TODO 317 Check first_read = null instead?
TODO 361 read = null?

application/models/Assessment.php 1

Type Line Description
TODO 165 Does not work with Postgres.

application/models/Survey.php 2

Type Line Description
TODO 1562 POST handling should be done in controller!
TODO 1604 POST handling should be done in controller!

application/core/LSUserIdentity.php 1

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

application/core/LS_Twig_Extension.php 2

Type Line Description
TODO 255 publish a default image "not found"
TODO 276 publish a default image "not found"

application/core/LSYii_ClientScript.php 1

Type Line Description
TODO 265 check if tmp directory can be named differently via config

application/core/LSCGettextMessageSource.php 1

Type Line Description
TODO 23 Where is catalog set (except default value)?

application/core/Survey_Common_Action.php 4

Type Line Description
TODO 261 : while refactoring, we must replace the use of $aViewUrls by $aData[.. conditions ..], and then call to function such as $this->_nsurveysummary($aData);
TODO 288 : http://goo.gl/ABl5t5
TODO 351 Real fix: No database queries while doing database update, meaning
TODO 809 : create subfunctions

application/core/plugins/extendedStartPage/views/publicSurveyList_extended.php 1

Type Line Description
FIXME 145 makeLanguageChanger() is not accessible from here??

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

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

application/core/LSETwigViewRenderer.php 1

Type Line Description
TODO 63 Panic or default to something else?

application/commands/DemomodeCommand.php 1

Type Line Description
TODO 28 a valid error process

application/commands/WipeCommand.php 1

Type Line Description
TODO 128 a valid error process

application/commands/InstallCommand.php 1

Type Line Description
TODO 107 a valid error process

application/commands/ResetPasswordCommand.php 1

Type Line Description
TODO 37 a valid error process

tests/TestHelper.php 1

Type Line Description
FIXME 95 !! $LEMsessid is not defined

tests/surveys/AjaxModeTest.php 2

Type Line Description
TODO 34 This works when run individually, but not
TODO 76 Temporary, test fails here (but only on fresh install).

tests/surveys/LanguageChangerTest.php 1

Type Line Description
TODO 97 Use \createFieldMap instead?

tests/questions/MultipleChoiceNextPreviousTest.php 1

Type Line Description
TODO 67 Does not work without this.

tests/data/views/adminUsersViews.php 3

Type Line Description
TODO 4 not complete views list
TODO 13 needs a POST
FIXME 18 bug, also: needs a POST

tests/data/views/adminSettingsViews.php 1

Type Line Description
TODO 4 not complete views list

tests/data/views/adminBaseViews.php 2

Type Line Description
TODO 5 currtnly these only contain pages that do not depend on opening a survey!
FIXME 19 this is broken

tests/data/views/adminGeneralSettingsViews.php 3

Type Line Description
TODO 5 not complete views list
TODO 15 Can't hardcode &id=2 if you using other urlFormat (path).
TODO 20 Can't hardcode &id=1 if you using other urlFormat (path).

tests/data/views/adminSurveyViews.php 7

Type Line Description
TODO 4 not complete views list
TODO 19
FIXME 22 these FAIL !!
TODO 34
TODO 41
FIXME 43 these FAIL !!
FIXME 50 these views need an activated survey

tests/controllers/AdminViewsTest.php 1

Type Line Description
FIXME 120 need to crate another user

tests/controllers/CreateSurveyTest.php 1

Type Line Description
TODO 296 :Duplicated code.

tests/bootstrap.php 1

Type Line Description
TODO 236 Move this logic to installater test.