/mnt/data/shnoulle/nginx/www/master/framework/db/ar/CActiveRecord.php(2390)
2378 2379 /** 2380 * Constructor. 2381 * @param CActiveRecord $model the model instance 2382 * @throws CDbException if specified table for active record class cannot be found in the database 2383 */ 2384 public function __construct($model) 2385 { 2386 $this->_modelClassName=get_class($model); 2387 2388 $tableName=$model->tableName(); 2389 if(($table=$model->getDbConnection()->getSchema()->getTable($tableName))===null) 2390 throw new CDbException(Yii::t('yii','The table "{table}" for active record class "{class}" cannot be found in the database.', 2391 array('{class}'=>$this->_modelClassName,'{table}'=>$tableName))); 2392 2393 if(($modelPk=$model->primaryKey())!==null || $table->primaryKey===null) 2394 { 2395 $table->primaryKey=$modelPk; 2396 if(is_string($table->primaryKey) && isset($table->columns[$table->primaryKey])) 2397 $table->columns[$table->primaryKey]->isPrimaryKey=true; 2398 elseif(is_array($table->primaryKey)) 2399 { 2400 foreach($table->primaryKey as $name) 2401 { 2402 if(isset($table->columns[$name]))
#0 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/db/ar/CActiveRecord.php(413): CActiveRecordMetaData->__construct(Token_624189) 408 { 409 $className=get_class($this); 410 if(!array_key_exists($className,self::$_md)) 411 { 412 self::$_md[$className]=null; // preventing recursive invokes of {@link getMetaData()} via {@link __get()} 413 self::$_md[$className]=new CActiveRecordMetaData($this); 414 } 415 return self::$_md[$className]; 416 } 417 418 /** |
#1 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/db/ar/CActiveRecord.php(682): CActiveRecord->getMetaData() 677 * @param string $name attribute name 678 * @return boolean whether this AR has the named attribute (table column). 679 */ 680 public function hasAttribute($name) 681 { 682 return isset($this->getMetaData()->columns[$name]); 683 } 684 685 /** 686 * Returns the named attribute value. 687 * If this is a new record and the attribute is not set before, |
#2 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/models/LSActiveRecord.php(35): CActiveRecord->hasAttribute("created") 30 * @return array 31 */ 32 public function behaviors() 33 { 34 $aBehaviors = array(); 35 $sCreateFieldName = ($this->hasAttribute('created') ? 'created' : null); 36 $sUpdateFieldName = ($this->hasAttribute('modified') ? 'modified' : null); 37 $sDriverName = Yii::app()->db->getDriverName(); 38 if ($sDriverName == 'sqlsrv' || $sDriverName == 'dblib') { 39 $sTimestampExpression = new CDbExpression('GETDATE()'); 40 } else { |
#3 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/db/ar/CActiveRecord.php(398): LSActiveRecord->behaviors() 393 if(isset(self::$_models[$className])) 394 return self::$_models[$className]; 395 else 396 { 397 $model=self::$_models[$className]=new $className(null); 398 $model->attachBehaviors($model->behaviors()); 399 return $model; 400 } 401 } 402 403 /** |
#4 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/models/Dynamic.php(38): CActiveRecord::model("Token_624189") 33 $className = get_called_class(); 34 } elseif (is_numeric($className)) { 35 $className = get_called_class().'_'.$className; 36 } 37 /** @var self $model */ 38 $model = parent::model($className); 39 return $model; 40 } 41 42 /** 43 * @param string $scenario |
#5 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/models/Token.php(338): Dynamic::model("Token_624189") 333 * @return Token 334 */ 335 public static function model($className = null) 336 { 337 /** @var self $model */ 338 $model = parent::model($className); 339 return $model; 340 } 341 342 /** 343 * @param int $surveyId |
#6 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/controllers/admin/export.php(686): Token::model("624189") 681 682 683 foreach ($result as $row) { 684 685 // prepare the data for decryption 686 $oToken = Token::model($iSurveyId); 687 $oToken->setAttributes($row, false); 688 $oToken->decrypt(); 689 690 $oResponse = Response::model($iSurveyId); 691 $oResponse->setAttributes($row, false); |
#7 |
unknown(0): export->vvexport()
|
#8 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(export, array()) 104 elseif($param->isDefaultValueAvailable()) 105 $ps[]=$param->getDefaultValue(); 106 else 107 return false; 108 } 109 $method->invokeArgs($object,$ps); 110 return true; 111 } 112 } |
#9 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/core/Survey_Common_Action.php(86): CAction->runWithParamsInternal(export, ReflectionMethod, array("surveyid" => "624189", "sa" => "vvexport", "iSurveyId" => "624189", "iSurveyID" => "624189", ...)) 81 $oMethod = new ReflectionMethod($this, $sDefault); 82 } 83 84 // We're all good to go, let's execute it 85 // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params 86 return parent::runWithParamsInternal($this, $oMethod, $params); 87 } 88 89 /** 90 * Some functions have different parameters, which are just an alias of the 91 * usual parameters we're getting in the url. This function just populates |
#10 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/CController.php(308): Survey_Common_Action->runWithParams(array("surveyid" => "624189", "sa" => "vvexport", "iSurveyId" => "624189", "iSurveyID" => "624189", ...)) 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 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/CController.php(286): CController->runAction(export) 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(); |
#12 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/CController.php(265): CController->runActionWithFilters(export, 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); |
#13 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/controllers/AdminController.php(180): CController->run("export") 175 } 176 177 $this->runModuleController($action); 178 179 180 return parent::run($action); 181 } 182 183 /** 184 * Starting with LS4, 3rd party developper can extends any of the LimeSurve controllers. 185 * |
#14 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/CWebApplication.php(282): AdminController->run("export") 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))); |
#15 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/export/sa/vvexport") 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. |
#16 |
+
–
/mnt/data/shnoulle/nginx/www/master/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 /** |