tests/TestBaseClassWeb.php 1

Type Line Description
TODO 98 Rename to getAdminUrl.

tests/surveys/LanguageChangerTest.php 1

Type Line Description
TODO 99 Use \createFieldMap instead?

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/questions/MultipleChoiceNextPreviousTest.php 1

Type Line Description
TODO 67 Does not work without this.

tests/questions/MultipleChoiceMandatoryWithCommentTest.php 1

Type Line Description
TODO 178 Use \createFieldMap instead?

tests/bootstrap.php 1

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

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/controllers/ThemeControllerTest.php 1

Type Line Description
TODO 98 Split up in separate tests.

tests/controllers/InstallationControllerTest.php 1

Type Line Description
TODO 182 Does not work.

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/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/TestHelper.php 1

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

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/Survey_Common_Action.php 5

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 811 : create subfunctions
TODO 882 Make quick-menu user configurable

application/core/WrongTemplateVersionException.php 1

Type Line Description
TODO 9 Put in another folder?

application/core/LSCGettextMessageSource.php 1

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

application/core/LSUserIdentity.php 1

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

application/core/LSYii_ClientScript.php 1

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

application/core/LSETwigViewRenderer.php 1

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

application/libraries/Save.php 2

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

application/libraries/PluginManager/PluginBase.php 2

Type Line Description
TODO 389 Create a config object for this? One object for each config field? Then loop through those fields.
TODO 49 Add proper type hint in 3.0

application/libraries/admin/Services_JSON.php 2

Type Line Description
TODO 767 Ultimately, this should just call PEAR::isError()
TODO 796 Ultimately, this class shall be descended from PEAR_Error

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 1673 - Since want to use <span> for dynamic substitution, what if there are recursive substititons?
TODO 1736 - encode within SPAN?

application/helpers/expressions/em_manager_helper.php 44

Type Line Description
TODO 244 - add example from survey using assessments
TODO 333 ??
TODO 383 - ??
TODO 387 ??
TODO 1281 - implement qcode naming for this
TODO 1490 generic validation as to dateformat[SGQA].value : BUT not same in PHP and JS
TODO 2877 - create equations for these?
TODO 2880 ? How does it work?
TODO 3336 - create em_num_files class so can sepately style num_files vs. num_answers
TODO 3625 - do I need to force refresh, or trust that createFieldMap will cache langauges properly?
TODO 3941 Internal error if this happens
TODO 4418 - 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 4579 - cache results and generated JavaScript equations?
TODO 4969 default should eventually be false
TODO 5160 only important thing from StartProcessingGroup?
TODO 5376 only important thing from StartProcessingGroup?
TODO 5428 - now that using $this->updatedValues, may be able to remove local copies of it (unless needed by other sub-systems)
TODO 5485 - add SQL error?
TODO 5486 - report SQL error?
TODO 5518 Internal error if this happens
TODO 5587 This kills the session if adminemail is defined, so the queries below won't work.
TODO 5588 - report SQL error?
TODO 5591 - add SQL error?
TODO 5880 only important thing from StartProcessingGroup?
TODO 6019 - what is desired behavior?
TODO 6158 how used if random?
TODO 6214 is this needed?
TODO 6304 is this needed?
TODO 6350 is this needed?
TODO 6403 is this needed?
TODO 6448 is this needed?
TODO 6484 - check this
TODO 6490 - why is array_unique needed here?
TODO 6575 - what about 'other'?
TODO 6619 - what about 'other'?
TODO 6630 - what about 'other'?
TODO 6772 check for errors?
TODO 6779 - currently invalidates all - should only invalidate those that truly fail validation rules.
TODO 7139 - what if this is called using Survey or Data Entry format?
TODO 7646 Internal error if this happens
TODO 8011 - is different type needed for text? Or process value to striphtml?
TODO 8815 Make a wrapper class around date converter, which constructor takes to-lang and from-lang
TODO 10167 - need this: $q['info']['same_default'];
TODO 7231 : add directly hidden input in page without return it.

application/helpers/SurveyRuntimeHelper.php 14

Type Line Description
TODO 45 To respect object oriented design, all those "states" should be move to SurveyDynamic model, or its related models via relations.
TODO 67 To respect object oriented design, all those "states" should be move to Response model, or its related models via relations.
TODO 111 move somewhere else
TODO 180 - retrieveAnswers is slow - queries database separately for each question. May be fixed in _CI or _YII ports, so ignore for now
TODO 569 Why is $this->aSurveyInfo empty here?
TODO 642 set this to true if in admin mode but not if running a survey
TODO 749 twig
TODO 1040 check that line:
TODO 1154 Process string in url description?
TODO 1362 find where they are defined before this call
TODO 1432 check with markus why $loadall, it's never ever defined, even in master branch
TODO 1529 check this:
TODO 1199 : find/get current qid for processing string
TODO 1271 : move to coreReplacements ? Can be good.

