/home/cvb255/apps/binoth/framework/db/CDbCommand.php(528)
516 return $result; 517 } 518 catch(Exception $e) 519 { 520 if($this->_connection->enableProfiling) 521 Yii::endProfile('system.db.CDbCommand.query('.$this->getText().$par.')','system.db.CDbCommand.query'); 522 $errorInfo = $e instanceof PDOException ? $e->errorInfo : null; 523 $message = $e->getMessage(); 524 Yii::log(Yii::t('yii','CDbCommand::{method}() failed: {error}. The SQL statement executed was: {sql}.', 525 array('{method}'=>$method, '{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand'); 526 if(YII_DEBUG) 527 $message .= '. The SQL statement executed was: '.$this->getText().$par; 528 throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}', 529 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo); 530 } 531 } 532 533 /** 534 * Builds a SQL SELECT statement from the given query specification. 535 * @param array $query the query specification in name-value pairs. The following 536 * query options are supported: {@link select}, {@link distinct}, {@link from}, 537 * {@link where}, {@link join}, {@link group}, {@link having}, {@link order}, 538 * {@link limit}, {@link offset} and {@link union}. 539 * @return string the SQL statement 540 * @since 1.1.6
#0 |
+
–
/home/cvb255/apps/binoth/framework/db/CDbCommand.php(390): CDbCommand->queryInternal("fetchAll", array(2), array()) 385 * An empty array is returned if the query results in nothing. 386 * @throws CException execution failed 387 */ 388 public function queryAll($fetchAssociative=true,$params=array()) 389 { 390 return $this->queryInternal('fetchAll',$fetchAssociative ? $this->_fetchMode : PDO::FETCH_NUM, $params); 391 } 392 393 /** 394 * Executes the SQL statement and returns the first row of the result. 395 * This is a convenient method of {@link query} when only the first row of data is needed. |
#1 |
+
–
/home/cvb255/apps/binoth/framework/db/ar/CActiveRecord.php(1291): CDbCommand->queryAll() 1286 if(empty($criteria->with)) 1287 { 1288 if(!$all) 1289 $criteria->limit=1; 1290 $command=$this->getCommandBuilder()->createFindCommand($this->getTableSchema(),$criteria); 1291 return $all ? $this->populateRecords($command->queryAll(), true, $criteria->index) : $this->populateRecord($command->queryRow()); 1292 } 1293 else 1294 { 1295 $finder=new CActiveFinder($this,$criteria->with); 1296 return $finder->query($criteria,$all); |
#2 |
+
–
/home/cvb255/apps/binoth/framework/db/ar/CActiveRecord.php(1410): CActiveRecord->query(CDbCriteria, true) 1405 */ 1406 public function findAll($condition='',$params=array()) 1407 { 1408 Yii::trace(get_class($this).'.findAll()','system.db.ar.CActiveRecord'); 1409 $criteria=$this->getCommandBuilder()->createCriteria($condition,$params); 1410 return $this->query($criteria,true); 1411 } 1412 1413 /** 1414 * Finds a single active record with the specified primary key. 1415 * See {@link find()} for detailed explanation about $condition and $params. |
#3 |
+
–
/home/cvb255/apps/binoth/framework/web/CActiveDataProvider.php(150): CActiveRecord->findAll(CDbCriteria) 145 $this->model->setDbCriteria($criteria); 146 $sort->applyOrder($criteria); 147 } 148 149 $this->model->setDbCriteria($baseCriteria!==null ? clone $baseCriteria : null); 150 $data=$this->model->findAll($criteria); 151 $this->model->setDbCriteria($baseCriteria); // restore original criteria 152 return $data; 153 } 154 155 /** |
#4 |
+
–
/home/cvb255/apps/binoth/framework/web/CDataProvider.php(137): CActiveDataProvider->fetchData() 132 * @return array the list of data items currently available in this data provider. 133 */ 134 public function getData($refresh=false) 135 { 136 if($this->_data===null || $refresh) 137 $this->_data=$this->fetchData(); 138 return $this->_data; 139 } 140 141 /** 142 * Sets the data items for this provider. |
#5 |
+
–
/home/cvb255/apps/binoth/framework/zii/widgets/CBaseListView.php(108): CDataProvider->getData() 103 public function init() 104 { 105 if($this->dataProvider===null) 106 throw new CException(Yii::t('zii','The "dataProvider" property cannot be empty.')); 107 108 $this->dataProvider->getData(); 109 110 $this->htmlOptions['id']=$this->getId(); 111 112 if($this->enableSorting && $this->dataProvider->getSort()===false) 113 $this->enableSorting=false; |
#6 |
+
–
/home/cvb255/apps/binoth/framework/zii/widgets/CListView.php(182): CBaseListView->init() 177 */ 178 public function init() 179 { 180 if($this->itemView===null) 181 throw new CException(Yii::t('zii','The property "itemView" cannot be empty.')); 182 parent::init(); 183 184 if(!isset($this->htmlOptions['class'])) 185 $this->htmlOptions['class']='list-view'; 186 187 if($this->baseScriptUrl===null) |
#7 |
+
–
/home/cvb255/apps/binoth/framework/web/CBaseController.php(148): CListView->init() 143 * @return CWidget the fully initialized widget instance. 144 */ 145 public function createWidget($className,$properties=array()) 146 { 147 $widget=Yii::app()->getWidgetFactory()->createWidget($this,$className,$properties); 148 $widget->init(); 149 return $widget; 150 } 151 152 /** 153 * Creates a widget and executes it. |
#8 |
+
–
/home/cvb255/apps/binoth/framework/web/CBaseController.php(173): CBaseController->createWidget("zii.widgets.CListView", array("dataProvider" => CActiveDataProvider, "itemView" => "ext.esearch.views._result", "itemsCssClass" => "type-list-items-search", "pager" => array("cssFile" => "/themes/othemen/css/pager.css", "header" => false, "firstPageLabel" => "<<", "prevPageLabel" => "<", ...))) 168 $widget->run(); 169 return ob_get_clean(); 170 } 171 else 172 { 173 $widget=$this->createWidget($className,$properties); 174 $widget->run(); 175 return $widget; 176 } 177 } 178 |
#9 |
+
–
/home/cvb255/apps/binoth/protected/extensions/esearch/views/results.php(50): CBaseController->widget("zii.widgets.CListView", array("dataProvider" => CActiveDataProvider, "itemView" => "ext.esearch.views._result", "itemsCssClass" => "type-list-items-search", "pager" => array("cssFile" => "/themes/othemen/css/pager.css", "header" => false, "firstPageLabel" => "<<", "prevPageLabel" => "<", ...))) 45 'prevPageLabel' => Yii::t('app', 'Previous'), 46 'nextPageLabel' => Yii::t('app', 'Next'), 47 'lastPageLabel' => Yii::t('app', 'Last'), 48 ), 49 ), $widgetParams 50 )); 51 ?> 52 </div> 53 54 <?php 55 } |
#10 |
+
–
/home/cvb255/apps/binoth/framework/web/CBaseController.php(127): require("/home/cvb255/apps/binoth/protected/extensions/esearch/views/resu...") 122 $data=$_data_; 123 if($_return_) 124 { 125 ob_start(); 126 ob_implicit_flush(false); 127 require($_viewFile_); 128 return ob_get_clean(); 129 } 130 else 131 require($_viewFile_); 132 } |
#11 |
+
–
/home/cvb255/apps/binoth/framework/web/CBaseController.php(96): CBaseController->renderInternal("/home/cvb255/apps/binoth/protected/extensions/esearch/views/resu...", array("query" => null, "dataProvider" => CActiveDataProvider, "widget" => "zii.widgets.CListView", "widgetParams" => array()), true) 091 { 092 $widgetCount=count($this->_widgetStack); 093 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 094 $content=$renderer->renderFile($this,$viewFile,$data,$return); 095 else 096 $content=$this->renderInternal($viewFile,$data,$return); 097 if(count($this->_widgetStack)===$widgetCount) 098 return $content; 099 else 100 { 101 $widget=end($this->_widgetStack); |
#12 |
+
–
/home/cvb255/apps/binoth/framework/web/CController.php(870): CBaseController->renderFile("/home/cvb255/apps/binoth/protected/extensions/esearch/views/resu...", array("query" => null, "dataProvider" => CActiveDataProvider, "widget" => "zii.widgets.CListView", "widgetParams" => array()), true) 865 */ 866 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 867 { 868 if(($viewFile=$this->getViewFile($view))!==false) 869 { 870 $output=$this->renderFile($viewFile,$data,true); 871 if($processOutput) 872 $output=$this->processOutput($output); 873 if($return) 874 return $output; 875 else |
#13 |
+
–
/home/cvb255/apps/binoth/framework/web/CController.php(783): CController->renderPartial("ext.esearch.views.results", array("query" => null, "dataProvider" => CActiveDataProvider, "widget" => "zii.widgets.CListView", "widgetParams" => array()), true) 778 */ 779 public function render($view,$data=null,$return=false) 780 { 781 if($this->beforeRender($view)) 782 { 783 $output=$this->renderPartial($view,$data,true); 784 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 785 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 786 787 $this->afterRender($view,$output); 788 |
#14 |
+
–
/home/cvb255/apps/binoth/protected/extensions/esearch/SearchAction.php(159): CController->render("ext.esearch.views.results", array("query" => null, "dataProvider" => CActiveDataProvider, "widget" => "zii.widgets.CListView", "widgetParams" => array())) 154 155 public function run() { 156 $this->init(); 157 158 if ($this->output) 159 $this->controller->render($this->viewPath . $this->view, array('query' => $this->getQuery(), 'dataProvider' => $this->getDataProvider(), 'widget' => $this->widget, 'widgetParams' => $this->widgetParams)); 160 else { 161 162 $this->controller->renderPartial($this->viewPath . $this->view, array('query' => $this->getQuery(), 'dataProvider' => $this->getDataProvider(), 'widget' => $this->widget, 'widgetParams' => $this->widgetParams)); 163 } 164 } |
#15 |
+
–
/home/cvb255/apps/binoth/framework/web/actions/CAction.php(75): SearchAction->run() 70 { 71 $method=new ReflectionMethod($this, 'run'); 72 if($method->getNumberOfParameters()>0) 73 return $this->runWithParamsInternal($this, $method, $params); 74 else 75 return $this->run(); 76 } 77 78 /** 79 * Executes a method of an object with the supplied named parameters. 80 * This method is internally used. |
#16 |
+
–
/home/cvb255/apps/binoth/framework/web/CController.php(309): CAction->runWithParams(array("q" => "شرح الأصول من علم الأصول")) 304 { 305 $priorAction=$this->_action; 306 $this->_action=$action; 307 if($this->beforeAction($action)) 308 { 309 if($action->runWithParams($this->getActionParams())===false) 310 $this->invalidActionParams($action); 311 else 312 $this->afterAction($action); 313 } 314 $this->_action=$priorAction; |
#17 |
+
–
/home/cvb255/apps/binoth/framework/web/CController.php(287): CController->runAction(SearchAction) 282 * @see runAction 283 */ 284 public function runActionWithFilters($action,$filters) 285 { 286 if(empty($filters)) 287 $this->runAction($action); 288 else 289 { 290 $priorAction=$this->_action; 291 $this->_action=$action; 292 CFilterChain::create($this,$action,$filters)->run(); |
#18 |
+
–
/home/cvb255/apps/binoth/framework/web/CController.php(266): CController->runActionWithFilters(SearchAction, array()) 261 { 262 if(($parent=$this->getModule())===null) 263 $parent=Yii::app(); 264 if($parent->beforeControllerAction($this,$action)) 265 { 266 $this->runActionWithFilters($action,$this->filters()); 267 $parent->afterControllerAction($this,$action); 268 } 269 } 270 else 271 $this->missingAction($actionID); |
#19 |
+
–
/home/cvb255/apps/binoth/framework/web/CWebApplication.php(283): CController->run("search") 278 { 279 list($controller,$actionID)=$ca; 280 $oldController=$this->_controller; 281 $this->_controller=$controller; 282 $controller->init(); 283 $controller->run($actionID); 284 $this->_controller=$oldController; 285 } 286 else 287 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 288 array('{route}'=>$route===''?$this->defaultController:$route))); |
#20 |
+
–
/home/cvb255/apps/binoth/framework/web/CWebApplication.php(142): CWebApplication->runController("site/search") 137 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 138 $_GET[$name]=$value; 139 } 140 else 141 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 142 $this->runController($route); 143 } 144 145 /** 146 * Registers the core application components. 147 * This method overrides the parent implementation by registering additional core components. |
#21 |
+
–
/home/cvb255/apps/binoth/framework/base/CApplication.php(162): CWebApplication->processRequest() 157 */ 158 public function run() 159 { 160 if($this->hasEventHandler('onBeginRequest')) 161 $this->onBeginRequest(new CEvent($this)); 162 $this->processRequest(); 163 if($this->hasEventHandler('onEndRequest')) 164 $this->onEndRequest(new CEvent($this)); 165 } 166 167 /** |
#22 |
+
–
/home/cvb255/apps/binoth/index.php(20): CApplication->run() 15 defined('YII_DEBUG') or define('YII_DEBUG',false); 16 // specify how many levels of call stack should be shown in each log message 17 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 18 19 require_once($yii); 20 Yii::createWebApplication($config)->run(); 21 22 23 //Yii::app()->assetManager->forceCopy = true; //to force relode assets files 24 |