/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/views/article/_item_search.php(7): Article->getAuthors() 02 <h3 class="title title_article-tizer"><a 03 href="<?php echo Yii::app()->createUrl('author/article/view', array('id' => $data['url'])); ?>"><?php echo $data['title']; ?> </a> 04 </h3> 05 06 <div class="article-tizer-authors"> 07 <?php $a = $data->getAuthors(); 08 foreach ($a as $author): ?> 09 <span class="icon icon_person"></span> 10 <a class="link" 11 href="<?php echo Yii::app()->createUrl('author/profile/view', array('id' => $author['id'])); ?>"><?= $author['name'] ?></a> 12 <?php |
#6 |
+
–
/home/tvertop/swsys-web.ru/docs/framework/web/CBaseController.php(130): require("/home/tvertop/swsys-web.ru/docs/protected/modules/author/views/a...") 125 ob_implicit_flush(false); 126 require($_viewFile_); 127 return ob_get_clean(); 128 } 129 else 130 require($_viewFile_); 131 } 132 133 /** 134 * Creates a widget and initializes it. 135 * This method first creates the specified widget instance. |
#7 |
+
–
/home/tvertop/swsys-web.ru/docs/framework/web/CBaseController.php(95): CBaseController->renderInternal("/home/tvertop/swsys-web.ru/docs/protected/modules/author/views/a...", array("hits" => array(), "previews" => array(142 => "<p style="text-align:justify">В настоящей статье...", 214 => "<p>впувап</p>
"), "index" => 1, "data" => Article, ...), false) 090 { 091 $widgetCount=count($this->_widgetStack); 092 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 093 $content=$renderer->renderFile($this,$viewFile,$data,$return); 094 else 095 $content=$this->renderInternal($viewFile,$data,$return); 096 if(count($this->_widgetStack)===$widgetCount) 097 return $content; 098 else 099 { 100 $widget=end($this->_widgetStack); |
#8 |
+
–
/home/tvertop/swsys-web.ru/docs/framework/zii/widgets/CListView.php(281): CBaseController->renderFile("/home/tvertop/swsys-web.ru/docs/protected/modules/author/views/a...", array("hits" => array(), "previews" => array(142 => "<p style="text-align:justify">В настоящей статье...", 214 => "<p>впувап</p>
"), "index" => 1, "data" => Article, ...)) 276 { 277 $data=$this->viewData; 278 $data['index']=$i; 279 $data['data']=$item; 280 $data['widget']=$this; 281 $owner->renderFile($viewFile,$data); 282 if($j++ < $n-1) 283 echo $this->separator; 284 } 285 } 286 else |
#9 |
+
–
/home/tvertop/swsys-web.ru/docs/framework/zii/widgets/CBaseListView.php(160): CListView->renderItems() 155 protected function renderSection($matches) 156 { 157 $method='render'.$matches[1]; 158 if(method_exists($this,$method)) 159 { 160 $this->$method(); 161 $html=ob_get_contents(); 162 ob_clean(); 163 return $html; 164 } 165 else |
#10 |
unknown(0): CBaseListView->renderSection(array("{items}", "items"))
|
#11 |
+
–
/home/tvertop/swsys-web.ru/docs/framework/zii/widgets/CBaseListView.php(143): preg_replace_callback("/{(\w+)}/", array(CListView, "renderSection"), "{items}{pager}") 138 * The rendering results will replace the corresponding placeholders in {@link template}. 139 */ 140 public function renderContent() 141 { 142 ob_start(); 143 echo preg_replace_callback("/{(\w+)}/",array($this,'renderSection'),$this->template); 144 ob_end_flush(); 145 } 146 147 /** 148 * Renders a section. |
#12 |
+
–
/home/tvertop/swsys-web.ru/docs/framework/zii/widgets/CBaseListView.php(128): CBaseListView->renderContent() 123 { 124 $this->registerClientScript(); 125 126 echo CHtml::openTag($this->tagName,$this->htmlOptions)."\n"; 127 128 $this->renderContent(); 129 $this->renderKeys(); 130 131 echo CHtml::closeTag($this->tagName); 132 } 133 |
#13 |
+
–
/home/tvertop/swsys-web.ru/docs/framework/web/CBaseController.php(173): CBaseListView->run() 168 return ob_get_clean(); 169 } 170 else 171 { 172 $widget=$this->createWidget($className,$properties); 173 $widget->run(); 174 return $widget; 175 } 176 } 177 178 /** |
#14 |
+
–
/home/tvertop/swsys-web.ru/docs/protected/modules/author/views/article/search.php(24): CBaseController->widget("zii.widgets.CListView", array("dataProvider" => CArrayDataProvider, "itemView" => "_item_search", "template" => "{items}{pager}", "itemsTagName" => "ol", ...)) 19 'itemsCssClass' => '', 20 'emptyText' => Yii::t('journal', 'There are no articles for this request'), 21 'pagerCssClass' => 'center', 22 'pager' => array('class' => 'bootstrap.widgets.TbPager'), 23 'viewData' => array('hits' => (isset($hits))?$hits : array(), 'previews' => $previews) 24 )); 25 }?> 26 </div> 27 28 <style> 29 ol { |
#15 |
+
–
/home/tvertop/swsys-web.ru/docs/framework/web/CBaseController.php(126): require("/home/tvertop/swsys-web.ru/docs/protected/modules/author/views/a...") 121 $data=$_data_; 122 if($_return_) 123 { 124 ob_start(); 125 ob_implicit_flush(false); 126 require($_viewFile_); 127 return ob_get_clean(); 128 } 129 else 130 require($_viewFile_); 131 } |
#16 |
+
–
/home/tvertop/swsys-web.ru/docs/framework/web/CBaseController.php(95): CBaseController->renderInternal("/home/tvertop/swsys-web.ru/docs/protected/modules/author/views/a...", array("dataProvider" => CArrayDataProvider, "query" => "якобиевы многообразия", "previews" => array(142 => "<p style="text-align:justify">В настоящей статье...", 214 => "<p>впувап</p>
")), true) 090 { 091 $widgetCount=count($this->_widgetStack); 092 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 093 $content=$renderer->renderFile($this,$viewFile,$data,$return); 094 else 095 $content=$this->renderInternal($viewFile,$data,$return); 096 if(count($this->_widgetStack)===$widgetCount) 097 return $content; 098 else 099 { 100 $widget=end($this->_widgetStack); |
#17 |
+
–
/home/tvertop/swsys-web.ru/docs/framework/web/CController.php(869): CBaseController->renderFile("/home/tvertop/swsys-web.ru/docs/protected/modules/author/views/a...", array("dataProvider" => CArrayDataProvider, "query" => "якобиевы многообразия", "previews" => array(142 => "<p style="text-align:justify">В настоящей статье...", 214 => "<p>впувап</p>
")), true) 864 */ 865 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 866 { 867 if(($viewFile=$this->getViewFile($view))!==false) 868 { 869 $output=$this->renderFile($viewFile,$data,true); 870 if($processOutput) 871 $output=$this->processOutput($output); 872 if($return) 873 return $output; 874 else |
#18 |
+
–
/home/tvertop/swsys-web.ru/docs/framework/web/CController.php(782): CController->renderPartial("search", array("dataProvider" => CArrayDataProvider, "query" => "якобиевы многообразия", "previews" => array(142 => "<p style="text-align:justify">В настоящей статье...", 214 => "<p>впувап</p>
")), true) 777 */ 778 public function render($view,$data=null,$return=false) 779 { 780 if($this->beforeRender($view)) 781 { 782 $output=$this->renderPartial($view,$data,true); 783 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 784 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 785 786 $this->afterRender($view,$output); 787 |
#19 |
+
–
/home/tvertop/swsys-web.ru/docs/protected/modules/author/controllers/ArticleController.php(918): CController->render("search", array("dataProvider" => CArrayDataProvider, "query" => "якобиевы многообразия", "previews" => array(142 => "<p style="text-align:justify">В настоящей статье...", 214 => "<p>впувап</p>
"))) 913 914 } 915 916 $dataProvider = new CArrayDataProvider($result); 917 918 $this->render('search', array('dataProvider' => $dataProvider, 'query' => Tag::model()->findByPk($tag)->tag, 'previews' => $previews)); 919 920 } 921 922 /** 923 * Returns the data model based on the primary key given in the GET variable. |
#20 |
unknown(0): ArticleController->actionTagged("214")
|
#21 |
+
–
/home/tvertop/swsys-web.ru/docs/framework/web/actions/CAction.php(108): ReflectionMethod->invokeArgs(ArticleController, array("214")) 103 elseif($param->isDefaultValueAvailable()) 104 $ps[]=$param->getDefaultValue(); 105 else 106 return false; 107 } 108 $method->invokeArgs($object,$ps); 109 return true; 110 } 111 } |
#22 |
+
–
/home/tvertop/swsys-web.ru/docs/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(ArticleController, ReflectionMethod, array("tag" => "214")) 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 } |
#23 |
+
–
/home/tvertop/swsys-web.ru/docs/framework/web/CController.php(308): CInlineAction->runWithParams(array("tag" => "214")) 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; |
#24 |
+
–
/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 } |
#25 |
+
–
/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 /** |
#26 |
+
–
/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. |
#27 |
+
–
/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 } |
#28 |
+
–
/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 } |
#29 |
+
–
/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 /** |
#30 |
+
–
/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); |
#31 |
+
–
/home/tvertop/swsys-web.ru/docs/framework/web/CWebApplication.php(282): CController->run("tagged") 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))); |
#32 |
+
–
/home/tvertop/swsys-web.ru/docs/framework/web/CWebApplication.php(141): CWebApplication->runController("author/article/tagged") 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. |
#33 |
+
–
/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 /** |
#34 |
+
–
/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]; |