/home/tvertop/swsys-web.ru/docs/framework/db/ar/CActiveFinder.php(211)
199 // named scope 200 $scopes=array(); 201 if(($pos=strpos($with,':'))!==false) 202 { 203 $scopes=explode(':',substr($with,$pos+1)); 204 $with=substr($with,0,$pos); 205 } 206 207 if(isset($parent->children[$with]) && $parent->children[$with]->master===null) 208 return $parent->children[$with]; 209 210 if(($relation=$parent->model->getActiveRelation($with))===null) 211 throw new CDbException(Yii::t('yii','Relation "{name}" is not defined in active record class "{class}".', 212 array('{class}'=>get_class($parent->model), '{name}'=>$with))); 213 214 $relation=clone $relation; 215 $model=CActiveRecord::model($relation->className); 216 217 if($relation instanceof CActiveRelation) 218 { 219 $oldAlias=$model->getTableAlias(false,false); 220 if(isset($options['alias'])) 221 $model->setTableAlias($options['alias']); 222 elseif($relation->alias===null) 223 $model->setTableAlias($relation->name);
#0 |
+
–
/home/tvertop/swsys-web.ru/docs/framework/db/ar/CActiveFinder.php(281): CActiveFinder->buildJoinTree(CJoinElement, "country") 276 277 // $with is an array, keys are relation name, values are relation spec 278 foreach($with as $key=>$value) 279 { 280 if(is_string($value)) // the value is a relation name 281 $this->buildJoinTree($parent,$value); 282 elseif(is_string($key) && is_array($value)) 283 $this->buildJoinTree($parent,$key,$value); 284 } 285 } 286 } |
#1 |
+
–
/home/tvertop/swsys-web.ru/docs/framework/db/ar/CActiveFinder.php(48): CActiveFinder->buildJoinTree(CJoinElement, array("country")) 43 */ 44 public function __construct($model,$with) 45 { 46 $this->_builder=$model->getCommandBuilder(); 47 $this->_joinTree=new CJoinElement($this,$model); 48 $this->buildJoinTree($this->_joinTree,$with); 49 } 50 51 /** 52 * Do not call this method. This method is used internally to perform the relational query 53 * based on the given DB criteria. |
#2 |
+
–
/home/tvertop/swsys-web.ru/docs/framework/db/ar/CActiveRecord.php(1301): CActiveFinder->__construct(Profile, array("country")) 1296 $command=$this->getCommandBuilder()->createFindCommand($this->getTableSchema(),$criteria); 1297 return $all ? $this->populateRecords($command->queryAll(), true, $criteria->index) : $this->populateRecord($command->queryRow()); 1298 } 1299 else 1300 { 1301 $finder=new CActiveFinder($this,$criteria->with); 1302 return $finder->query($criteria,$all); 1303 } 1304 } 1305 1306 /** |
#3 |
+
–
/home/tvertop/swsys-web.ru/docs/framework/db/ar/CActiveRecord.php(1402): CActiveRecord->query(CDbCriteria) 1397 */ 1398 public function find($condition='',$params=array()) 1399 { 1400 Yii::trace(get_class($this).'.find()','system.db.ar.CActiveRecord'); 1401 $criteria=$this->getCommandBuilder()->createCriteria($condition,$params); 1402 return $this->query($criteria); 1403 } 1404 1405 /** 1406 * Finds all active records satisfying the specified condition. 1407 * See {@link find()} for detailed explanation about $condition and $params. |
#4 |
+
–
/home/tvertop/swsys-web.ru/docs/protected/modules/author/models/Article.php(233): CActiveRecord->find(CDbCriteria) 228 if ($this->advanced->is_author == 1) { 229 $criteria = new CDbCriteria(); 230 $criteria->condition = '`user_id` = :id'; 231 $criteria->params = array(':id' => $this->author); 232 233 $author = Profile::model()->with('country')->find($criteria); 234 $relations = array_merge(array($author), $relations); 235 } 236 237 foreach ($relations as $one) { 238 $criteria = new CDbCriteria(); |
#5 |
+
–
/home/tvertop/swsys-web.ru/docs/protected/modules/author/controllers/ArticleController.php(99): Article->getAuthors() 094 095 $model = $this->loadModel($id); 096 $modelTranslated = $model->getTranslation(Language::getCurrentID()); 097 098 // Getting information about authors 099 $authors = $modelTranslated->getAuthors(); 100 101 // Getting tags 102 $tags_array = $modelTranslated->getTags(); 103 104 // Loading aditional information |
#6 |
+
–
/home/tvertop/swsys-web.ru/docs/protected/modules/author/controllers/ArticleController.php(160): ArticleController->loadData("206") 155 * Displays a particular model. 156 * @param integer $id the ID of the model to be displayed 157 */ 158 public function actionView($id) 159 { 160 $article = $this->loadData($id); 161 162 $document = new DOMDocument(); 163 $articleContent = $article['model']->content ? $article['model']->content : $article['modelOriginal']->content; 164 $document->loadHTML('<meta http-equiv="content-type" content="text/html; charset=utf-8">' . $articleContent); 165 |
#7 |
unknown(0): ArticleController->actionView("206")
|
#8 |
+
–
/home/tvertop/swsys-web.ru/docs/framework/web/actions/CAction.php(108): ReflectionMethod->invokeArgs(ArticleController, array("206")) 103 elseif($param->isDefaultValueAvailable()) 104 $ps[]=$param->getDefaultValue(); 105 else 106 return false; 107 } 108 $method->invokeArgs($object,$ps); 109 return true; 110 } 111 } |
#9 |
+
–
/home/tvertop/swsys-web.ru/docs/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(ArticleController, ReflectionMethod, array("id" => "206")) 42 { 43 $methodName='action'.$this->getId(); 44 $controller=$this->getController(); 45 $method=new ReflectionMethod($controller, $methodName); 46 if($method->getNumberOfParameters()>0) 47 return $this->runWithParamsInternal($controller, $method, $params); 48 else 49 return $controller->$methodName(); 50 } 51 52 } |
#10 |
+
–
/home/tvertop/swsys-web.ru/docs/framework/web/CController.php(308): CInlineAction->runWithParams(array("id" => "206")) 303 { 304 $priorAction=$this->_action; 305 $this->_action=$action; 306 if($this->beforeAction($action)) 307 { 308 if($action->runWithParams($this->getActionParams())===false) 309 $this->invalidActionParams($action); 310 else 311 $this->afterAction($action); 312 } 313 $this->_action=$priorAction; |
#11 |
+
–
/home/tvertop/swsys-web.ru/docs/framework/web/filters/CFilterChain.php(133): CController->runAction(CInlineAction) 128 $filter=$this->itemAt($this->filterIndex++); 129 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 130 $filter->filter($this); 131 } 132 else 133 $this->controller->runAction($this->action); 134 } 135 } |
#12 |
+
–
/home/tvertop/swsys-web.ru/docs/framework/web/filters/CFilter.php(40): CFilterChain->run() 35 */ 36 public function filter($filterChain) 37 { 38 if($this->preFilter($filterChain)) 39 { 40 $filterChain->run(); 41 $this->postFilter($filterChain); 42 } 43 } 44 45 /** |
#13 |
+
–
/home/tvertop/swsys-web.ru/docs/framework/web/CController.php(1145): CFilter->filter(CFilterChain) 1140 */ 1141 public function filterAccessControl($filterChain) 1142 { 1143 $filter=new CAccessControlFilter; 1144 $filter->setRules($this->accessRules()); 1145 $filter->filter($filterChain); 1146 } 1147 1148 /** 1149 * Returns a persistent page state value. 1150 * A page state is a variable that is persistent across POST requests of the same page. |
#14 |
+
–
/home/tvertop/swsys-web.ru/docs/framework/web/filters/CInlineFilter.php(58): CController->filterAccessControl(CFilterChain) 53 * @param CFilterChain $filterChain the filter chain that the filter is on. 54 */ 55 public function filter($filterChain) 56 { 57 $method='filter'.$this->name; 58 $filterChain->controller->$method($filterChain); 59 } 60 } |
#15 |
+
–
/home/tvertop/swsys-web.ru/docs/framework/web/filters/CFilterChain.php(130): CInlineFilter->filter(CFilterChain) 125 { 126 if($this->offsetExists($this->filterIndex)) 127 { 128 $filter=$this->itemAt($this->filterIndex++); 129 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 130 $filter->filter($this); 131 } 132 else 133 $this->controller->runAction($this->action); 134 } 135 } |
#16 |
+
–
/home/tvertop/swsys-web.ru/docs/framework/web/CController.php(291): CFilterChain->run() 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); 292 $this->_action=$priorAction; 293 } 294 } 295 296 /** |
#17 |
+
–
/home/tvertop/swsys-web.ru/docs/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array("accessControl", "postOnly + delete")) 260 { 261 if(($parent=$this->getModule())===null) 262 $parent=Yii::app(); 263 if($parent->beforeControllerAction($this,$action)) 264 { 265 $this->runActionWithFilters($action,$this->filters()); 266 $parent->afterControllerAction($this,$action); 267 } 268 } 269 else 270 $this->missingAction($actionID); |
#18 |
+
–
/home/tvertop/swsys-web.ru/docs/framework/web/CWebApplication.php(282): CController->run("view") 277 { 278 list($controller,$actionID)=$ca; 279 $oldController=$this->_controller; 280 $this->_controller=$controller; 281 $controller->init(); 282 $controller->run($actionID); 283 $this->_controller=$oldController; 284 } 285 else 286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 287 array('{route}'=>$route===''?$this->defaultController:$route))); |
#19 |
+
–
/home/tvertop/swsys-web.ru/docs/framework/web/CWebApplication.php(141): CWebApplication->runController("author/article/view") 136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 137 $_GET[$name]=$value; 138 } 139 else 140 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 141 $this->runController($route); 142 } 143 144 /** 145 * Registers the core application components. 146 * This method overrides the parent implementation by registering additional core components. |
#20 |
+
–
/home/tvertop/swsys-web.ru/docs/framework/base/CApplication.php(169): CWebApplication->processRequest() 164 public function run() 165 { 166 if($this->hasEventHandler('onBeginRequest')) 167 $this->onBeginRequest(new CEvent($this)); 168 register_shutdown_function(array($this,'end'),0,false); 169 $this->processRequest(); 170 if($this->hasEventHandler('onEndRequest')) 171 $this->onEndRequest(new CEvent($this)); 172 } 173 174 /** |
#21 |
+
–
/home/tvertop/swsys-web.ru/docs/index.php(34): CApplication->run() 29 $current_time = explode(" ",$current_time); 30 // Складываем секунды и миллисекунды 31 $start_time = $current_time[1] + $current_time[0]; 32 33 require_once($yii); 34 Yii::createWebApplication($config)->run(); 35 36 // То же, что и в 1 части 37 $current_time = microtime(); 38 $current_time = explode(" ",$current_time); 39 $current_time = $current_time[1] + $current_time[0]; |