E:\WebSite\limesurvey\framework\db\CDbCommand.php(543)
531 { 532 if($this->_connection->enableProfiling) 533 Yii::endProfile('system.db.CDbCommand.query('.$this->getText().$par.')','system.db.CDbCommand.query'); 534 535 $errorInfo=$e instanceof PDOException ? $e->errorInfo : null; 536 $message=$e->getMessage(); 537 Yii::log(Yii::t('yii','CDbCommand::{method}() failed: {error}. The SQL statement executed was: {sql}.', 538 array('{method}'=>$method, '{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand'); 539 540 if(YII_DEBUG) 541 $message.='. The SQL statement executed was: '.$this->getText().$par; 542 543 throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}', 544 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo); 545 } 546 } 547 548 /** 549 * Builds a SQL SELECT statement from the given query specification. 550 * @param array $query the query specification in name-value pairs. The following 551 * query options are supported: {@link select}, {@link distinct}, {@link from}, 552 * {@link where}, {@link join}, {@link group}, {@link having}, {@link order}, 553 * {@link limit}, {@link offset} and {@link union}. 554 * @throws CDbException if "from" key is not present in given query parameter 555 * @return string the SQL statement
#0 |
+
–
E:\WebSite\limesurvey\framework\db\CDbCommand.php(396): CDbCommand->queryInternal("fetchAll", array(2), array()) 391 * An empty array is returned if the query results in nothing. 392 * @throws CException execution failed 393 */ 394 public function queryAll($fetchAssociative=true,$params=array()) 395 { 396 return $this->queryInternal('fetchAll',$fetchAssociative ? $this->_fetchMode : PDO::FETCH_NUM, $params); 397 } 398 399 /** 400 * Executes the SQL statement and returns the first row of the result. 401 * This is a convenient method of {@link query} when only the first row of data is needed. |
#1 |
+
–
E:\WebSite\limesurvey\framework\db\ar\CActiveRecord.php(1359): CDbCommand->queryAll() 1354 if(empty($criteria->with)) 1355 { 1356 if(!$all) 1357 $criteria->limit=1; 1358 $command=$this->getCommandBuilder()->createFindCommand($this->getTableSchema(),$criteria); 1359 return $all ? $this->populateRecords($command->queryAll(), true, $criteria->index) : $this->populateRecord($command->queryRow()); 1360 } 1361 else 1362 { 1363 $finder=$this->getActiveFinder($criteria->with); 1364 return $finder->query($criteria,$all); |
#2 |
+
–
E:\WebSite\limesurvey\framework\db\ar\CActiveRecord.php(1478): CActiveRecord->query(CDbCriteria, true) 1473 */ 1474 public function findAll($condition='',$params=array()) 1475 { 1476 Yii::trace(get_class($this).'.findAll()','system.db.ar.CActiveRecord'); 1477 $criteria=$this->getCommandBuilder()->createCriteria($condition,$params); 1478 return $this->query($criteria,true); 1479 } 1480 1481 /** 1482 * Finds a single active record with the specified primary key. 1483 * See {@link find()} for detailed explanation about $condition and $params. |
#3 |
+
–
E:\WebSite\limesurvey\framework\web\CActiveDataProvider.php(199): CActiveRecord->findAll(CDbCriteria) 194 $this->model->setDbCriteria($criteria); 195 $sort->applyOrder($criteria); 196 } 197 198 $this->model->setDbCriteria($baseCriteria!==null ? clone $baseCriteria : null); 199 $data=$this->model->findAll($criteria); 200 $this->model->setDbCriteria($baseCriteria); // restore original criteria 201 return $data; 202 } 203 204 /** |
#4 |
+
–
E:\WebSite\limesurvey\framework\web\CDataProvider.php(168): CActiveDataProvider->fetchData() 163 * @return array the list of data items currently available in this data provider. 164 */ 165 public function getData($refresh=false) 166 { 167 if($this->_data===null || $refresh) 168 $this->_data=$this->fetchData(); 169 return $this->_data; 170 } 171 172 /** 173 * Sets the data items for this provider. |
#5 |
+
–
E:\WebSite\limesurvey\framework\zii\widgets\CBaseListView.php(125): CDataProvider->getData() 120 public function init() 121 { 122 if($this->dataProvider===null) 123 throw new CException(Yii::t('zii','The "dataProvider" property cannot be empty.')); 124 125 $this->dataProvider->getData(); 126 127 if(isset($this->htmlOptions['id'])) 128 $this->id=$this->htmlOptions['id']; 129 else 130 $this->htmlOptions['id']=$this->id; |
#6 |
+
–
E:\WebSite\limesurvey\framework\zii\widgets\grid\CGridView.php(339): CBaseListView->init() 334 * Initializes the grid view. 335 * This method will initialize required property values and instantiate {@link columns} objects. 336 */ 337 public function init() 338 { 339 parent::init(); 340 341 if(empty($this->updateSelector)) 342 throw new CException(Yii::t('zii','The property updateSelector should be defined.')); 343 if(empty($this->filterSelector)) 344 throw new CException(Yii::t('zii','The property filterSelector should be defined.')); |
#7 |
+
–
E:\WebSite\limesurvey\application\extensions\bootstrap\widgets\TbGridView.php(44): CGridView->init() 39 /** 40 * Initializes the widget. 41 */ 42 public function init() 43 { 44 parent::init(); 45 $classes = array('table'); 46 if (isset($this->type) && !empty($this->type)) { 47 if (is_string($this->type)) { 48 $this->type = explode(' ', $this->type); 49 } |
#8 |
+
–
E:\WebSite\limesurvey\framework\web\CBaseController.php(147): TbGridView->init() 142 * @return CWidget the fully initialized widget instance. 143 */ 144 public function createWidget($className,$properties=array()) 145 { 146 $widget=Yii::app()->getWidgetFactory()->createWidget($this,$className,$properties); 147 $widget->init(); 148 return $widget; 149 } 150 151 /** 152 * Creates a widget and executes it. |
#9 |
+
–
E:\WebSite\limesurvey\framework\web\CBaseController.php(181): CBaseController->createWidget("bootstrap.widgets.TbGridView",
array("dataProvider" => CActiveDataProvider, "filter" =>
TemplateConfiguration, "id" => "themeoptions-grid", "ajaxUpdate"
=> true, ...)) 176 } 177 return ob_get_clean(); 178 } 179 else 180 { 181 $widget=$this->createWidget($className,$properties); 182 $widget->run(); 183 return $widget; 184 } 185 } 186 |
#10 |
+
–
E:\WebSite\limesurvey\application\views\admin\themeoptions\surveythemelist.php(6): CBaseController->widget("bootstrap.widgets.TbGridView",
array("dataProvider" => CActiveDataProvider, "filter" =>
TemplateConfiguration, "id" => "themeoptions-grid", "ajaxUpdate"
=> true, ...)) 01 02 <div class="row"> 03 <div class="col-sm-12 content-right"> 04 05 <?php $this->widget('bootstrap.widgets.TbGridView', array( 06 'dataProvider' => $oSurveyTheme->searchGrid(), 07 'filter' => $oSurveyTheme, 08 'id' => 'themeoptions-grid', 09 'ajaxUpdate' => true, 10 'ajaxType' => 'POST', 11 'summaryText'=>gT('Displaying {start}-{end} of {count} result(s).').' '. sprintf(gT('%s rows per page'), |
#11 |
+
–
E:\WebSite\limesurvey\framework\web\CBaseController.php(126): require("E:\WebSite\limesurvey\application\views\admin\themeoptions\surve...") 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 } |
#12 |
+
–
E:\WebSite\limesurvey\framework\web\CBaseController.php(95): CBaseController->renderInternal("E:\WebSite\limesurvey\application\views\admin\themeoptions/surve...",
array("oSurveyTheme" => TemplateConfiguration, "pageSize" => 10),
true) 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); |
#13 |
+
–
E:\WebSite\limesurvey\framework\web\CController.php(872): CBaseController->renderFile("E:\WebSite\limesurvey\application\views\admin\themeoptions/surve...",
array("oSurveyTheme" => TemplateConfiguration, "pageSize" => 10),
true) 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 |
#14 |
+
–
E:\WebSite\limesurvey\application\views\admin\themeoptions\index.php(36): CController->renderPartial("themeoptions/surveythemelist", array("oSurveyTheme" => TemplateConfiguration, "pageSize" => 10)) 31 <div class="col-lg-12 list-surveys"> 32 33 <?php echo '<h3>'.gT('Installed survey themes:').'</h3>'; ?> 34 35 <?php $this->renderPartial('themeoptions/surveythememenu',['canImport'=>$canImport,'importErrorMessage'=>$importErrorMessage]); ?> 36 <?php $this->renderPartial('themeoptions/surveythemelist', array( 'oSurveyTheme'=> $oSurveyTheme, 'pageSize'=>$pageSize )); ?> 37 38 <!-- Available Themes --> 39 <?php if (count($oSurveyTheme->templatesWithNoDb) > 0 ):?> 40 <h3><?php eT('Available survey themes:'); ?></h3> 41 <div class="row"> |
#15 |
+
–
E:\WebSite\limesurvey\framework\web\CBaseController.php(126): require("E:\WebSite\limesurvey\application\views\admin\themeoptions\index...") 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 } |
#16 |
+
–
E:\WebSite\limesurvey\framework\web\CBaseController.php(95): CBaseController->renderInternal("E:\WebSite\limesurvey\application\views/admin/themeoptions/index...",
array("oAdminTheme" => AdminTheme, "oSurveyTheme" =>
TemplateConfiguration, "canImport" => true, "importErrorMessage"
=> null, ...), true) 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); |
#17 |
+
–
E:\WebSite\limesurvey\framework\web\CController.php(872): CBaseController->renderFile("E:\WebSite\limesurvey\application\views/admin/themeoptions/index...",
array("oAdminTheme" => AdminTheme, "oSurveyTheme" =>
TemplateConfiguration, "canImport" => true, "importErrorMessage"
=> null, ...), true) 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 |
#18 |
+
–
E:\WebSite\limesurvey\application\core\Survey_Common_Action.php(267): CController->renderPartial("/admin/themeoptions/index",
array("oAdminTheme" => AdminTheme, "oSurveyTheme" =>
TemplateConfiguration, "canImport" => true, "importErrorMessage"
=> null, ...), true) 262 // Load views 263 $content = ""; 264 foreach ($aViewUrls as $sViewKey => $viewUrl) { 265 if (empty($sViewKey) || !in_array($sViewKey, array('message', 'output'))) { 266 if (is_numeric($sViewKey)) { 267 $content .= Yii::app()->getController()->renderPartial($sViewPath.$viewUrl, $aData, true); 268 } elseif (is_array($viewUrl)) { 269 foreach ($viewUrl as $aSubData) { 270 $aSubData = array_merge($aData, $aSubData); 271 $content .= Yii::app()->getController()->renderPartial($sViewPath.$sViewKey, $aSubData, true); 272 } |
#19 |
+
–
E:\WebSite\limesurvey\application\core\Survey_Common_Action.php(345): Survey_Common_Action->renderCentralContents("themeoptions",
array("index"), array("oAdminTheme" => AdminTheme, "oSurveyTheme"
=> TemplateConfiguration, "canImport" => true,
"importErrorMessage" => null, ...)) 340 } 341 } else { 342 $renderFile = $basePath.'/'.$sRenderFile; 343 } 344 345 $content = $this->renderCentralContents($sAction, $aViewUrls, $aData); 346 $out = $this->renderInternal($renderFile, ['content' => $content, 'aData' => $aData], true); 347 348 App()->getClientScript()->render($out); 349 echo $out; 350 } |
#20 |
+
–
E:\WebSite\limesurvey\application\controllers\admin\themeoptions.php(216): Survey_Common_Action->_renderWrappedTemplate("themeoptions",
"index", array("oAdminTheme" => AdminTheme, "oSurveyTheme" =>
TemplateConfiguration, "canImport" => true, "importErrorMessage"
=> null, ...)) 211 $aData['oSurveyTheme'] = $oSurveyTheme; 212 $aData['canImport'] = $canImport; 213 $aData['importErrorMessage'] = $importErrorMessage; 214 $aData['pageSize'] = Yii::app()->user->getState('pageSizeTemplateView', Yii::app()->params['defaultPageSize']); // Page size 215 216 $this->_renderWrappedTemplate('themeoptions', 'index', $aData); 217 } else { 218 Yii::app()->setFlashMessage(gT("We are sorry but you don't have permissions to do this."), 'error'); 219 $this->getController()->redirect(App()->createUrl("/admin")); 220 } 221 } |
#21 |
unknown(0): themeoptions->index()
|
#22 |
+
–
E:\WebSite\limesurvey\framework\web\actions\CAction.php(109): ReflectionMethod->invokeArgs(themeoptions, 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 } |
#23 |
+
–
E:\WebSite\limesurvey\application\core\Survey_Common_Action.php(83): CAction->runWithParamsInternal(themeoptions, ReflectionMethod, array("r" => "admin/themeoptions", "TemplateConfiguration_page" => "2")) 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 |
#24 |
+
–
E:\WebSite\limesurvey\framework\web\CController.php(308): Survey_Common_Action->runWithParams(array("r" => "admin/themeoptions", "TemplateConfiguration_page" => "2")) 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; |
#25 |
+
–
E:\WebSite\limesurvey\framework\web\CController.php(286): CController->runAction(themeoptions) 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(); |
#26 |
+
–
E:\WebSite\limesurvey\framework\web\CController.php(265): CController->runActionWithFilters(themeoptions, 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); |
#27 |
+
–
E:\WebSite\limesurvey\application\controllers\AdminController.php(158): CController->run("themeoptions") 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 * |
#28 |
+
–
E:\WebSite\limesurvey\framework\web\CWebApplication.php(282): AdminController->run("themeoptions") 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))); |
#29 |
+
–
E:\WebSite\limesurvey\framework\web\CWebApplication.php(141): CWebApplication->runController("admin/themeoptions") 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. |
#30 |
+
–
E:\WebSite\limesurvey\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 /** |
#31 |
+
–
E:\WebSite\limesurvey\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 */ |