/var/www/tpona/data/yiiframework/yii-1.1.14.f0fee9/framework/yiilite.php(9341)
9329 return $result; 9330 } 9331 catch(Exception $e) 9332 { 9333 if($this->_connection->enableProfiling) 9334 Yii::endProfile('system.db.CDbCommand.query('.$this->getText().$par.')','system.db.CDbCommand.query'); 9335 $errorInfo=$e instanceof PDOException ? $e->errorInfo : null; 9336 $message=$e->getMessage(); 9337 Yii::log(Yii::t('yii','CDbCommand::{method}() failed: {error}. The SQL statement executed was: {sql}.', 9338 array('{method}'=>$method, '{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand'); 9339 if(YII_DEBUG) 9340 $message.='. The SQL statement executed was: '.$this->getText().$par; 9341 throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}', 9342 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo); 9343 } 9344 } 9345 public function buildQuery($query) 9346 { 9347 $sql=!empty($query['distinct']) ? 'SELECT DISTINCT' : 'SELECT'; 9348 $sql.=' '.(!empty($query['select']) ? $query['select'] : '*'); 9349 if(!empty($query['from'])) 9350 $sql.="\nFROM ".$query['from']; 9351 else 9352 throw new CDbException(Yii::t('yii','The DB query must contain the "from" portion.')); 9353 if(!empty($query['join']))
#0 |
+
–
/var/www/tpona/data/yiiframework/yii-1.1.14.f0fee9/framework/yiilite.php(9264): CDbCommand->queryInternal("fetchAll", array(2), array()) 9259 { 9260 return $this->queryInternal('',0,$params); 9261 } 9262 public function queryAll($fetchAssociative=true,$params=array()) 9263 { 9264 return $this->queryInternal('fetchAll',$fetchAssociative ? $this->_fetchMode : PDO::FETCH_NUM, $params); 9265 } 9266 public function queryRow($fetchAssociative=true,$params=array()) 9267 { 9268 return $this->queryInternal('fetch',$fetchAssociative ? $this->_fetchMode : PDO::FETCH_NUM, $params); 9269 } |
#1 |
+
–
/var/www/tpona/data/yiiframework/yii-1.1.14.f0fee9/framework/db/ar/CActiveFinder.php(803): CDbCommand->queryAll() 798 * @param CJoinQuery $query the query to be executed. 799 */ 800 public function runQuery($query) 801 { 802 $command=$query->createCommand($this->_builder); 803 foreach($command->queryAll() as $row) 804 $this->populateRecord($query,$row); 805 } 806 807 /** 808 * Populates the active records with the query data. |
#2 |
+
–
/var/www/tpona/data/yiiframework/yii-1.1.14.f0fee9/framework/db/ar/CActiveFinder.php(437): CJoinElement->runQuery(CJoinQuery) 432 { 433 $query=new CJoinQuery($this,$criteria); 434 $this->_finder->baseLimited=($criteria->offset>=0 || $criteria->limit>=0); 435 $this->buildQuery($query); 436 $this->_finder->baseLimited=false; 437 $this->runQuery($query); 438 } 439 elseif(!$this->_joined && !empty($this->_parent->records)) // not joined before 440 { 441 $query=new CJoinQuery($this->_parent); 442 $this->_joined=true; |
#3 |
+
–
/var/www/tpona/data/yiiframework/yii-1.1.14.f0fee9/framework/db/ar/CActiveFinder.php(68): CJoinElement->find(CDbCriteria) 63 { 64 $this->_joinTree->tableAlias=$criteria->alias; 65 $this->_joinTree->rawTableAlias=$this->_builder->getSchema()->quoteTableName($criteria->alias); 66 } 67 68 $this->_joinTree->find($criteria); 69 $this->_joinTree->afterFind(); 70 71 if($all) 72 { 73 $result = array_values($this->_joinTree->records); |
#4 |
+
–
/var/www/tpona/data/yiiframework/yii-1.1.14.f0fee9/framework/yiilite.php(7817): CActiveFinder->query(CDbCriteria, true) 7812 return $all ? $this->populateRecords($command->queryAll(), true, $criteria->index) : $this->populateRecord($command->queryRow()); 7813 } 7814 else 7815 { 7816 $finder=$this->getActiveFinder($criteria->with); 7817 return $finder->query($criteria,$all); 7818 } 7819 } 7820 public function applyScopes(&$criteria) 7821 { 7822 if(!empty($criteria->scopes)) |
#5 |
+
–
/var/www/tpona/data/yiiframework/yii-1.1.14.f0fee9/framework/yiilite.php(7881): CActiveRecord->query(CDbCriteria, true) 7876 return $this->query($criteria); 7877 } 7878 public function findAll($condition='',$params=array()) 7879 { 7880 $criteria=$this->getCommandBuilder()->createCriteria($condition,$params); 7881 return $this->query($criteria,true); 7882 } 7883 public function findByPk($pk,$condition='',$params=array()) 7884 { 7885 $prefix=$this->getTableAlias(true).'.'; 7886 $criteria=$this->getCommandBuilder()->createPkCriteria($this->getTableSchema(),$pk,$condition,$params,$prefix); |
#6 |
+
–
/var/www/tpona/data/yiiframework/yii-1.1.14.f0fee9/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 /** |
#7 |
+
–
/var/www/tpona/data/yiiframework/yii-1.1.14.f0fee9/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. |
#8 |
+
–
/var/www/tpona/data/yiiframework/yii-1.1.14.f0fee9/framework/zii/widgets/CBaseListView.php(111): CDataProvider->getData() 106 public function init() 107 { 108 if($this->dataProvider===null) 109 throw new CException(Yii::t('zii','The "dataProvider" property cannot be empty.')); 110 111 $this->dataProvider->getData(); 112 113 if(isset($this->htmlOptions['id'])) 114 $this->id=$this->htmlOptions['id']; 115 else 116 $this->htmlOptions['id']=$this->id; |
#9 |
+
–
/var/www/tpona/data/yiiframework/yii-1.1.14.f0fee9/framework/zii/widgets/CListView.php(211): CBaseListView->init() 206 */ 207 public function init() 208 { 209 if($this->itemView===null) 210 throw new CException(Yii::t('zii','The property "itemView" cannot be empty.')); 211 parent::init(); 212 213 if(!isset($this->htmlOptions['class'])) 214 $this->htmlOptions['class']='list-view'; 215 216 if($this->baseScriptUrl===null) |
#10 |
+
–
/var/www/tpona/data/yiiframework/yii-1.1.14.f0fee9/framework/yiilite.php(3428): CListView->init() 3423 require($_viewFile_); 3424 } 3425 public function createWidget($className,$properties=array()) 3426 { 3427 $widget=Yii::app()->getWidgetFactory()->createWidget($this,$className,$properties); 3428 $widget->init(); 3429 return $widget; 3430 } 3431 public function widget($className,$properties=array(),$captureOutput=false) 3432 { 3433 if($captureOutput) |
#11 |
+
–
/var/www/tpona/data/www/tvercars.ru/www/protected/components/FrontController.php(70): CBaseController->createWidget("zii.widgets.CListView", array("dataProvider" => CActiveDataProvider, "ajaxUpdate" => false, "itemView" => "_view", "sorterHeader" => "Сортировать:", ...)) 65 66 public function widget($className,$properties=array(),$captureOutput=false) 67 { 68 $res = false; 69 70 $widget=$this->createWidget($className,$properties); 71 72 if (isset($widget->cache_id) && $widget->cache_id) 73 { 74 $res = Yii::app()->cache->get($widget->cache_id); 75 } |
#12 |
+
–
/var/www/tpona/data/www/tvercars.ru/www/protected/views/company/index.php(22): FrontController->widget("zii.widgets.CListView", array("dataProvider" => CActiveDataProvider, "ajaxUpdate" => false, "itemView" => "_view", "sorterHeader" => "Сортировать:", ...)) 17 'stars'=>'по звездам', 18 ), 19 'pager' => array( 20 'cssFile' => Yii::app()->getBaseUrl(true) . '/css/pager.css' 21 ), 22 )); 23 ?> 24 </div> |
#13 |
+
–
/var/www/tpona/data/yiiframework/yii-1.1.14.f0fee9/framework/yiilite.php(3419): require("/var/www/tpona/data/www/tvercars.ru/www/protected/views/company/...") 3414 $data=$_data_; 3415 if($_return_) 3416 { 3417 ob_start(); 3418 ob_implicit_flush(false); 3419 require($_viewFile_); 3420 return ob_get_clean(); 3421 } 3422 else 3423 require($_viewFile_); 3424 } |
#14 |
+
–
/var/www/tpona/data/yiiframework/yii-1.1.14.f0fee9/framework/yiilite.php(3398): CBaseController->renderInternal("/var/www/tpona/data/www/tvercars.ru/www/protected/views/company/...", array("dataProvider" => CActiveDataProvider, "menu" => array(CompanySection, CompanySection, CompanySection, CompanySection, ...), "section" => CompanySection), true) 3393 { 3394 $widgetCount=count($this->_widgetStack); 3395 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 3396 $content=$renderer->renderFile($this,$viewFile,$data,$return); 3397 else 3398 $content=$this->renderInternal($viewFile,$data,$return); 3399 if(count($this->_widgetStack)===$widgetCount) 3400 return $content; 3401 else 3402 { 3403 $widget=end($this->_widgetStack); |
#15 |
+
–
/var/www/tpona/data/yiiframework/yii-1.1.14.f0fee9/framework/yiilite.php(3822): CBaseController->renderFile("/var/www/tpona/data/www/tvercars.ru/www/protected/views/company/...", array("dataProvider" => CActiveDataProvider, "menu" => array(CompanySection, CompanySection, CompanySection, CompanySection, ...), "section" => CompanySection), true) 3817 } 3818 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 3819 { 3820 if(($viewFile=$this->getViewFile($view))!==false) 3821 { 3822 $output=$this->renderFile($viewFile,$data,true); 3823 if($processOutput) 3824 $output=$this->processOutput($output); 3825 if($return) 3826 return $output; 3827 else |
#16 |
+
–
/var/www/tpona/data/yiiframework/yii-1.1.14.f0fee9/framework/yiilite.php(3790): CController->renderPartial("index", array("dataProvider" => CActiveDataProvider, "menu" => array(CompanySection, CompanySection, CompanySection, CompanySection, ...), "section" => CompanySection), true) 3785 } 3786 public function render($view,$data=null,$return=false) 3787 { 3788 if($this->beforeRender($view)) 3789 { 3790 $output=$this->renderPartial($view,$data,true); 3791 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 3792 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 3793 $this->afterRender($view,$output); 3794 $output=$this->processOutput($output); 3795 if($return) |
#17 |
+
–
/var/www/tpona/data/www/tvercars.ru/www/protected/controllers/CompanyController.php(539): CController->render("index", array("dataProvider" => CActiveDataProvider, "menu" => array(CompanySection, CompanySection, CompanySection, CompanySection, ...), "section" => CompanySection)) 534 535 $this->render('index', array( 536 'dataProvider' => $dataProvider, 537 'menu' => $menu, 538 'section' => $section, 539 )); 540 } 541 542 public function actionSection($chpu) { 543 $this->sectionList($chpu, 'index'); 544 } |
#18 |
+
–
/var/www/tpona/data/www/tvercars.ru/www/protected/controllers/CompanyController.php(543): CompanyController->sectionList("gibdd", "index") 538 'section' => $section, 539 )); 540 } 541 542 public function actionSection($chpu) { 543 $this->sectionList($chpu, 'index'); 544 } 545 546 public function actionMapSection($chpu_section) { 547 $section = CompanySection::model()->find(array( 548 'condition' => 'chpu=:chpu', |
#19 |
unknown(0): CompanyController->actionSection("gibdd")
|
#20 |
+
–
/var/www/tpona/data/yiiframework/yii-1.1.14.f0fee9/framework/yiilite.php(4039): ReflectionMethod->invokeArgs(CompanyController, array("gibdd")) 4034 elseif($param->isDefaultValueAvailable()) 4035 $ps[]=$param->getDefaultValue(); 4036 else 4037 return false; 4038 } 4039 $method->invokeArgs($object,$ps); 4040 return true; 4041 } 4042 } 4043 class CInlineAction extends CAction 4044 { |
#21 |
+
–
/var/www/tpona/data/yiiframework/yii-1.1.14.f0fee9/framework/yiilite.php(4056): CAction->runWithParamsInternal(CompanyController, ReflectionMethod, array("chpu" => "gibdd", "sort" => "rating.desc")) 4051 { 4052 $methodName='action'.$this->getId(); 4053 $controller=$this->getController(); 4054 $method=new ReflectionMethod($controller, $methodName); 4055 if($method->getNumberOfParameters()>0) 4056 return $this->runWithParamsInternal($controller, $method, $params); 4057 else 4058 return $controller->$methodName(); 4059 } 4060 } 4061 class CWebUser extends CApplicationComponent implements IWebUser |
#22 |
+
–
/var/www/tpona/data/yiiframework/yii-1.1.14.f0fee9/framework/yiilite.php(3570): CInlineAction->runWithParams(array("chpu" => "gibdd", "sort" => "rating.desc")) 3565 { 3566 $priorAction=$this->_action; 3567 $this->_action=$action; 3568 if($this->beforeAction($action)) 3569 { 3570 if($action->runWithParams($this->getActionParams())===false) 3571 $this->invalidActionParams($action); 3572 else 3573 $this->afterAction($action); 3574 } 3575 $this->_action=$priorAction; |
#23 |
+
–
/var/www/tpona/data/yiiframework/yii-1.1.14.f0fee9/framework/yiilite.php(6743): CController->runAction(CInlineAction) 6738 { 6739 $filter=$this->itemAt($this->filterIndex++); 6740 $filter->filter($this); 6741 } 6742 else 6743 $this->controller->runAction($this->action); 6744 } 6745 } 6746 class CFilter extends CComponent implements IFilter 6747 { 6748 public function filter($filterChain) |
#24 |
+
–
/var/www/tpona/data/yiiframework/yii-1.1.14.f0fee9/framework/yiilite.php(6752): CFilterChain->run() 6747 { 6748 public function filter($filterChain) 6749 { 6750 if($this->preFilter($filterChain)) 6751 { 6752 $filterChain->run(); 6753 $this->postFilter($filterChain); 6754 } 6755 } 6756 public function init() 6757 { |
#25 |
+
–
/var/www/tpona/data/yiiframework/yii-1.1.14.f0fee9/framework/yiilite.php(3948): CFilter->filter(CFilterChain) 3943 } 3944 public function filterAccessControl($filterChain) 3945 { 3946 $filter=new CAccessControlFilter; 3947 $filter->setRules($this->accessRules()); 3948 $filter->filter($filterChain); 3949 } 3950 public function getPageState($name,$defaultValue=null) 3951 { 3952 if($this->_pageStates===null) 3953 $this->_pageStates=$this->loadPageStates(); |
#26 |
+
–
/var/www/tpona/data/yiiframework/yii-1.1.14.f0fee9/framework/yiilite.php(6785): CController->filterAccessControl(CFilterChain) 6780 array('{filter}'=>$filterName, '{class}'=>get_class($controller)))); 6781 } 6782 public function filter($filterChain) 6783 { 6784 $method='filter'.$this->name; 6785 $filterChain->controller->$method($filterChain); 6786 } 6787 } 6788 class CAccessControlFilter extends CFilter 6789 { 6790 public $message; |
#27 |
+
–
/var/www/tpona/data/yiiframework/yii-1.1.14.f0fee9/framework/yiilite.php(6740): CInlineFilter->filter(CFilterChain) 6735 public function run() 6736 { 6737 if($this->offsetExists($this->filterIndex)) 6738 { 6739 $filter=$this->itemAt($this->filterIndex++); 6740 $filter->filter($this); 6741 } 6742 else 6743 $this->controller->runAction($this->action); 6744 } 6745 } |
#28 |
+
–
/var/www/tpona/data/yiiframework/yii-1.1.14.f0fee9/framework/yiilite.php(3560): CFilterChain->run() 3555 $this->runAction($action); 3556 else 3557 { 3558 $priorAction=$this->_action; 3559 $this->_action=$action; 3560 CFilterChain::create($this,$action,$filters)->run(); 3561 $this->_action=$priorAction; 3562 } 3563 } 3564 public function runAction($action) 3565 { |
#29 |
+
–
/var/www/tpona/data/yiiframework/yii-1.1.14.f0fee9/framework/yiilite.php(3545): CController->runActionWithFilters(CInlineAction, array("accessControl")) 3540 { 3541 if(($parent=$this->getModule())===null) 3542 $parent=Yii::app(); 3543 if($parent->beforeControllerAction($this,$action)) 3544 { 3545 $this->runActionWithFilters($action,$this->filters()); 3546 $parent->afterControllerAction($this,$action); 3547 } 3548 } 3549 else 3550 $this->missingAction($actionID); |
#30 |
+
–
/var/www/tpona/data/yiiframework/yii-1.1.14.f0fee9/framework/yiilite.php(1746): CController->run("section") 1741 { 1742 list($controller,$actionID)=$ca; 1743 $oldController=$this->_controller; 1744 $this->_controller=$controller; 1745 $controller->init(); 1746 $controller->run($actionID); 1747 $this->_controller=$oldController; 1748 } 1749 else 1750 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 1751 array('{route}'=>$route===''?$this->defaultController:$route))); |
#31 |
+
–
/var/www/tpona/data/yiiframework/yii-1.1.14.f0fee9/framework/yiilite.php(1666): CWebApplication->runController("company/section") 1661 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 1662 $_GET[$name]=$value; 1663 } 1664 else 1665 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 1666 $this->runController($route); 1667 } 1668 protected function registerCoreComponents() 1669 { 1670 parent::registerCoreComponents(); 1671 $components=array( |
#32 |
+
–
/var/www/tpona/data/yiiframework/yii-1.1.14.f0fee9/framework/yiilite.php(1191): CWebApplication->processRequest() 1186 public function run() 1187 { 1188 if($this->hasEventHandler('onBeginRequest')) 1189 $this->onBeginRequest(new CEvent($this)); 1190 register_shutdown_function(array($this,'end'),0,false); 1191 $this->processRequest(); 1192 if($this->hasEventHandler('onEndRequest')) 1193 $this->onEndRequest(new CEvent($this)); 1194 } 1195 public function end($status=0,$exit=true) 1196 { |
#33 |
+
–
/var/www/tpona/data/www/tvercars.ru/www/index.php(17): CApplication->run() 12 //defined('YII_DEBUG') or define('YII_DEBUG', false); 13 // specify how many levels of call stack should be shown in each log message 14 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 15 16 require_once($yii); 17 Yii::createWebApplication($config)->run(); |