/media/shnoulle/data/webdev/master/application/models/SurveysGroupsettings.php(590)
578 'answer_code_prefix' => Yii::app()->getConfig('answer_code_prefix', '') 579 ]; 580 } 581 return json_decode($this->othersettings, true) ?? []; 582 } 583 584 /** 585 * Set other settings as array 586 * @param array $settings 587 */ 588 public function setOtherSettings($settings) 589 { 590 $this->othersettings = json_encode($settings); 591 } 592 593 /** 594 * Get a value from othersettings 595 * 596 * @param string $key The setting key to retrieve 597 * @param mixed $default Default value if setting doesn't exist 598 * @return mixed The setting value or default 599 */ 600 public function getOtherSetting($key, $default = '') 601 { 602 $settings = $this->getOtherSettings();
| #0 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/base/CComponent.php(151): SurveysGroupsettings->setOtherSettings("") 146 */ 147 public function __set($name,$value) 148 { 149 $setter='set'.$name; 150 if(method_exists($this,$setter)) 151 return $this->$setter($value); 152 elseif(strncasecmp($name,'on',2)===0 && method_exists($this,$name)) 153 { 154 // duplicating getEventHandlers() here for performance 155 $name=strtolower($name); 156 if(!isset($this->_e[$name])) |
| #1 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/db/ar/CActiveRecord.php(162): CComponent->__set("othersettings", "") 157 if($this->setAttribute($name,$value)===false) 158 { 159 if(isset($this->getMetaData()->relations[$name])) 160 $this->_related[$name]=$value; 161 else 162 parent::__set($name,$value); 163 } 164 } 165 166 /** 167 * Checks if a property value is null. |
| #2 |
+
–
/media/shnoulle/data/webdev/master/application/models/SurveysGroupsettings.php(517): CActiveRecord->__set("othersettings", "") 512 $this->usecaptcha = 'N'; 513 $this->format = 'G'; 514 $this->admin = substr((string) App()->getConfig('siteadminname'), 0, 50); 515 $this->adminemail = substr((string) App()->getConfig('siteadminemail'), 0, 254); 516 $this->template = Template::templateNameFilter(App()->getConfig('defaulttheme')); 517 $this->othersettings = ''; 518 } 519 520 /** 521 * Returns true if the attribute should be inherited according to it's value. 522 * @param string $attribute |
| #3 |
+
–
/media/shnoulle/data/webdev/master/application/helpers/update/updatedb_helper.php(1521): SurveysGroupsettings->setToDefault() 1516 )); 1517 addPrimaryKey('surveys_groupsettings', array('gsid')); 1518 1519 // insert settings for global level 1520 $settings1 = new SurveysGroupsettings(); 1521 $settings1->setToDefault(); 1522 $settings1->gsid = 0; 1523 // get global settings from db 1524 $globalSetting1 = $oDB->createCommand()->select('stg_value')->from('{{settings_global}}')->where("stg_name=:stg_name", array('stg_name' => 'showqnumcode'))->queryRow(); 1525 $globalSetting2 = $oDB->createCommand()->select('stg_value')->from('{{settings_global}}')->where("stg_name=:stg_name", array('stg_name' => 'showgroupinfo'))->queryRow(); 1526 $globalSetting3 = $oDB->createCommand()->select('stg_value')->from('{{settings_global}}')->where("stg_name=:stg_name", array('stg_name' => 'shownoanswer'))->queryRow(); |
| #4 |
+
–
/media/shnoulle/data/webdev/master/application/helpers/update/updates/Update_404.php(9): createSurveysGroupSettingsTable(DbConnection) 04 05 class Update_404 extends DatabaseUpdateBase 06 { 07 public function up() 08 { 09 createSurveysGroupSettingsTable($this->db); 10 } 11 } |
| #5 |
+
–
/media/shnoulle/data/webdev/master/application/helpers/update/DatabaseUpdateBase.php(47): LimeSurvey\Helpers\Update\Update_404->up() 42 */ 43 public function safeUp() 44 { 45 $transaction = $this->db->beginTransaction(); 46 try { 47 $this->up(); 48 $this->updateVersion(); 49 $transaction->commit(); 50 } catch (Throwable $e) { 51 $transaction->rollback(); 52 throw $e; |
| #6 |
+
–
/media/shnoulle/data/webdev/master/application/helpers/update/updatedb_helper.php(88): LimeSurvey\Helpers\Update\DatabaseUpdateBase->safeUp() 83 try { 84 // Get all relevant files from updates/ folder 85 $updates = getRelevantUpdates($iOldDBVersion, Yii::app()->db, $options); 86 foreach ($updates as $update) { 87 // NB: safeUp() wraps up() inside a transaction and also updates DBVersion. 88 $update->safeUp(); 89 } 90 } catch (Exception $e) { 91 Yii::app()->setConfig('Updating', false); 92 // Activate schema caching 93 $oDB->schemaCachingDuration = 3600; |
| #7 |
+
–
/media/shnoulle/data/webdev/master/application/helpers/update/update_helper.php(33): db_upgrade_all(403) 28 Yii::app()->loadHelper('update/updatedb'); 29 if (isset($subaction) && $subaction == "yes") { 30 $header = Yii::app()->getController()->getAdminHeader(false, true); 31 $header = preg_replace('/<###begin###>/', '', (string) $header); 32 echo $header; 33 $result = db_upgrade_all(intval($currentDBVersion)); 34 if ($result) { 35 $data = 36 '<div class="jumbotron message-box">' . 37 '<h2 class="">' . gT('Success') . '</h2>' . 38 '<p class="lead">' . |
| #8 |
+
–
/media/shnoulle/data/webdev/master/application/controllers/admin/DatabaseUpdate.php(35): CheckForDBUpgrades("yes") 30 public function db($continue = null) 31 { 32 Yii::app()->loadHelper("update/update"); 33 $aData = $aViewUrls = []; 34 if (isset($continue) && $continue == "yes") { 35 $aViewUrls['output'] = CheckForDBUpgrades($continue); 36 $aData['display']['header'] = false; 37 } else { 38 $aData['display']['header'] = true; 39 $aViewUrls['output'] = CheckForDBUpgrades(); 40 } |
| #9 |
unknown(0): DatabaseUpdate->db("yes")
|
| #10 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/actions/CAction.php(114): ReflectionMethod->invokeArgs(DatabaseUpdate, array("yes")) 109 elseif($param->isDefaultValueAvailable()) 110 $ps[]=$param->getDefaultValue(); 111 else 112 return false; 113 } 114 $method->invokeArgs($object,$ps); 115 return true; 116 } 117 } |
| #11 |
+
–
/media/shnoulle/data/webdev/master/application/core/SurveyCommonAction.php(83): CAction->runWithParamsInternal(DatabaseUpdate,
ReflectionMethod, array("r" =>
"admin/databaseupdate/sa/db/continue/yes", "sa" => "db", "continue"
=> "yes")) 78 $oMethod = new ReflectionMethod($this, $sDefault); 79 } 80 81 // We're all good to go, let's execute it 82 // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params 83 return parent::runWithParamsInternal($this, $oMethod, $params); 84 } 85 86 /** 87 * Some functions have different parameters, which are just an alias of the 88 * usual parameters we're getting in the url. This function just populates |
| #12 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CController.php(308): SurveyCommonAction->runWithParams(array("r" => "admin/databaseupdate/sa/db/continue/yes", "sa" => "db", "continue" => "yes")) 303 { 304 $priorAction=$this->_action; 305 $this->_action=$action; 306 if($this->beforeAction($action)) 307 { 308 if($action->runWithParams($this->getActionParams())===false) 309 $this->invalidActionParams($action); 310 else 311 $this->afterAction($action); 312 } 313 $this->_action=$priorAction; |
| #13 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CController.php(286): CController->runAction(DatabaseUpdate) 281 * @see runAction 282 */ 283 public function runActionWithFilters($action,$filters) 284 { 285 if(empty($filters)) 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); |
| #14 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CController.php(265): CController->runActionWithFilters(DatabaseUpdate, array()) 260 { 261 if(($parent=$this->getModule())===null) 262 $parent=Yii::app(); 263 if($parent->beforeControllerAction($this,$action)) 264 { 265 $this->runActionWithFilters($action,$this->filters()); 266 $parent->afterControllerAction($this,$action); 267 } 268 } 269 else 270 $this->missingAction($actionID); |
| #15 |
+
–
/media/shnoulle/data/webdev/master/application/controllers/AdminController.php(204): CController->run("databaseupdate") 199 $this->runModuleController($action); 200 // this will redirect the default action to the new controller previously "admin/index" or "admin" to "dashboard/view" 201 if (empty($action) || $action === 'index') { 202 $this->redirect($this->createUrl('dashboard/view')); 203 } 204 return parent::run($action); 205 } 206 207 /** 208 * Starting with LS4, 3rd party developer can extends any of the LimeSurve controllers. 209 * |
| #16 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CWebApplication.php(282): AdminController->run("databaseupdate") 277 { 278 list($controller,$actionID)=$ca; 279 $oldController=$this->_controller; 280 $this->_controller=$controller; 281 $controller->init(); 282 $controller->run($actionID); 283 $this->_controller=$oldController; 284 } 285 else 286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 287 array('{route}'=>$route===''?$this->defaultController:$route))); |
| #17 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/databaseupdate/sa/db/continue/yes") 136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 137 $_GET[$name]=$value; 138 } 139 else 140 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 141 $this->runController($route); 142 } 143 144 /** 145 * Registers the core application components. 146 * This method overrides the parent implementation by registering additional core components. |
| #18 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/base/CApplication.php(185): CWebApplication->processRequest() 180 public function run() 181 { 182 if($this->hasEventHandler('onBeginRequest')) 183 $this->onBeginRequest(new CEvent($this)); 184 register_shutdown_function(array($this,'end'),0,false); 185 $this->processRequest(); 186 if($this->hasEventHandler('onEndRequest')) 187 $this->onEndRequest(new CEvent($this)); 188 } 189 190 /** |
| #19 |
+
–
/media/shnoulle/data/webdev/master/index.php(161): CApplication->run() 156 require_once APPPATH . 'core/LSYii_Application' . EXT; 157 158 $config = require_once(APPPATH . 'config/internal' . EXT); 159 160 Yii::$enableIncludePath = false; 161 Yii::createApplication('LSYii_Application', $config)->run(); 162 163 /* End of file index.php */ 164 /* Location: ./index.php */ |