/var/www/hosts/lk.usoft.ru/protected/modules/test/models/Tests.php(308)
296 $result = $this->limit * $this->time_limit; 297 } 298 return $result; 299 300 } 301 302 protected function afterFind() 303 { 304 parent::afterFind(); 305 if ($this->question_limit) { 306 $this->limit = $this->question_limit; 307 } else { 308 $this->limit = $this->questionCount; 309 } 310 311 312 } 313 314 protected function afterSave() 315 { 316 parent::afterSave(); 317 318 Yii::import('tags.models.Tag'); 319 Tag::model()->updateAfterSave($this->tags); 320 /*
| #0 |
+
–
/var/www/hosts/framework/db/ar/CActiveFinder.php(1405): CStatElement->queryOneMany() 1400 public function query() 1401 { 1402 if(preg_match('/^\s*(.*?)\((.*)\)\s*$/',$this->relation->foreignKey,$matches)) 1403 $this->queryManyMany($matches[1],$matches[2]); 1404 else 1405 $this->queryOneMany(); 1406 } 1407 1408 private function queryOneMany() 1409 { 1410 $relation=$this->relation; |
| #1 |
+
–
/var/www/hosts/framework/db/ar/CActiveFinder.php(472): CStatElement->query() 467 $pk[$name]=$baseRecord->$name; 468 $this->records[serialize($pk)]=$baseRecord; 469 } 470 471 foreach($this->stats as $stat) 472 $stat->query(); 473 474 if(!$this->children) 475 return; 476 477 $params=array(); |
| #2 |
+
–
/var/www/hosts/framework/db/ar/CActiveFinder.php(163): CJoinElement->lazyFind() 158 * This method is internally invoked by {@link CActiveRecord} to support lazy loading. 159 * @param CActiveRecord $baseRecord the base record whose related objects are to be loaded 160 */ 161 public function lazyFind($baseRecord) 162 { 163 $this->_joinTree->lazyFind($baseRecord); 164 if(!empty($this->_joinTree->children)) 165 { 166 foreach($this->_joinTree->children as $child) 167 $child->afterFind(); 168 } |
| #3 |
+
–
/var/www/hosts/framework/db/ar/CActiveRecord.php(281): CActiveFinder->lazyFind() 276 else 277 $r=$name; 278 unset($this->_related[$name]); 279 280 $finder=$this->getActiveFinder($r); 281 $finder->lazyFind($this); 282 283 if(!isset($this->_related[$name])) 284 { 285 if($relation instanceof CHasManyRelation) 286 $this->_related[$name]=array(); |
| #4 |
+
–
/var/www/hosts/framework/db/ar/CActiveRecord.php(143): CActiveRecord->getRelated() 138 elseif(isset($this->getMetaData()->columns[$name])) 139 return null; 140 elseif(isset($this->_related[$name])) 141 return $this->_related[$name]; 142 elseif(isset($this->getMetaData()->relations[$name])) 143 return $this->getRelated($name); 144 else 145 return parent::__get($name); 146 } 147 148 /** |
| #5 |
+
–
/var/www/hosts/lk.usoft.ru/protected/modules/test/models/Tests.php(308): CActiveRecord->__get() 303 { 304 parent::afterFind(); 305 if ($this->question_limit) { 306 $this->limit = $this->question_limit; 307 } else { 308 $this->limit = $this->questionCount; 309 } 310 311 312 } 313 |
| #6 |
+
–
/var/www/hosts/framework/db/ar/CActiveRecord.php(1868): Tests->afterFind() 1863 $record->_attributes[$name]=$value; 1864 } 1865 $record->_pk=$record->getPrimaryKey(); 1866 $record->attachBehaviors($record->behaviors()); 1867 if($callAfterFind) 1868 $record->afterFind(); 1869 return $record; 1870 } 1871 else 1872 return null; 1873 } |
| #7 |
+
–
/var/www/hosts/framework/db/ar/CActiveRecord.php(1889): CActiveRecord->populateRecord() 1884 public function populateRecords($data,$callAfterFind=true,$index=null) 1885 { 1886 $records=array(); 1887 foreach($data as $attributes) 1888 { 1889 if(($record=$this->populateRecord($attributes,$callAfterFind))!==null) 1890 { 1891 if($index===null) 1892 $records[]=$record; 1893 else 1894 $records[$record->$index]=$record; |
| #8 |
+
–
/var/www/hosts/framework/db/ar/CActiveRecord.php(1352): CActiveRecord->populateRecords() 1347 if(empty($criteria->with)) 1348 { 1349 if(!$all) 1350 $criteria->limit=1; 1351 $command=$this->getCommandBuilder()->createFindCommand($this->getTableSchema(),$criteria,$this->getTableAlias()); 1352 return $all ? $this->populateRecords($command->queryAll(), true, $criteria->index) : $this->populateRecord($command->queryRow()); 1353 } 1354 else 1355 { 1356 $finder=$this->getActiveFinder($criteria->with); 1357 return $finder->query($criteria,$all); |
| #9 |
+
–
/var/www/hosts/framework/db/ar/CActiveRecord.php(1471): CActiveRecord->query() 1466 */ 1467 public function findAll($condition='',$params=array()) 1468 { 1469 Yii::trace(get_class($this).'.findAll()','system.db.ar.CActiveRecord'); 1470 $criteria=$this->getCommandBuilder()->createCriteria($condition,$params); 1471 return $this->query($criteria,true); 1472 } 1473 1474 /** 1475 * Finds a single active record with the specified primary key. 1476 * See {@link find()} for detailed explanation about $condition and $params. |
| #10 |
+
–
/var/www/hosts/lk.usoft.ru/protected/modules/test/components/TestsWidget.php(18): CActiveRecord->findAll() 13 { 14 Yii::app()->getModule('test'); 15 if($this->testId){ 16 $test = Tests::model()->findByPk($this->testId); 17 } else{ 18 $model = Tests::model()->findAll('visible=1 AND access="" AND pul is NULL AND (dt_stop is NULL OR dt_stop >= "'.date('Y-m-d H:i:s').'")'); 19 if($this->random){ 20 $this->test_num = rand(1, sizeof($model)); 21 } 22 $criteria=new CDbCriteria; 23 $criteria->addCondition('visible=1'); |
| #11 |
+
–
/var/www/hosts/framework/web/CBaseController.php(147): TestsWidget->init() 142 * @return CWidget the fully initialized widget instance. 143 */ 144 public function createWidget($className,$properties=array()) 145 { 146 $widget=Yii::app()->getWidgetFactory()->createWidget($this,$className,$properties); 147 $widget->init(); 148 return $widget; 149 } 150 151 /** 152 * Creates a widget and executes it. |
| #12 |
+
–
/var/www/hosts/framework/web/CBaseController.php(172): CBaseController->createWidget() 167 $widget->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 |
| #13 |
+
–
/var/www/hosts/lk.usoft.ru/protected/views/frontend/reminder.php(56): CBaseController->widget() 51 <div> 52 </div> 53 54 55 <div class="row remider mrg-b-30"> 56 <?php $this->widget('application.modules.test.components.TestsWidget', array('random' => true)); ?> 57 <?php /* $this->widget('application.components.TestsWidget', array('random' => true)); */ ?> 58 </div> 59 60 <?php if ($page['page_type'] !== 'navigator/pages/navigate'): ?> 61 <div class="row mrg-b-30"> |
| #14 |
+
–
/var/www/hosts/framework/web/CBaseController.php(126): require("/var/www/hosts/lk.usoft.ru/protected/views/frontend/reminder.php") 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 } |
| #15 |
+
–
/var/www/hosts/framework/web/CBaseController.php(95): CBaseController->renderInternal() 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); |
| #16 |
+
–
/var/www/hosts/framework/web/CController.php(789): CBaseController->renderFile() 784 { 785 if($this->beforeRender($view)) 786 { 787 $output=$this->renderPartial($view,$data,true); 788 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 789 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 790 791 $this->afterRender($view,$output); 792 793 $output=$this->processOutput($output); 794 |
| #17 |
+
–
/var/www/hosts/lk.usoft.ru/protected/fcomponents/Controller.php(390): CController->render() 385 echo $this->externalTemplate($content); 386 return true; 387 } 388 } else { 389 390 return parent::render($view, $data, $return); // TODO: Change the autogenerated stub 391 } 392 } 393 394 } |
| #18 |
+
–
/var/www/hosts/lk.usoft.ru/protected/modules/navigator/controllers/PagesController.php(202): Controller->render() 197 'order' => $sort_order, 198 'limit' => $limit 199 ), 200 true); 201 202 $this->render( 203 '//common/page', 204 array( 205 'content' => $page['page_text'] . $content, 206 'page' => $page 207 ) |
| #19 |
+
–
/var/www/hosts/framework/web/actions/CInlineAction.php(49): PagesController->actionNavigate() 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 } |
| #20 |
+
–
/var/www/hosts/framework/web/CController.php(312): CInlineAction->runWithParams() 307 $priorAction=$this->_action; 308 $this->_action=$action; 309 310 if ($this->beforeAction($action)) { 311 312 if ($action->runWithParams($this->getActionParams())===false) { 313 $this->invalidActionParams($action); 314 } else { 315 $this->afterAction($action); 316 } 317 } |
| #21 |
+
–
/var/www/hosts/framework/web/filters/CFilterChain.php(133): CController->runAction() 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 } |
| #22 |
+
–
/var/www/hosts/framework/web/CController.php(294): CFilterChain->run() 289 if(empty($filters)) { 290 $this->runAction($action); 291 } else { 292 $priorAction=$this->_action; 293 $this->_action=$action; 294 CFilterChain::create($this,$action,$filters)->run(); 295 $this->_action=$priorAction; 296 } 297 } 298 299 /** |
| #23 |
+
–
/var/www/hosts/framework/web/CController.php(268): CController->runActionWithFilters() 263 if (($parent=$this->getModule())===null) { 264 $parent=Yii::app(); 265 } 266 267 if ($parent->beforeControllerAction($this,$action)) { 268 $this->runActionWithFilters($action,$this->filters()); 269 $parent->afterControllerAction($this,$action); 270 } 271 } else { 272 $this->missingAction($actionID); 273 } |
| #24 |
+
–
/var/www/hosts/framework/web/CWebApplication.php(282): CController->run() 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))); |
| #25 |
+
–
/var/www/hosts/framework/web/CWebApplication.php(141): CWebApplication->runController() 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. |
| #26 |
+
–
/var/www/hosts/framework/base/CApplication.php(180): CWebApplication->processRequest() 175 public function run() 176 { 177 if($this->hasEventHandler('onBeginRequest')) 178 $this->onBeginRequest(new CEvent($this)); 179 register_shutdown_function(array($this,'end'),0,false); 180 $this->processRequest(); 181 if($this->hasEventHandler('onEndRequest')) 182 $this->onEndRequest(new CEvent($this)); 183 } 184 185 /** |
| #27 |
+
–
/var/www/hosts/lk.usoft.ru/index.php(68): CApplication->run() 63 //Yii::setPathOfAlias('templates', $dirname_file .DIRECTORY_SEPARATOR.'templates'); 64 Yii::setPathOfAlias('core', INDEX_DIR . DIRECTORY_SEPARATOR . 'core'); 65 require_once(__DIR__ . DIRECTORY_SEPARATOR . 'protected' . DIRECTORY_SEPARATOR . 'vendors' . DIRECTORY_SEPARATOR . 'Loader.php'); 66 Yii::registerAutoloader(array('Loader', 'systemMainAutoload')); 67 68 Yii::createWebApplication($config_yii_path)->run(); |