/var/www/bazametrov/data/www/bazametrov.ru/framework/yiilite.php(9674)
9662 return $result; 9663 } 9664 catch(Exception $e) 9665 { 9666 if($this->_connection->enableProfiling) 9667 Yii::endProfile('system.db.CDbCommand.query('.$this->getText().$par.')','system.db.CDbCommand.query'); 9668 $errorInfo=$e instanceof PDOException ? $e->errorInfo : null; 9669 $message=$e->getMessage(); 9670 Yii::log(Yii::t('yii','CDbCommand::{method}() failed: {error}. The SQL statement executed was: {sql}.', 9671 array('{method}'=>$method, '{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand'); 9672 if(YII_DEBUG) 9673 $message.='. The SQL statement executed was: '.$this->getText().$par; 9674 throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}', 9675 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo); 9676 } 9677 } 9678 public function buildQuery($query) 9679 { 9680 $sql=!empty($query['distinct']) ? 'SELECT DISTINCT' : 'SELECT'; 9681 $sql.=' '.(!empty($query['select']) ? $query['select'] : '*'); 9682 if(!empty($query['from'])) 9683 $sql.="\nFROM ".$query['from']; 9684 if(!empty($query['join'])) 9685 $sql.="\n".(is_array($query['join']) ? implode("\n",$query['join']) : $query['join']); 9686 if(!empty($query['where']))
#0 |
+
–
/var/www/bazametrov/data/www/bazametrov.ru/framework/yiilite.php(9605): CDbCommand->queryInternal("fetchColumn", 0, array()) 9600 { 9601 return $this->queryInternal('fetch',$fetchAssociative ? $this->_fetchMode : PDO::FETCH_NUM, $params); 9602 } 9603 public function queryScalar($params=array()) 9604 { 9605 $result=$this->queryInternal('fetchColumn',0,$params); 9606 if(is_resource($result) && get_resource_type($result)==='stream') 9607 return stream_get_contents($result); 9608 else 9609 return $result; 9610 } |
#1 |
+
–
/var/www/bazametrov/data/www/bazametrov.ru/framework/yiilite.php(8253): CDbCommand->queryScalar() 8248 $this->beforeCount(); 8249 $builder=$this->getCommandBuilder(); 8250 $criteria=$builder->createCriteria($condition,$params); 8251 $this->applyScopes($criteria); 8252 if(empty($criteria->with)) 8253 return $builder->createCountCommand($this->getTableSchema(),$criteria)->queryScalar(); 8254 else 8255 { 8256 $finder=$this->getActiveFinder($criteria->with); 8257 return $finder->count($criteria); 8258 } |
#2 |
+
–
/var/www/bazametrov/data/www/bazametrov.ru/protected/modules/subcategories/controllers/MainController.php(247): CActiveRecord->count(CDbCriteria) 242 INNER JOIN ore_metro_stations as ms ON ms.id=ore_apartment_metro_stations.metro_id"; 243 } 244 245 $cat=$this->cat[$obj_type_id]."/".$suburl; 246 /*проверка на пейджи*/ 247 $res=Apartment::model()->count($criteria); 248 $respage=(int)(($res+ConfigurationModel::getcountListitngblock()-1)/ConfigurationModel::getcountListitngblock()); 249 250 /*убираем next если нет стр*/ 251 if(isset($_GET['page']) && $_GET['page']>=$respage){ 252 Yii::app()->params['rel_next']=''; |
#3 |
unknown(0): MainController->actionView("3768", "ifns-32", 1)
|
#4 |
+
–
/var/www/bazametrov/data/www/bazametrov.ru/framework/yiilite.php(4189): ReflectionMethod->invokeArgs(MainController, array(0, "ifns-32", 1)) 4184 elseif($param->isDefaultValueAvailable()) 4185 $ps[]=$param->getDefaultValue(); 4186 else 4187 return false; 4188 } 4189 $method->invokeArgs($object,$ps); 4190 return true; 4191 } 4192 } 4193 class CInlineAction extends CAction 4194 { |
#5 |
+
–
/var/www/bazametrov/data/www/bazametrov.ru/framework/yiilite.php(4206): CAction->runWithParamsInternal(MainController, ReflectionMethod, array("lang" => "ru", "controller" => "office", "url" => "ifns-32")) 4201 { 4202 $methodName='action'.$this->getId(); 4203 $controller=$this->getController(); 4204 $method=new ReflectionMethod($controller, $methodName); 4205 if($method->getNumberOfParameters()>0) 4206 return $this->runWithParamsInternal($controller, $method, $params); 4207 $controller->$methodName(); 4208 return true; 4209 } 4210 } 4211 class CWebUser extends CApplicationComponent implements IWebUser |
#6 |
+
–
/var/www/bazametrov/data/www/bazametrov.ru/framework/yiilite.php(3720): CInlineAction->runWithParams(array("lang" => "ru", "controller" => "office", "url" => "ifns-32")) 3715 { 3716 $priorAction=$this->_action; 3717 $this->_action=$action; 3718 if($this->beforeAction($action)) 3719 { 3720 if($action->runWithParams($this->getActionParams())===false) 3721 $this->invalidActionParams($action); 3722 else 3723 $this->afterAction($action); 3724 } 3725 $this->_action=$priorAction; |
#7 |
+
–
/var/www/bazametrov/data/www/bazametrov.ru/framework/yiilite.php(7049): CController->runAction(CInlineAction) 7044 { 7045 $filter=$this->itemAt($this->filterIndex++); 7046 $filter->filter($this); 7047 } 7048 else 7049 $this->controller->runAction($this->action); 7050 } 7051 } 7052 class CFilter extends CComponent implements IFilter 7053 { 7054 public function filter($filterChain) |
#8 |
+
–
/var/www/bazametrov/data/www/bazametrov.ru/framework/yiilite.php(7058): CFilterChain->run() 7053 { 7054 public function filter($filterChain) 7055 { 7056 if($this->preFilter($filterChain)) 7057 { 7058 $filterChain->run(); 7059 $this->postFilter($filterChain); 7060 } 7061 } 7062 public function init() 7063 { |
#9 |
+
–
/var/www/bazametrov/data/www/bazametrov.ru/framework/yiilite.php(7046): CFilter->filter(CFilterChain) 7041 public function run() 7042 { 7043 if($this->offsetExists($this->filterIndex)) 7044 { 7045 $filter=$this->itemAt($this->filterIndex++); 7046 $filter->filter($this); 7047 } 7048 else 7049 $this->controller->runAction($this->action); 7050 } 7051 } |
#10 |
+
–
/var/www/bazametrov/data/www/bazametrov.ru/framework/yiilite.php(7058): CFilterChain->run() 7053 { 7054 public function filter($filterChain) 7055 { 7056 if($this->preFilter($filterChain)) 7057 { 7058 $filterChain->run(); 7059 $this->postFilter($filterChain); 7060 } 7061 } 7062 public function init() 7063 { |
#11 |
+
–
/var/www/bazametrov/data/www/bazametrov.ru/framework/yiilite.php(4098): CFilter->filter(CFilterChain) 4093 } 4094 public function filterAccessControl($filterChain) 4095 { 4096 $filter=new CAccessControlFilter; 4097 $filter->setRules($this->accessRules()); 4098 $filter->filter($filterChain); 4099 } 4100 public function getPageState($name,$defaultValue=null) 4101 { 4102 if($this->_pageStates===null) 4103 $this->_pageStates=$this->loadPageStates(); |
#12 |
+
–
/var/www/bazametrov/data/www/bazametrov.ru/framework/yiilite.php(7091): CController->filterAccessControl(CFilterChain) 7086 array('{filter}'=>$filterName, '{class}'=>get_class($controller)))); 7087 } 7088 public function filter($filterChain) 7089 { 7090 $method='filter'.$this->name; 7091 $filterChain->controller->$method($filterChain); 7092 } 7093 } 7094 class CAccessControlFilter extends CFilter 7095 { 7096 public $message; |
#13 |
+
–
/var/www/bazametrov/data/www/bazametrov.ru/framework/yiilite.php(7046): CInlineFilter->filter(CFilterChain) 7041 public function run() 7042 { 7043 if($this->offsetExists($this->filterIndex)) 7044 { 7045 $filter=$this->itemAt($this->filterIndex++); 7046 $filter->filter($this); 7047 } 7048 else 7049 $this->controller->runAction($this->action); 7050 } 7051 } |
#14 |
+
–
/var/www/bazametrov/data/www/bazametrov.ru/framework/yiilite.php(3710): CFilterChain->run() 3705 $this->runAction($action); 3706 else 3707 { 3708 $priorAction=$this->_action; 3709 $this->_action=$action; 3710 CFilterChain::create($this,$action,$filters)->run(); 3711 $this->_action=$priorAction; 3712 } 3713 } 3714 public function runAction($action) 3715 { |
#15 |
+
–
/var/www/bazametrov/data/www/bazametrov.ru/framework/yiilite.php(3695): CController->runActionWithFilters(CInlineAction, array("accessControl", array("ESetReturnUrlFilter + index, view, create, update, bookingform, ..."))) 3690 { 3691 if(($parent=$this->getModule())===null) 3692 $parent=Yii::app(); 3693 if($parent->beforeControllerAction($this,$action)) 3694 { 3695 $this->runActionWithFilters($action,$this->filters()); 3696 $parent->afterControllerAction($this,$action); 3697 } 3698 } 3699 else 3700 $this->missingAction($actionID); |
#16 |
+
–
/var/www/bazametrov/data/www/bazametrov.ru/framework/yiilite.php(1799): CController->run("view") 1794 { 1795 list($controller,$actionID)=$ca; 1796 $oldController=$this->_controller; 1797 $this->_controller=$controller; 1798 $controller->init(); 1799 $controller->run($actionID); 1800 $this->_controller=$oldController; 1801 } 1802 else 1803 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 1804 array('{route}'=>$route===''?$this->defaultController:$route))); |
#17 |
+
–
/var/www/bazametrov/data/www/bazametrov.ru/framework/yiilite.php(1719): CWebApplication->runController("subcategories/main/view") 1714 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 1715 $_GET[$name]=$value; 1716 } 1717 else 1718 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 1719 $this->runController($route); 1720 } 1721 protected function registerCoreComponents() 1722 { 1723 parent::registerCoreComponents(); 1724 $components=array( |
#18 |
+
–
/var/www/bazametrov/data/www/bazametrov.ru/framework/yiilite.php(1236): CWebApplication->processRequest() 1231 public function run() 1232 { 1233 if($this->hasEventHandler('onBeginRequest')) 1234 $this->onBeginRequest(new CEvent($this)); 1235 register_shutdown_function(array($this,'end'),0,false); 1236 $this->processRequest(); 1237 if($this->hasEventHandler('onEndRequest')) 1238 $this->onEndRequest(new CEvent($this)); 1239 } 1240 public function end($status=0,$exit=true) 1241 { |
#19 |
+
–
/var/www/bazametrov/data/www/bazametrov.ru/index.php(166): CApplication->run() 161 return $md->isMobile(); 162 } 163 164 require_once($yii); 165 166 Yii::createWebApplication($config)->run(); |