/data/webdev/master/vendor/yiisoft/yii/framework/db/ar/CActiveRecord.php(2391)
2379 2380 /** 2381 * Constructor. 2382 * @param CActiveRecord $model the model instance 2383 * @throws CDbException if specified table for active record class cannot be found in the database 2384 */ 2385 public function __construct($model) 2386 { 2387 $this->_modelClassName=get_class($model); 2388 2389 $tableName=$model->tableName(); 2390 if(($table=$model->getDbConnection()->getSchema()->getTable($tableName))===null) 2391 throw new CDbException(Yii::t('yii','The table "{table}" for active record class "{class}" cannot be found in the database.', 2392 array('{class}'=>$this->_modelClassName,'{table}'=>$tableName))); 2393 2394 if(($modelPk=$model->primaryKey())!==null || $table->primaryKey===null) 2395 { 2396 $table->primaryKey=$modelPk; 2397 if(is_string($table->primaryKey) && isset($table->columns[$table->primaryKey])) 2398 $table->columns[$table->primaryKey]->isPrimaryKey=true; 2399 elseif(is_array($table->primaryKey)) 2400 { 2401 foreach($table->primaryKey as $name) 2402 { 2403 if(isset($table->columns[$name]))
#0 |
+
–
/data/webdev/master/vendor/yiisoft/yii/framework/db/ar/CActiveRecord.php(413): CActiveRecordMetaData->__construct() 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 |
+
–
/data/webdev/master/vendor/yiisoft/yii/framework/db/ar/CActiveRecord.php(79): CActiveRecord->getMetaData() 74 if($scenario===null) // internally used by populateRecord() and model() 75 return; 76 77 $this->setScenario($scenario); 78 $this->setIsNewRecord(true); 79 $this->_attributes=$this->getMetaData()->attributeDefaults; 80 81 $this->init(); 82 83 $this->attachBehaviors($this->behaviors()); 84 $this->afterConstruct(); |
#2 |
+
–
/data/webdev/master/application/models/TemplateConfig.php(179): CActiveRecord->__construct() 174 ) { 175 $oMotherTemplate = $oRTemplate->oMotherTemplate; 176 if (!($oMotherTemplate instanceof TemplateConfiguration)) { 177 if (!$force && App()->twigRenderer->getPathOfFile($sFile)) { 178 // return dummy template , new self broke (No DB : TODO : must fix init of self) 179 $templateConfig = new TemplateConfig(); 180 $templateConfig->sTemplateName = null; 181 return $templateConfig; 182 } 183 /* @todo : same for css and js (in registered package ? ) */ 184 TemplateConfiguration::uninstall($this->sTemplateName); |
#3 |
+
–
/data/webdev/master/application/views/admin/themes/templatesummary_view.php(36): TemplateConfig->getTemplateForFile() 31 <a href="<?php echo $this->createUrl('admin/themes', array('sa'=>'view','screenname'=>$screenname,'templatename'=>$templatename, 'editfile' => $file )); ?>" class="<?php if($file == $relativePathEditfile ){echo 'text-danger';}else{echo 'text-success';}; ?>"> 32 <?php echo (empty(substr(strrchr($file, DIRECTORY_SEPARATOR), 1)))?$file:substr(strrchr($file, DIRECTORY_SEPARATOR), 1) ;?> 33 </a> 34 </div> 35 <div class="col-sm-3"> 36 <?php if ( $oEditedTemplate->getTemplateForFile($file, $oEditedTemplate,false) && $oEditedTemplate->getTemplateForFile($file, $oEditedTemplate)->sTemplateName == $oEditedTemplate->sTemplateName) { ?> 37 <?php if (Permission::model()->hasGlobalPermission('templates','delete')) { ?> 38 <?=CHtml::form(array('admin/themes','sa'=>'templatefiledelete'), 'post'); ?> 39 <input type='hidden' name="filetype" value="<?php echo CHtml::encode('screen'); ?>" /> 40 <input type='hidden' name="filename" value="<?php echo CHtml::encode($file); ?>" /> 41 <input type='submit' class='btn btn-default btn-xs template-files-delete-button' value='<?php eT("Reset"); ?>' onclick="javascript:return confirm('<?php eT(" Are you sure you want to reset this file? ", "js"); ?>')"/> |
#4 |
+
–
/data/webdev/master/vendor/yiisoft/yii/framework/web/CBaseController.php(126): require("/data/webdev/master/application/views/admin/themes/templatesumma...") 121 $data=$_data_; 122 if($_return_) 123 { 124 ob_start(); 125 ob_implicit_flush(false); 126 require($_viewFile_); 127 return ob_get_clean(); 128 } 129 else 130 require($_viewFile_); 131 } |
#5 |
+
–
/data/webdev/master/vendor/yiisoft/yii/framework/web/CBaseController.php(95): CBaseController->renderInternal() 090 { 091 $widgetCount=count($this->_widgetStack); 092 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 093 $content=$renderer->renderFile($this,$viewFile,$data,$return); 094 else 095 $content=$this->renderInternal($viewFile,$data,$return); 096 if(count($this->_widgetStack)===$widgetCount) 097 return $content; 098 else 099 { 100 $widget=end($this->_widgetStack); |
#6 |
+
–
/data/webdev/master/vendor/yiisoft/yii/framework/web/CController.php(872): CBaseController->renderFile() 867 */ 868 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 869 { 870 if(($viewFile=$this->getViewFile($view))!==false) 871 { 872 $output=$this->renderFile($viewFile,$data,true); 873 if($processOutput) 874 $output=$this->processOutput($output); 875 if($return) 876 return $output; 877 else |
#7 |
+
–
/data/webdev/master/application/controllers/AdminController.php(261): CController->renderPartial() 256 $view = $sModulePath; 257 } 258 } 259 } 260 261 return parent::renderPartial($view, $data, $return, $processOutput); 262 } 263 264 /** 265 * Routes all the actions to their respective places 266 * |
#8 |
+
–
/data/webdev/master/application/core/SurveyCommonAction.php(277): AdminController->renderPartial() 272 if (is_numeric($sViewKey)) { 273 $content .= Yii::app()->getController()->renderPartial($sViewPath . $viewUrl, $aData, true); 274 } elseif (is_array($viewUrl)) { 275 foreach ($viewUrl as $aSubData) { 276 $aSubData = array_merge($aData, $aSubData); 277 $content .= Yii::app()->getController()->renderPartial($sViewPath . $sViewKey, $aSubData, true); 278 } 279 } 280 } else { 281 switch ($sViewKey) { 282 // We'll use some Bootstrap alerts, and call them inside each correct view. |
#9 |
+
–
/data/webdev/master/application/core/SurveyCommonAction.php(358): SurveyCommonAction->renderCentralContents() 353 $renderFile = $basePath . '/layout_main.php'; 354 } 355 } else { 356 $renderFile = $basePath . '/' . $sRenderFile; 357 } 358 $content = $this->renderCentralContents($sAction, $aViewUrls, $aData); 359 $out = $this->renderInternal($renderFile, ['content' => $content, 'aData' => $aData], true); 360 361 App()->getClientScript()->render($out); 362 echo $out; 363 } |
#10 |
+
–
/data/webdev/master/application/controllers/admin/Themes.php(1329): SurveyCommonAction->renderWrappedTemplate() 1324 * @param string|array $aViewUrls View url(s) 1325 * @param array $aData Data to be passed on. Optional. 1326 */ 1327 protected function renderWrappedTemplate($sAction = 'themes', $aViewUrls = array(), $aData = array(), $sRenderFile = false) 1328 { 1329 parent::renderWrappedTemplate($sAction, $aViewUrls, $aData, $sRenderFile); 1330 } 1331 1332 /** 1333 * Redirects if demo mode is set. 1334 * @return void |
#11 |
+
–
/data/webdev/master/application/controllers/admin/Themes.php(570): Themes->renderWrappedTemplate() 565 $aData['pageTitle'] = $pageTitle; 566 567 // White Bar 568 $aData['templateEditorBar']['buttons']['returnbutton'] = true; 569 570 $this->renderWrappedTemplate('themes', $aViewUrls, $aData); 571 572 // This helps handle the load/save buttons) 573 if ($screenname != 'welcome') { 574 Yii::app()->session['step'] = 1; 575 } else { |
#12 |
unknown(0): Themes->index()
|
#13 |
+
–
/data/webdev/master/vendor/yiisoft/yii/framework/web/actions/CAction.php(115): ReflectionMethod->invokeArgs() 110 elseif($param->isDefaultValueAvailable()) 111 $ps[]=$param->getDefaultValue(); 112 else 113 return false; 114 } 115 $method->invokeArgs($object,$ps); 116 return true; 117 } 118 } |
#14 |
+
–
/data/webdev/master/application/core/SurveyCommonAction.php(83): CAction->runWithParamsInternal() 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 |
#15 |
+
–
/data/webdev/master/application/controllers/admin/Themes.php(31): SurveyCommonAction->runWithParams() 26 { 27 public function runWithParams($params) 28 { 29 $sTemplateName = Yii::app()->request->getPost('templatename', ''); 30 if (Permission::model()->hasGlobalPermission('templates', 'read') || Permission::model()->hasTemplatePermission($sTemplateName)) { 31 parent::runWithParams($params); 32 } else { 33 Yii::app()->setFlashMessage(gT("We are sorry but you don't have permissions to do this."), 'error'); 34 $this->getController()->redirect(array("themeOptions/index")); 35 } 36 } |
#16 |
+
–
/data/webdev/master/vendor/yiisoft/yii/framework/web/CController.php(308): Themes->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; |
#17 |
+
–
/data/webdev/master/vendor/yiisoft/yii/framework/web/CController.php(286): CController->runAction() 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(); |
#18 |
+
–
/data/webdev/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); |
#19 |
+
–
/data/webdev/master/application/controllers/AdminController.php(202): CController->run() 197 } 198 199 $this->runModuleController($action); 200 201 202 return parent::run($action); 203 } 204 205 /** 206 * Starting with LS4, 3rd party developer can extends any of the LimeSurve controllers. 207 * |
#20 |
+
–
/data/webdev/master/vendor/yiisoft/yii/framework/web/CWebApplication.php(282): AdminController->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))); |
#21 |
+
–
/data/webdev/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. |
#22 |
+
–
/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 /** |
#23 |
+
–
/data/webdev/master/index.php(192): CApplication->run() 187 require_once APPPATH . 'core/LSYii_Application' . EXT; 188 189 $config = require_once(APPPATH . 'config/internal' . EXT); 190 191 Yii::$enableIncludePath = false; 192 Yii::createApplication('LSYii_Application', $config)->run(); 193 194 /* End of file index.php */ 195 /* Location: ./index.php */ |