Deprecated
Table of Contents
Labels.php
| Line | Element | Reason |
|---|---|---|
| 623 | Labels::newLabelSetFromQuestionEditor() | : not used in 6.0 and before |
SurveymenuController.php
| Line | Element | Reason |
|---|---|---|
| 360 | SurveymenuController::loadModel() | do not use this function anymore |
Themes.php
| Line | Element | Reason |
|---|---|---|
| 976 | Themes::templatebar() | ? 151005 |
PluginsController.php
| Line | Element | Reason |
|---|---|---|
| 62 | PluginsController::actionIndex() |
QuestionAdministrationController.php
| Line | Element | Reason |
|---|---|---|
| 2468 | QuestionAdministrationController::copyDefaultAnswers() | Functionality moved to CopyQuestion service. |
| 2588 | QuestionAdministrationController::actionCheckQuestionCodeUniqueness() | in 5.3.17 replaced by better name actionValidateQuestionTitle |
SurveyAdministrationController.php
| Line | Element | Reason |
|---|---|---|
| 3070 | SurveyAdministrationController::fetchSurveyInfo() | use Survey objects instead |
LS_Twig_Extension.php
| Line | Element | Reason |
|---|---|---|
| 196 | LS_Twig_Extension::getAllQuestionClasses() | must be removed when allow to broke template. Since it was in 3.0 , it was in API (and question.twig are surely be updated). |
| 583 | LS_Twig_Extension::flatEllipsizeText() | (4.0) |
SurveyCommonAction.php
| Line | Element | Reason |
|---|---|---|
| 608 | SurveyCommonAction::questionbar() | not in use anymore |
| 691 | SurveyCommonAction::surveybar() | |
| 1011 | SurveyCommonAction::filterImportedResources() | use ServiceClass FilterImportedResources instead ... (models/services/) |
TbWidget.php
| Line | Element | Reason |
|---|---|---|
| 42 | TbWidget::copyId() | by TbWidget::resolveId |
TbHtml.php
| Line | Element | Reason |
|---|---|---|
| 705 | TbHtml::helpBlock() | |
| 2823 | TbHtml::controlsRow() | BS3 only requires a div.row container for all inputs if you want a controls row |
| 3216 | TbHtml::imagePolaroid() | |
| 3534 | TbHtml::stackedTabs() | Style does not exist in BS3 |
| 4895 | TbHtml::addSpanClass() |
Writer.php
| Line | Element | Reason |
|---|---|---|
| 90 | Writer::getFullHeading() |
common_helper.php
| Line | Element | Reason |
|---|---|---|
| 444 | setupColumns() | Don't use anymore. Only usage left in printabel survey where it needs to be replaced It returns an array with the following items: $wrapper['whole-start'] = Opening wrapper for the whole list $wrapper['whole-end'] = closing wrapper for the whole list $wrapper['col-devide'] = normal column devider $wrapper['col-devide-last'] = the last column devider (to allow for different styling of the last column $wrapper['item-start'] = opening wrapper tag for individual option $wrapper['item-start-other'] = opening wrapper tag for other option $wrapper['item-start-noanswer'] = opening wrapper tag for no answer option $wrapper['item-end'] = closing wrapper tag for individual option $wrapper['maxrows'] = maximum number of rows in each column $wrapper['cols'] = Number of columns to be inserted (and checked against) Columns are a problem. Really there is no perfect solution to columns at the moment.
Because I haven't been able to decide which option is the least bad, I have handed over that responsibility to the admin who sets LimeSurvey up on their server. There are four options: 'css' using one of the various CSS only methods for rendering columns. (Check the CSS file for your chosen template to see how columns are defined.) 'ul' using multiple floated unordered lists. (DEFAULT) 'table' using conventional tables based layout. NULL blocks the use of columns 'ul' is the default because it's the best possible compromise between semantic markup and visual layout. |
| 1150 | validateEmailAddress() | : use LimeMailer::validateAddress($sEmailAddress); |
| 1163 | validateEmailAddresses() | : use LimeMailer::validateAddresses($aEmailAddressList); |
| 2071 | HTMLEscape() | If you need this you are doing something wrong. Use CHTML functions instead. |
| 2140 | SendEmailMessage() | : leave it in 4.0 for plugins ? Must remove in 5.0 at minima. |
database_helper.php
| Line | Element | Reason |
|---|---|---|
| 28 | dbExecuteAssoc() | Do not use anymore. If you see this replace it with a proper ActiveRecord Model query |
globalsettings_helper.php
| Line | Element | Reason |
|---|---|---|
| 28 | getGlobalSetting() | : use App()->getConfig('settingname') since all config are set at start of App : no need to read and test again |
qanda_helper.php
| Line | Element | Reason |
|---|---|---|
| 1268 | do_ranking() | Replaced by core\QuestionTypes\RankingStyle |
| 3211 | do_array() | Replaced by core\QuestionTypes\RenderArrayFlexibleRow |
| 4463 | do_array_dual() | Replaced by core\QuestionTypes\ArrayMultiscale |
questionHelper.php
| Line | Element | Reason |
|---|---|---|
| 40 | questionHelper::getAttributesDefinitions() | used only as fall back method use QuestionAttribute::getQuestionAttributesSettings function to get attributes |
| 1607 | questionHelper::getQuestionThemePreviewUrl() | use QuestionTheme::getQuestionThemePreviewUrl |
pdf.php
| Line | Element | Reason |
|---|---|---|
| 311 | pdf::intopdf() |
PluginManager.php
| Line | Element | Reason |
|---|---|---|
| 92 | PluginManager::getInstalledPlugins() | unused in 5.3.8 This prevents errors when a plugin was installed but the files were removed from the server. |
Answer.php
| Line | Element | Reason |
|---|---|---|
| 203 | Answer::insertRecords() | at 2018-01-29 use $model->attributes = $data && $model->save() |
Assessment.php
| Line | Element | Reason |
|---|---|---|
| 219 | Assessment::insertRecords() | use model->attributes = $data && $model->save() |
DefaultValue.php
| Line | Element | Reason |
|---|---|---|
| 81 | DefaultValue::insertRecords() | at 2018-02-03 use $model->attributes = $data && $model->save() |
ExpressionError.php
| Line | Element | Reason |
|---|---|---|
| 62 | ExpressionError::insertRecords() | at 2018-01-29 use $model->attributes = $data && $model->save() |
Label.php
| Line | Element | Reason |
|---|---|---|
| 114 | Label::insertRecords() | at 2018-02-03 use $model->attributes = $data && $model->save() |
LabelSet.php
| Line | Element | Reason |
|---|---|---|
| 109 | LabelSet::insertRecords() | at 2018-01-29 use $model->attributes = $data && $model->save() |
Permission.php
| Line | Element | Reason |
|---|---|---|
| 272 | Permission::setPermissions() | : usage only for global Permission currently |
| 474 | Permission::insertRecords() | at 2018-01-29 use $model->attributes = $data && $model->save() |
Plugin.php
| Line | Element | Reason |
|---|---|---|
| 197 | Plugin::getActionButtons() | |
| 230 | Plugin::getActivateButton() | |
| 260 | Plugin::getDeactivateButton() | |
| 290 | Plugin::getUninstallButton() |
Question.php
| Line | Element | Reason |
|---|---|---|
| 368 | Question::getQuestionTemplateAttributes() | use QuestionTheme::getAdditionalAttrFromExtendedTheme() to retrieve question theme attributes and QuestionAttributeHelper->mergeQuestionAttributes() to merge with base attributes. |
| 601 | Question::typeList() | use QuestionTheme::findQuestionMetaDataForAllTypes() instead |
| 621 | Question::getQuestionTypeName() | use $this->>questionType->description instead |
| 1588 | Question::getHasSubquestions() | unknow usage |
| 1596 | Question::getHasAnsweroptions() | unknow usage |
QuestionAttribute.php
| Line | Element | Reason |
|---|---|---|
| 453 | QuestionAttribute::getQuestionTemplateValue() | use $question->question_theme_name instead (Question model) |
QuestionGroup.php
| Line | Element | Reason |
|---|---|---|
| 149 | QuestionGroup::insertRecords() | at 2018-02-03 use $model->attributes = $data && $model->save() |
QuestionTemplate.php
| Line | Element | Reason |
|---|---|---|
| 419 | QuestionTemplate::getFolderName() | use QuestionTheme::getQuestionXMLPathForBaseType |
| 435 | QuestionTemplate::getTypeToFolder() |
Quota.php
| Line | Element | Reason |
|---|---|---|
| 109 | Quota::insertRecords() | at 2018-01-29 use $model->attributes = $data && $model->save() |
QuotaLanguageSetting.php
| Line | Element | Reason |
|---|---|---|
| 104 | QuotaLanguageSetting::insertRecords() | at 2018-02-03 use $model->attributes = $data && $model->save() |
QuotaMember.php
| Line | Element | Reason |
|---|---|---|
| 143 | QuotaMember::insertRecords() | at 2018-01-29 use $model->attributes = $data && $model->save() |
SavedControl.php
| Line | Element | Reason |
|---|---|---|
| 110 | SavedControl::insertRecords() | at 2018-02-03 use $model->attributes = $data && $model->save() |
Survey.php
| Line | Element | Reason |
|---|---|---|
| 1847 | Survey::calculateEstimatedTime() | Unused since 3.X |
SurveyDynamic.php
| Line | Element | Reason |
|---|---|---|
| 378 | SurveyDynamic::getButtons() | , use getGridButtons , |
Template.php
| Line | Element | Reason |
|---|---|---|
| 505 | Template::getTemplateListWithPreviews() | use directly Template::getTemplateList |
| 530 | Template::isStandardTemplate() | Use SurveyThemeHelper::getStandardTemplateList() instead. |
| 653 | Template::getStandardTemplateList() | Use SurveyThemeHelper::getStandardTemplateList() instead. |
| 682 | Template::getTemplateInUpload() | Use SurveyThemeHelper::getTemplateInUpload() instead. |
| 694 | Template::getTemplateInStandard() | Use SurveyThemeHelper::getTemplateInStandard() instead. |
| 706 | Template::getTemplateInFolder() | Use SurveyThemeHelper::getTemplateInFolder() instead. |
TokenDynamic.php
| Line | Element | Reason |
|---|---|---|
| 902 | TokenDynamic::getbuttons() |
User.php
| Line | Element | Reason |
|---|---|---|
| 481 | User::insertRecords() | : just don't use it |
UserGroup.php
| Line | Element | Reason |
|---|---|---|
| 90 | UserGroup::insertRecords() | at 2018-02-03 use $model->attributes = $data && $model->save() |
| 220 | UserGroup::requestViewGroup() | Not needed anymore |
| 240 | UserGroup::deleteGroup() | since 2018-04-21 use $this->delete and do the permissions check in controller!! |
UserInGroup.php
| Line | Element | Reason |
|---|---|---|
| 72 | UserInGroup::insertRecords() | at 2018-02-03 use $model->attributes = $data && $model->save() |