/home/itip/web/bestactor.ru/public_html/framework/yiilite.php(9693)
9681 return $result; 9682 } 9683 catch(Exception $e) 9684 { 9685 if($this->_connection->enableProfiling) 9686 Yii::endProfile('system.db.CDbCommand.query('.$this->getText().$par.')','system.db.CDbCommand.query'); 9687 $errorInfo=$e instanceof PDOException ? $e->errorInfo : null; 9688 $message=$e->getMessage(); 9689 Yii::log(Yii::t('yii','CDbCommand::{method}() failed: {error}. The SQL statement executed was: {sql}.', 9690 array('{method}'=>$method, '{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand'); 9691 if(YII_DEBUG) 9692 $message.='. The SQL statement executed was: '.$this->getText().$par; 9693 throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}', 9694 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo); 9695 } 9696 } 9697 public function buildQuery($query) 9698 { 9699 $sql=!empty($query['distinct']) ? 'SELECT DISTINCT' : 'SELECT'; 9700 $sql.=' '.(!empty($query['select']) ? $query['select'] : '*'); 9701 if(!empty($query['from'])) 9702 $sql.="\nFROM ".$query['from']; 9703 if(!empty($query['join'])) 9704 $sql.="\n".(is_array($query['join']) ? implode("\n",$query['join']) : $query['join']); 9705 if(!empty($query['where']))
#0 |
+
–
/home/itip/web/bestactor.ru/public_html/framework/yiilite.php(9612): CDbCommand->queryInternal() 9607 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo); 9608 } 9609 } 9610 public function query($params=array()) 9611 { 9612 return $this->queryInternal('',0,$params); 9613 } 9614 public function queryAll($fetchAssociative=true,$params=array()) 9615 { 9616 return $this->queryInternal('fetchAll',$fetchAssociative ? $this->_fetchMode : PDO::FETCH_NUM, $params); 9617 } |
#1 |
+
–
/home/itip/web/bestactor.ru/public_html/app/controllers/frontend/ActorController.php(541): CDbCommand->query() 536 537 public function actionChart() { 538 $this->seoTitle = strtr('{fullname} график популярности. Рейтинг {gender} {fullname}', $this->seoParams); 539 $this->seoDescription = strtr('График популярности {gender} {fullname}', $this->seoParams); 540 541 $query = Yii::app()->db->createCommand('SELECT * FROM {{ActorLogs}} WHERE actor_id = '.$this->model->id)->query(); 542 $chartsData = array(); 543 $ratingMonth = array(); 544 while($row = $query->read()) { 545 $unixtime = $row['created']; 546 $row['created'] = date('Y-m-d', $unixtime); |
#2 |
+
–
/home/itip/web/bestactor.ru/public_html/framework/yiilite.php(4226): ActorController->actionChart() 4221 $methodName='action'.$this->getId(); 4222 $controller=$this->getController(); 4223 $method=new ReflectionMethod($controller, $methodName); 4224 if($method->getNumberOfParameters()>0) 4225 return $this->runWithParamsInternal($controller, $method, $params); 4226 $controller->$methodName(); 4227 return true; 4228 } 4229 } 4230 class CWebUser extends CApplicationComponent implements IWebUser 4231 { |
#3 |
+
–
/home/itip/web/bestactor.ru/public_html/framework/yiilite.php(3739): CInlineAction->runWithParams() 3734 { 3735 $priorAction=$this->_action; 3736 $this->_action=$action; 3737 if($this->beforeAction($action)) 3738 { 3739 if($action->runWithParams($this->getActionParams())===false) 3740 $this->invalidActionParams($action); 3741 else 3742 $this->afterAction($action); 3743 } 3744 $this->_action=$priorAction; |
#4 |
+
–
/home/itip/web/bestactor.ru/public_html/framework/yiilite.php(7068): CController->runAction() 7063 { 7064 $filter=$this->itemAt($this->filterIndex++); 7065 $filter->filter($this); 7066 } 7067 else 7068 $this->controller->runAction($this->action); 7069 } 7070 } 7071 class CFilter extends CComponent implements IFilter 7072 { 7073 public function filter($filterChain) |
#5 |
+
–
/home/itip/web/bestactor.ru/public_html/framework/yiilite.php(7077): CFilterChain->run() 7072 { 7073 public function filter($filterChain) 7074 { 7075 if($this->preFilter($filterChain)) 7076 { 7077 $filterChain->run(); 7078 $this->postFilter($filterChain); 7079 } 7080 } 7081 public function init() 7082 { |
#6 |
+
–
/home/itip/web/bestactor.ru/public_html/app/modules/rights/components/RController.php(36): CFilter->filter() 31 */ 32 public function filterRights($filterChain) 33 { 34 $filter = new RightsFilter; 35 $filter->allowedActions = $this->allowedActions(); 36 $filter->filter($filterChain); 37 } 38 39 /** 40 * @return string the actions that are always allowed separated by commas. 41 */ |
#7 |
+
–
/home/itip/web/bestactor.ru/public_html/framework/yiilite.php(7110): RController->filterRights() 7105 array('{filter}'=>$filterName, '{class}'=>get_class($controller)))); 7106 } 7107 public function filter($filterChain) 7108 { 7109 $method='filter'.$this->name; 7110 $filterChain->controller->$method($filterChain); 7111 } 7112 } 7113 class CAccessControlFilter extends CFilter 7114 { 7115 public $message; |
#8 |
+
–
/home/itip/web/bestactor.ru/public_html/framework/yiilite.php(7065): CInlineFilter->filter() 7060 public function run() 7061 { 7062 if($this->offsetExists($this->filterIndex)) 7063 { 7064 $filter=$this->itemAt($this->filterIndex++); 7065 $filter->filter($this); 7066 } 7067 else 7068 $this->controller->runAction($this->action); 7069 } 7070 } |
#9 |
+
–
/home/itip/web/bestactor.ru/public_html/framework/yiilite.php(3729): CFilterChain->run() 3724 $this->runAction($action); 3725 else 3726 { 3727 $priorAction=$this->_action; 3728 $this->_action=$action; 3729 CFilterChain::create($this,$action,$filters)->run(); 3730 $this->_action=$priorAction; 3731 } 3732 } 3733 public function runAction($action) 3734 { |
#10 |
+
–
/home/itip/web/bestactor.ru/public_html/framework/yiilite.php(3714): CController->runActionWithFilters() 3709 { 3710 if(($parent=$this->getModule())===null) 3711 $parent=Yii::app(); 3712 if($parent->beforeControllerAction($this,$action)) 3713 { 3714 $this->runActionWithFilters($action,$this->filters()); 3715 $parent->afterControllerAction($this,$action); 3716 } 3717 } 3718 else 3719 $this->missingAction($actionID); |
#11 |
+
–
/home/itip/web/bestactor.ru/public_html/framework/yiilite.php(1799): CController->run() 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))); |
#12 |
+
–
/home/itip/web/bestactor.ru/public_html/framework/yiilite.php(1719): CWebApplication->runController() 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( |
#13 |
+
–
/home/itip/web/bestactor.ru/public_html/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 { |
#14 |
+
–
/home/itip/web/bestactor.ru/public_html/app/extensions/behaviors/WebApplicationEndBehavior.php(24): CApplication->run() 19 20 21 $this->onModuleCreate = array($this, 'changeModulePaths'); 22 $this->onModuleCreate(new CEvent ($this->owner)); 23 24 $this->owner->run(); 25 } 26 27 28 public function onModuleCreate($event) 29 { |
#15 |
+
–
/home/itip/web/bestactor.ru/public_html/framework/yiilite.php(733): WebApplicationEndBehavior->runEnd() 728 if($this->_m!==null) 729 { 730 foreach($this->_m as $object) 731 { 732 if($object->getEnabled() && method_exists($object,$name)) 733 return call_user_func_array(array($object,$name),$parameters); 734 } 735 } 736 if(class_exists('Closure', false) && ($this->canGetProperty($name) || property_exists($this, $name)) && $this->$name instanceof Closure) 737 return call_user_func_array($this->$name, $parameters); 738 throw new CException(Yii::t('yii','{class} and its behaviors do not have a method or closure named "{name}".', |
#16 |
+
–
/home/itip/web/bestactor.ru/public_html/index.php(23): CComponent->__call() 18 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',0); 19 20 define('AUTHOR', 'bestactor'); 21 22 require_once($yii); 23 Yii::createWebApplication($config)->runEnd('frontend'); |