/mnt/volume-fra1-01/www/photonews.ru/framework/yiilite.php(7611)
7599 class CActiveRecordMetaData 7600 { 7601 public $tableSchema; 7602 public $columns; 7603 public $relations=array(); 7604 public $attributeDefaults=array(); 7605 private $_model; 7606 public function __construct($model) 7607 { 7608 $this->_model=$model; 7609 $tableName=$model->tableName(); 7610 if(($table=$model->getDbConnection()->getSchema()->getTable($tableName))===null) 7611 throw new CDbException(Yii::t('yii','The table "{table}" for active record class "{class}" cannot be found in the database.', 7612 array('{class}'=>get_class($model),'{table}'=>$tableName))); 7613 if($table->primaryKey===null) 7614 { 7615 $table->primaryKey=$model->primaryKey(); 7616 if(is_string($table->primaryKey) && isset($table->columns[$table->primaryKey])) 7617 $table->columns[$table->primaryKey]->isPrimaryKey=true; 7618 else if(is_array($table->primaryKey)) 7619 { 7620 foreach($table->primaryKey as $name) 7621 { 7622 if(isset($table->columns[$name])) 7623 $table->columns[$name]->isPrimaryKey=true;
#0 |
+
–
/mnt/volume-fra1-01/www/photonews.ru/framework/yiilite.php(6741): CActiveRecordMetaData->__construct(Rsslog) 6736 if(isset(self::$_models[$className])) 6737 return self::$_models[$className]; 6738 else 6739 { 6740 $model=self::$_models[$className]=new $className(null); 6741 $model->_md=new CActiveRecordMetaData($model); 6742 $model->attachBehaviors($model->behaviors()); 6743 return $model; 6744 } 6745 } 6746 public function getMetaData() |
#1 |
+
–
/mnt/volume-fra1-01/www/photonews.ru/framework/yiilite.php(6751): CActiveRecord::model("Rsslog") 6746 public function getMetaData() 6747 { 6748 if($this->_md!==null) 6749 return $this->_md; 6750 else 6751 return $this->_md=self::model(get_class($this))->_md; 6752 } 6753 public function refreshMetaData() 6754 { 6755 $finder=self::model(get_class($this)); 6756 $finder->_md=new CActiveRecordMetaData($finder); |
#2 |
+
–
/mnt/volume-fra1-01/www/photonews.ru/framework/yiilite.php(6584): CActiveRecord->getMetaData() 6579 { 6580 if($scenario===null) // internally used by populateRecord() and model() 6581 return; 6582 $this->setScenario($scenario); 6583 $this->setIsNewRecord(true); 6584 $this->_attributes=$this->getMetaData()->attributeDefaults; 6585 $this->init(); 6586 $this->attachBehaviors($this->behaviors()); 6587 $this->afterConstruct(); 6588 } 6589 public function init() |
#3 |
+
–
/mnt/volume-fra1-01/www/photonews.ru/protected/components/views/rss/index.php(6): CActiveRecord->__construct() 01 <? 02 header('Content-Type: text/xml; charset=utf-8'); 03 ?> 04 <?='<?xml version="1.0" encoding="UTF-8"?>'; ?> 05 <? 06 $r= new Rsslog; 07 $r->string= $_SERVER['HTTP_USER_AGENT']; 08 $r->save(); 09 ?> 10 11 <rss version="2.0"> |
#4 |
+
–
/mnt/volume-fra1-01/www/photonews.ru/framework/yiilite.php(3076): require("/mnt/volume-fra1-01/www/photonews.ru/protected/components/views/...") 3071 ob_implicit_flush(false); 3072 require($_viewFile_); 3073 return ob_get_clean(); 3074 } 3075 else 3076 require($_viewFile_); 3077 } 3078 public function createWidget($className,$properties=array()) 3079 { 3080 $widget=Yii::app()->getWidgetFactory()->createWidget($this,$className,$properties); 3081 $widget->init(); |
#5 |
+
–
/mnt/volume-fra1-01/www/photonews.ru/framework/yiilite.php(3051): CBaseController->renderInternal("/mnt/volume-fra1-01/www/photonews.ru/protected/components/views/...", array("arr" => array(News, Article, Article, Article, ...)), false) 3046 { 3047 $widgetCount=count($this->_widgetStack); 3048 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 3049 $content=$renderer->renderFile($this,$viewFile,$data,$return); 3050 else 3051 $content=$this->renderInternal($viewFile,$data,$return); 3052 if(count($this->_widgetStack)===$widgetCount) 3053 return $content; 3054 else 3055 { 3056 $widget=end($this->_widgetStack); |
#6 |
+
–
/mnt/volume-fra1-01/www/photonews.ru/framework/yiilite.php(5494): CBaseController->renderFile("/mnt/volume-fra1-01/www/photonews.ru/protected/components/views/...", array("arr" => array(News, Article, Article, Article, ...)), false) 5489 return false; 5490 } 5491 public function render($view,$data=null,$return=false) 5492 { 5493 if(($viewFile=$this->getViewFile($view))!==false) 5494 return $this->renderFile($viewFile,$data,$return); 5495 else 5496 throw new CException(Yii::t('yii','{widget} cannot find the view "{view}".', 5497 array('{widget}'=>get_class($this), '{view}'=>$view))); 5498 } 5499 } |
#7 |
+
–
/mnt/volume-fra1-01/www/photonews.ru/protected/components/Rss.php(98): CWidget->render("rss/index", array("arr" => array(News, Article, Article, Article, ...))) 093 $this->date=array_merge($this->date,$date3); 094 095 096 uksort($this->date,array($this, "cmp")); 097 $this->date=array_reverse($this->date); 098 $this->render('rss/index', array('arr' => $this->date)); 099 100 } 101 } 102 } 103 |
#8 |
+
–
/mnt/volume-fra1-01/www/photonews.ru/framework/yiilite.php(3081): Rss->init() 3076 require($_viewFile_); 3077 } 3078 public function createWidget($className,$properties=array()) 3079 { 3080 $widget=Yii::app()->getWidgetFactory()->createWidget($this,$className,$properties); 3081 $widget->init(); 3082 return $widget; 3083 } 3084 public function widget($className,$properties=array(),$captureOutput=false) 3085 { 3086 if($captureOutput) |
#9 |
+
–
/mnt/volume-fra1-01/www/photonews.ru/framework/yiilite.php(3096): CBaseController->createWidget("Rss", array("config" => array("big" => "News"))) 3091 $widget->run(); 3092 return ob_get_clean(); 3093 } 3094 else 3095 { 3096 $widget=$this->createWidget($className,$properties); 3097 $widget->run(); 3098 return $widget; 3099 } 3100 } 3101 public function beginWidget($className,$properties=array()) |
#10 |
+
–
/mnt/volume-fra1-01/www/photonews.ru/protected/controllers/frontend/NewsController.php(160): CBaseController->widget("Rss", array("config" => array("big" => "News"))) 155 $this->widget('Rss', 156 array( 157 'config' => array( 158 'big' => "News", 159 )) 160 ); 161 } 162 public function actionBigRss2() { 163 $this->widget('Rss', 164 array( 165 'config' => array( |
#11 |
+
–
/mnt/volume-fra1-01/www/photonews.ru/framework/yiilite.php(3720): NewsController->actionBigRss() 3715 $controller=$this->getController(); 3716 $method=new ReflectionMethod($controller, $methodName); 3717 if($method->getNumberOfParameters()>0) 3718 return $this->runWithParamsInternal($controller, $method, $params); 3719 else 3720 return $controller->$methodName(); 3721 } 3722 } 3723 class CWebUser extends CApplicationComponent implements IWebUser 3724 { 3725 const FLASH_KEY_PREFIX='Yii.CWebUser.flash.'; |
#12 |
+
–
/mnt/volume-fra1-01/www/photonews.ru/framework/yiilite.php(3223): CInlineAction->runWithParams(array()) 3218 { 3219 $priorAction=$this->_action; 3220 $this->_action=$action; 3221 if($this->beforeAction($action)) 3222 { 3223 if($action->runWithParams($this->getActionParams())===false) 3224 $this->invalidActionParams($action); 3225 else 3226 $this->afterAction($action); 3227 } 3228 $this->_action=$priorAction; |
#13 |
+
–
/mnt/volume-fra1-01/www/photonews.ru/framework/yiilite.php(3208): CController->runAction(CInlineAction) 3203 $this->missingAction($actionID); 3204 } 3205 public function runActionWithFilters($action,$filters) 3206 { 3207 if(empty($filters)) 3208 $this->runAction($action); 3209 else 3210 { 3211 $priorAction=$this->_action; 3212 $this->_action=$action; 3213 CFilterChain::create($this,$action,$filters)->run(); |
#14 |
+
–
/mnt/volume-fra1-01/www/photonews.ru/framework/yiilite.php(3198): CController->runActionWithFilters(CInlineAction, array()) 3193 { 3194 if(($parent=$this->getModule())===null) 3195 $parent=Yii::app(); 3196 if($parent->beforeControllerAction($this,$action)) 3197 { 3198 $this->runActionWithFilters($action,$this->filters()); 3199 $parent->afterControllerAction($this,$action); 3200 } 3201 } 3202 else 3203 $this->missingAction($actionID); |
#15 |
+
–
/mnt/volume-fra1-01/www/photonews.ru/framework/yiilite.php(1686): CController->run("bigRss") 1681 { 1682 list($controller,$actionID)=$ca; 1683 $oldController=$this->_controller; 1684 $this->_controller=$controller; 1685 $controller->init(); 1686 $controller->run($actionID); 1687 $this->_controller=$oldController; 1688 } 1689 else 1690 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 1691 array('{route}'=>$route===''?$this->defaultController:$route))); |
#16 |
+
–
/mnt/volume-fra1-01/www/photonews.ru/framework/yiilite.php(1606): CWebApplication->runController("news/bigRss") 1601 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 1602 $_GET[$name]=$value; 1603 } 1604 else 1605 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 1606 $this->runController($route); 1607 } 1608 protected function registerCoreComponents() 1609 { 1610 parent::registerCoreComponents(); 1611 $components=array( |
#17 |
+
–
/mnt/volume-fra1-01/www/photonews.ru/framework/yiilite.php(1135): CWebApplication->processRequest() 1130 } 1131 public function run() 1132 { 1133 if($this->hasEventHandler('onBeginRequest')) 1134 $this->onBeginRequest(new CEvent($this)); 1135 $this->processRequest(); 1136 if($this->hasEventHandler('onEndRequest')) 1137 $this->onEndRequest(new CEvent($this)); 1138 } 1139 public function end($status=0, $exit=true) 1140 { |
#18 |
+
–
/mnt/volume-fra1-01/www/photonews.ru/protected/behaviors/WebApplicationEndBehavior.php(23): CApplication->run() 18 $this->_endName = $name; 19 20 // обрабатываем событие создания модуля 21 $this->onModuleCreate = array($this, 'changeModulePaths'); 22 $this->onModuleCreate(new CEvent ($this->owner)); 23 $this->owner->run(); 24 25 } 26 27 // обработчик события onModuleCreate 28 public function onModuleCreate($event) |
#19 |
unknown(0): WebApplicationEndBehavior->runEnd("frontend")
|
#20 |
+
–
/mnt/volume-fra1-01/www/photonews.ru/framework/yiilite.php(676): call_user_func_array(array(WebApplicationEndBehavior, "runEnd"), array("frontend")) 671 if($this->_m!==null) 672 { 673 foreach($this->_m as $object) 674 { 675 if($object->getEnabled() && method_exists($object,$name)) 676 return call_user_func_array(array($object,$name),$parameters); 677 } 678 } 679 if(class_exists('Closure', false) && $this->canGetProperty($name) && $this->$name instanceof Closure) 680 return call_user_func_array($this->$name, $parameters); 681 throw new CException(Yii::t('yii','{class} and its behaviors do not have a method or closure named "{name}".', |
#21 |
+
–
/mnt/volume-fra1-01/www/photonews.ru/index.php(20): CComponent->__call("runEnd", array("frontend")) 15 defined('YII_DEBUG') or define('YII_DEBUG',true); 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)->runEnd('frontend'); 21 |
#22 |
+
–
/mnt/volume-fra1-01/www/photonews.ru/index.php(20): CWebApplication->runEnd("frontend") 15 defined('YII_DEBUG') or define('YII_DEBUG',true); 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)->runEnd('frontend'); 21 |