application/helpers/qanda_helper.php 7

Type Line Description
TODO 1431 : move to a dedicated function
TODO 2020 : check if $sValueHidden === $sValue
TODO 2185 : check if it should be the same than javavalue
TODO 2219 $value is not defined for some execution paths.
TODO 2231 : check if it should be the same than javavalue
TODO 2373 Regression here? Should use LEMval(minfiles) like above
TODO 2846 Slider and multiple-numeric input should really be two different question types

application/helpers/common_helper.php 10

Type Line Description
FIXME 706 rename and/or document this
TODO 911 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 3048 : Adding the onload/onhover etc ... or remove this false security function
TODO 4230 use Yii model forms
TODO 4386 remove one of the Yii::app()->session see bug #5901
TODO 3071 Make the days configurable

application/helpers/surveytranslator_helper.php 1

Type Line Description
TODO 919 Should not give back different data types

application/helpers/viewHelper.php 1

Type Line Description
TODO 246 : filter inline javascript (onclick etc ..., but don't filter EM javascript) Maybe doing it directly in LEM->GetLastPrettyPrintExpression();

application/helpers/frontend_helper.php 8

Type Line Description
TODO 16 Why needed?
TODO 951 rewrite this THE YII WAY !!!! (application/third_party + internal config for namespace + aliases; etc)
TODO 1065 move the sql queries to a model
TODO 1644 replace by group model method
TODO 1336 Rename
TODO 1336 Move HTML to view
TODO 1680 : Make 'fieldarray' obsolete by replacing with EM session info
TODO 1989 Make cookie survey ID aware

application/helpers/questionHelper.php 2

Type Line Description
TODO 1176 add these later? "1F",
TODO 1186 add these later? "1F",

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/admin/activate_helper.php 1

Type Line Description
TODO 22 can call this function (no $_GET, but getParam) AND do it with Yii

application/helpers/admin/import_helper.php 1

Type Line Description
TODO 2050 set proper default

application/helpers/admin/ajax_helper.php 1

Type Line Description
TODO 160 Check if user is logged in

application/helpers/admin/statistics_helper.php 3

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

application/helpers/remotecontrol/remotecontrol_handle.php 3

Type Line Description
FIXME 2578 $sToken is undefined!!
FIXME 2732 undefined function getQuestionAttributeValues()
FIXME 2772 $filename not defined!!!

application/helpers/userstatistics_helper.php 1

Type Line Description
TODO 1880 Support three or more duplicates.

application/helpers/Hash.php 1

Type Line Description
FIXME 106 !

application/commands/WipeCommand.php 1

Type Line Description
TODO 128 a valid error process

application/commands/InstallFromConfigCommand.php 1

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

application/commands/DemomodeCommand.php 1

Type Line Description
TODO 28 a valid error process

application/models/Question.php 4

Type Line Description
TODO 41 should be singular
TODO 42 should be singular
TODO 242 move getQuestionAttributesSettings() to QuestionAttribute model to avoid code duplication
TODO 1046 : move other fix here ?

application/models/LSActiveRecord.php 1

Type Line Description
TODO 190 This should also be moved to the behavior at some point. This method overrides the parent in order to raise PluginEvents for Bulk delete operations. Filter Criteria are wrapped into a CDBCriteria instance so we have a single instance responsible for holding the filter criteria to be passed to the PluginEvent, this also enables us to pass the fully configured CDBCriteria instead of the original Parameters. See {@link find()} for detailed explanation about $condition and $params.

application/models/ParticipantAttributeName.php 1

Type Line Description
TODO 622 Doc

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/SurveyLink.php 1

Type Line Description
TODO 156 this should be in survey model

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/UserGroup.php 3

Type Line Description
TODO 64 remove Users... see Louis' comment
TODO 102 seems to be unused, probably shouldn't be done like that
TODO 144 should use save() and afterSave() methods!!

application/models/Participant.php 6

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

application/models/SurveyTimingDynamic.php 1

Type Line Description
TODO 157 $language is not used locally

application/models/Response.php 1

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

application/models/TemplateManifest.php 3

Type Line Description
TODO 265 load to DB
TODO 592 create a method "setToDefault"
TODO 729 "replace" and "remove"

application/models/AdminTheme.php 1

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

application/models/TemplateConfiguration.php 3

Type Line Description
TODO 192 Move to SurveyGroup creation, right now the 'lazy loading' approach is ok.
TODO 232 Move to SurveyGroup creation, right now the 'lazy loading' approach is ok.
TODO 268 Move to SurveyGroup creation, right now the 'lazy loading' approach is ok.

application/models/UpdateForm.php 4

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

application/models/User.php 5

Type Line Description
TODO 157 get this via $this instead of param
TODO 173 get this via $this instead of param
TODO 216 should be done via $oUser->delete directly
TODO 319 should be static
TODO 462 should be static

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/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/SurveyLanguageSetting.php 1

Type Line Description
TODO 235 : rename and fix this

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/QuestionTemplate.php 1

Type Line Description
TODO 424 code duplication

application/models/ParticipantShare.php 1

Type Line Description
TODO 25 should be singular

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/UserInGroup.php 1

Type Line Description
TODO 54 should be singular

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/QuestionAttribute.php 4

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
TODO 164 This function needs to be incorporated in the model because it creates a big number of additional queries. For exmaple the default value merging could be done in AfterFind.

application/models/Survey.php 5

Type Line Description
TODO 1589 POST handling should be done in controller!
TODO 1631 POST handling should be done in controller!
TODO 1070 Document code, please.
TODO 1587 Should really be saved as three fields in the database!
TODO 1629 Should really be saved as three fields in the database!

application/controllers/PluginsController.php 3

Type Line Description
TODO 7 Not used, copied to admin/pluginmanager.php. Delete this file?
TODO 7 Actually, it's used for action direct.
TODO 254 Doc

application/controllers/survey/index.php 1

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

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/RegisterController.php 1

Type Line Description
TODO 409 : move xss filtering in model

application/controllers/InstallerController.php 1

Type Line Description
TODO 28 Output code belongs into view

application/controllers/admin/usergroups.php 1

Type Line Description
TODO 351 Doc

application/controllers/admin/translate.php 2

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

application/controllers/admin/questions.php 5

Type Line Description
TODO 901 calcul correct value
TODO 1467 refactore multiple function to call the model, and then push all the common stuff to a model function for a dry code
TODO 1600 this should be get from the question model
TODO 1798 Longterm, change 'other' to boolean; change the model rules
TODO 876 Permission

application/controllers/admin/database.php 2

Type Line Description
TODO 585 sanitise XSS
TODO 98 : use model (and validate if we do it in model rules)

application/controllers/admin/surveypermission.php 4

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

application/controllers/admin/useraction.php 2

Type Line Description
TODO 100 If error, we want to keep the form values. Can't do it nicely without CActiveForm?
TODO 259 Delete what final user?

application/controllers/admin/participantsaction.php 7

Type Line Description
TODO 1625 What's the Difference between lang and langdata?
TODO 2208 This is a comma separated string of ids
TODO 2232 Why?
TODO 2253 This code can't be reached
TODO 2312 Maybe do this with SQL instead?
TODO 1992 Use user session?
TODO 1992 Used?

application/controllers/admin/surveyadmin.php 11

Type Line Description
TODO 81
TODO 99
TODO 191 Document me
TODO 331
TODO 355
TODO 461
TODO 529
TODO 1392 Change function name to _showOrganizeGroupsAndQuestions?
TODO 1791
TODO 1806
TODO 1852

application/controllers/admin/conditionsaction.php 6

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?
TODO 662 Better way than to extract $args
TODO 760 Code duplication
TODO 2159 Not used

application/controllers/admin/questiongroups.php 1

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

application/controllers/admin/PluginHelper.php 2

Type Line Description
TODO 47 Assume this for all plugins?
TODO 8 Better name?

application/controllers/admin/tokens.php 7

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?
TODO 1264 Rename 'ok' to something meaningful.
TODO 479 Check if method is still in use
TODO 712 When is this function used without Ajax?

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/controllers/admin/responses.php 4

Type Line Description
TODO 544 : add it to response delete (maybe test if timing table exist)
TODO 48 Don't use extract
TODO 995 Use user session?
TODO 995 Used?

application/controllers/admin/ExpressionValidate.php 1

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

application/controllers/admin/PluginManagerController.php 1

Type Line Description
TODO 106 Defensive programming

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/themes.php 1

Type Line Description
TODO 993