/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(SurveyDynamic) 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(34): CActiveRecord->hasAttribute("created") 29 * @return array 30 */ 31 public function behaviors() 32 { 33 $aBehaviors = array(); 34 $sCreateFieldName = ($this->hasAttribute('created') ? 'created' : null); 35 $sUpdateFieldName = ($this->hasAttribute('modified') ? 'modified' : null); 36 $sDriverName = Yii::app()->db->getDriverName(); 37 if ($sDriverName == 'sqlsrv' || $sDriverName == 'dblib') { 38 $sTimestampExpression = new CDbExpression('GETDATE()'); 39 } 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/SurveyDynamic.php(54): CActiveRecord::model("SurveyDynamic") 49 self::$survey = $survey; 50 $refresh = true; 51 } 52 53 /** @var self $model */ 54 $model = parent::model(__CLASS__); 55 56 //We need to refresh if we changed sid 57 if ($refresh === true) { 58 $model->refreshMetaData(); 59 } |
#5 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/helpers/replacements_helper.php(225): SurveyDynamic::model("777735") 220 } 221 222 $_linkreplace = ''; 223 224 if (isset($thissurvey['sid']) && isset($_SESSION['survey_'.$thissurvey['sid']]['srid']) && $thissurvey['active'] == 'Y') { 225 $iscompleted = $thissurvey['iscompleted'] = SurveyDynamic::model($surveyid)->isCompleted($_SESSION['survey_'.$thissurvey['sid']]['srid']); 226 } else { 227 $iscompleted = $thissurvey['iscompleted'] = false; 228 } 229 230 if (isset($surveyid) && isset($_SESSION['survey_'.$surveyid]['srid'])) { |
#6 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/helpers/expressions/em_manager_helper.php(3685): templatereplace("{SID}") 3680 'jsName'=>'', 3681 'readWrite'=>'N', 3682 ); 3683 } 3684 /* Add the core replacement before question code : needed if use it in equation , use SID to never send error */ 3685 templatereplace("{SID}"); 3686 3687 // Since building array of allowable answers, need to know preset values for certain question types 3688 $presets = array(); 3689 $presets['G'] = array( //GENDER drop-down list 3690 'M' => $this->gT("Male"), |
#7 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/helpers/expressions/em_manager_helper.php(4921): LimeExpressionManager->setVariableAndTokenMappingsForExpressionManager("777735") 4916 $LEM->em->StartProcessingGroup( 4917 isset($_SESSION['LEMsid']) ? $_SESSION['LEMsid'] : NULL, 4918 '', 4919 true 4920 ); 4921 $LEM->setVariableAndTokenMappingsForExpressionManager($_SESSION['LEMsid']); 4922 } 4923 4924 } 4925 4926 /** |
#8 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/core/Survey_Common_Action.php(335): LimeExpressionManager::StartProcessingPage(false, true) 330 $aData['oSurvey'] = Survey::model()->findByPk($aData['surveyid']); 331 332 // Needed to evaluate EM expressions in question summary 333 // See bug #11845 334 LimeExpressionManager::SetSurveyId($aData['surveyid']); 335 LimeExpressionManager::StartProcessingPage(false,true); 336 337 $renderFile = $basePath.'/layout_insurvey.php'; 338 } else { 339 $renderFile = $basePath.'/layout_main.php'; 340 } |
#9 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/controllers/admin/surveyadmin.php(2273): Survey_Common_Action->_renderWrappedTemplate("survey",
"deactivateSurvey_view", array("aSurveysettings" =>
array("htmlemail" => "Y", "format" => "G", "template" =>
"skelvanilla", "language" => "en", ...), "surveyid" => "777735",
"title_bar" => array("title" => "Test random with Expression
Manager (Identifiant (ID) :777735)"), "surveybar" =>
array("closebutton" => false), ...), false) 2268 * @param string|array $aViewUrls View url(s) 2269 * @param array $aData Data to be passed on. Optional. 2270 */ 2271 protected function _renderWrappedTemplate($sAction = 'survey', $aViewUrls = array(), $aData = array(), $sRenderFile = false) 2272 { 2273 parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData, $sRenderFile); 2274 } 2275 2276 /** 2277 * Apply current theme options for imported survey theme 2278 * |
#10 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/controllers/admin/surveyadmin.php(826): SurveyAdmin->_renderWrappedTemplate("survey",
"deactivateSurvey_view", array("aSurveysettings" =>
array("htmlemail" => "Y", "format" => "G", "template" =>
"skelvanilla", "language" => "en", ...), "surveyid" => "777735",
"title_bar" => array("title" => "Test random with Expression
Manager (Identifiant (ID) :777735)"), "surveybar" =>
array("closebutton" => false), ...)) 821 Yii::app()->db->schema->refresh(); 822 } 823 824 $aData['sidemenu']['state'] = false; 825 $aData['surveybar']['closebutton'] = false; 826 $this->_renderWrappedTemplate('survey', 'deactivateSurvey_view', $aData); 827 } 828 829 /** 830 * Function responsible to activate survey. 831 * |
#11 |
unknown(0): SurveyAdmin->deactivate("777735")
|
#12 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(SurveyAdmin, array("777735")) 104 elseif($param->isDefaultValueAvailable()) 105 $ps[]=$param->getDefaultValue(); 106 else 107 return false; 108 } 109 $method->invokeArgs($object,$ps); 110 return true; 111 } 112 } |
#13 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/core/Survey_Common_Action.php(83): CAction->runWithParamsInternal(SurveyAdmin,
ReflectionMethod, array("r" =>
"admin/survey/sa/deactivate/surveyid/777735", "sa" => "deactivate",
"surveyid" => "777735", "iSurveyId" => "777735", ...)) 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 |
#14 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/CController.php(308): Survey_Common_Action->runWithParams(array("r"
=> "admin/survey/sa/deactivate/surveyid/777735", "sa" =>
"deactivate", "surveyid" => "777735", "iSurveyId" => "777735",
...)) 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; |
#15 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/CController.php(286): CController->runAction(SurveyAdmin) 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(); |
#16 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/CController.php(265): CController->runActionWithFilters(SurveyAdmin, 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); |
#17 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/controllers/AdminController.php(158): CController->run("survey") 153 $this->redirect(array('/admin/authentication/sa/login')); 154 } 155 } 156 } 157 158 return parent::run($action); 159 } 160 161 /** 162 * Routes all the actions to their respective places 163 * |
#18 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/CWebApplication.php(282): AdminController->run("survey") 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))); |
#19 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/survey/sa/deactivate/surveyid/777735") 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. |
#20 |
+
–
/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 /** |
#21 |
+
–
/mnt/data/shnoulle/nginx/www/master/index.php(194): CApplication->run() 189 require_once APPPATH . 'core/LSYii_Application' . EXT; 190 191 $config = require_once(APPPATH . 'config/internal' . EXT); 192 193 Yii::$enableIncludePath = false; 194 Yii::createApplication('LSYii_Application', $config)->run(); 195 196 /* End of file index.php */ 197 /* Location: ./index.php */ |