/media/shnoulle/data/www/master/vendor/yiisoft/yii/framework/db/ar/CActiveRecord.php(145)
133 */ 134 public function __get($name) 135 { 136 if(isset($this->_attributes[$name])) 137 return $this->_attributes[$name]; 138 elseif(isset($this->getMetaData()->columns[$name])) 139 return null; 140 elseif(isset($this->_related[$name])) 141 return $this->_related[$name]; 142 elseif(isset($this->getMetaData()->relations[$name])) 143 return $this->getRelated($name); 144 else 145 return parent::__get($name); 146 } 147 148 /** 149 * PHP setter magic method. 150 * This method is overridden so that AR attributes can be accessed like properties. 151 * @param string $name property name 152 * @param mixed $value property value 153 * @throws CException 154 */ 155 public function __set($name,$value) 156 { 157 if($this->setAttribute($name,$value)===false)
| #0 |
+
–
/media/shnoulle/data/www/master/vendor/yiisoft/yii/framework/db/ar/CActiveRecord.php(145): CComponent->__get() 140 elseif(isset($this->_related[$name])) 141 return $this->_related[$name]; 142 elseif(isset($this->getMetaData()->relations[$name])) 143 return $this->getRelated($name); 144 else 145 return parent::__get($name); 146 } 147 148 /** 149 * PHP setter magic method. 150 * This method is overridden so that AR attributes can be accessed like properties. |
| #1 |
+
–
/media/shnoulle/data/www/master/vendor/yiisoft/yii/framework/validators/CRangeValidator.php(64): CActiveRecord->__get() 59 * @param string $attribute the attribute being validated 60 * @throws CException if given {@link range} is not an array 61 */ 62 protected function validateAttribute($object,$attribute) 63 { 64 $value=$object->$attribute; 65 if($this->allowEmpty && $this->isEmpty($value)) 66 return; 67 if(!is_array($this->range)) 68 throw new CException(Yii::t('yii','The "range" property must be specified with a list of values.')); 69 $result = false; |
| #2 |
+
–
/media/shnoulle/data/www/master/vendor/yiisoft/yii/framework/validators/CValidator.php(201): CRangeValidator->validateAttribute() 196 else 197 $attributes=$this->attributes; 198 foreach($attributes as $attribute) 199 { 200 if(!$this->skipOnError || !$object->hasErrors($attribute)) 201 $this->validateAttribute($object,$attribute); 202 } 203 } 204 205 /** 206 * Returns the JavaScript needed for performing client-side validation. |
| #3 |
+
–
/media/shnoulle/data/www/master/vendor/yiisoft/yii/framework/base/CModel.php(159): CValidator->validate() 154 if($clearErrors) 155 $this->clearErrors(); 156 if($this->beforeValidate()) 157 { 158 foreach($this->getValidators() as $validator) 159 $validator->validate($this,$attributes); 160 $this->afterValidate(); 161 return !$this->hasErrors(); 162 } 163 else 164 return false; |
| #4 |
+
–
/media/shnoulle/data/www/master/vendor/yiisoft/yii/framework/db/ar/CActiveRecord.php(810): CModel->validate() 805 * meaning all attributes that are loaded from DB will be saved. 806 * @return boolean whether the saving succeeds 807 */ 808 public function save($runValidation=true,$attributes=null) 809 { 810 if(!$runValidation || $this->validate($attributes)) 811 return $this->getIsNewRecord() ? $this->insert($attributes) : $this->update($attributes); 812 else 813 return false; 814 } 815 |
| #5 |
+
–
/media/shnoulle/data/www/master/application/models/Survey.php(1037): CActiveRecord->save() 1032 if ($attempts > 50) { 1033 throw new Exception("Unable to get a valid survey ID after 50 attempts"); 1034 } 1035 } 1036 1037 if (!$survey->save()) { 1038 $survey->sid = null; 1039 } 1040 return $survey; 1041 } 1042 |
| #6 |
+
–
/media/shnoulle/data/www/master/application/helpers/admin/import_helper.php(2320): Survey->insertNewSurvey() 2315 $insertdata = array_intersect_key($insertdata, $aSurveyModelsColumns); 2316 // Fill a optional array of error 2317 foreach ($aBadData as $key => $value) { 2318 $results['importwarnings'][] = sprintf(gT("This survey setting has not been imported: %s => %s"), $key, $value); 2319 } 2320 $newSurvey = Survey::model()->insertNewSurvey($insertdata); 2321 if ($newSurvey->sid) { 2322 $iNewSID = $results['newsid'] = $newSurvey->sid; 2323 $results['surveys']++; 2324 if (!empty($iDesiredSurveyId) && $iNewSID != $iDesiredSurveyId) { 2325 $results['importwarnings'][] = gT("The desired survey ID was already in use, therefore a random one was assigned."); |
| #7 |
+
–
/media/shnoulle/data/www/master/application/helpers/admin/import_helper.php(1436): XMLImportSurvey() 1431 } 1432 // Step 1 - import the LSS file and activate the survey 1433 foreach ($files as $filename) { 1434 if (pathinfo((string) $filename, PATHINFO_EXTENSION) == 'lss') { 1435 //Import the LSS file 1436 $aImportResults = XMLImportSurvey(Yii::app()->getConfig('tempdir') . DIRECTORY_SEPARATOR . $filename, null, $sNewSurveyName, null, true, false, $targetSurveyGroup); 1437 if ($aImportResults && $aImportResults['newsid']) { 1438 $SurveyIntegrity = new LimeSurvey\Models\Services\SurveyIntegrity(Survey::model()->findByPk($aImportResults['newsid'])); 1439 $SurveyIntegrity->fixSurveyIntegrity(); 1440 } 1441 // Activate the survey |
| #8 |
+
–
/media/shnoulle/data/www/master/application/controllers/SurveyAdministrationController.php(2520): importSurveyFile() 2515 if (!$aData['bFailed']) { 2516 $targetSurveysGroup = App()->request->getPost('surveysgroup'); 2517 if (!in_array($targetSurveysGroup, ['default', 'from_survey'], true)) { 2518 $targetSurveysGroup = 'default'; 2519 } 2520 $aImportResults = importSurveyFile($sFullFilepath, (App()->request->getPost('translinksfields') == '1'), null, null, null, $targetSurveysGroup); 2521 if (is_null($aImportResults)) { 2522 $aImportResults = array( 2523 'error' => gT("Unknown error while reading the file, no survey created.") 2524 ); 2525 } |
| #9 |
+
–
/media/shnoulle/data/www/master/vendor/yiisoft/yii/framework/web/actions/CInlineAction.php(49): SurveyAdministrationController->actionImport() 44 $controller=$this->getController(); 45 $method=new ReflectionMethod($controller, $methodName); 46 if($method->getNumberOfParameters()>0) 47 return $this->runWithParamsInternal($controller, $method, $params); 48 49 $controller->$methodName(); 50 return true; 51 } 52 } |
| #10 |
+
–
/media/shnoulle/data/www/master/vendor/yiisoft/yii/framework/web/CController.php(308): CInlineAction->runWithParams() 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; |
| #11 |
+
–
/media/shnoulle/data/www/master/vendor/yiisoft/yii/framework/web/filters/CFilterChain.php(134): CController->runAction() 129 $filter=$this->itemAt($this->filterIndex++); 130 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 131 $filter->filter($this); 132 } 133 else 134 $this->controller->runAction($this->action); 135 } 136 } |
| #12 |
+
–
/media/shnoulle/data/www/master/vendor/yiisoft/yii/framework/web/CController.php(291): CFilterChain->run() 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); 292 $this->_action=$priorAction; 293 } 294 } 295 296 /** |
| #13 |
+
–
/media/shnoulle/data/www/master/vendor/yiisoft/yii/framework/web/CController.php(265): CController->runActionWithFilters() 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); |
| #14 |
+
–
/media/shnoulle/data/www/master/application/controllers/LSBaseController.php(144): CController->run() 139 $this->redirect(array('/admin/authentication/sa/login')); 140 } 141 } 142 } 143 144 parent::run($action); 145 } 146 147 /** 148 * Load and set session vars 149 * |
| #15 |
+
–
/media/shnoulle/data/www/master/vendor/yiisoft/yii/framework/web/CWebApplication.php(282): LSBaseController->run() 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))); |
| #16 |
+
–
/media/shnoulle/data/www/master/vendor/yiisoft/yii/framework/web/CWebApplication.php(141): CWebApplication->runController() 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. |
| #17 |
+
–
/media/shnoulle/data/www/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 /** |
| #18 |
+
–
/media/shnoulle/data/www/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 */ |