/var/www/lynix/data/www/lynix.ru/framework/db/ar/CActiveRecord.php(2362)
2350 2351 /** 2352 * Constructor. 2353 * @param CActiveRecord $model the model instance 2354 * @throws CDbException if specified table for active record class cannot be found in the database 2355 */ 2356 public function __construct($model) 2357 { 2358 $this->_modelClassName=get_class($model); 2359 2360 $tableName=$model->tableName(); 2361 if(($table=$model->getDbConnection()->getSchema()->getTable($tableName))===null) 2362 throw new CDbException(Yii::t('yii','The table "{table}" for active record class "{class}" cannot be found in the database.', 2363 array('{class}'=>$this->_modelClassName,'{table}'=>$tableName))); 2364 if($table->primaryKey===null) 2365 { 2366 $table->primaryKey=$model->primaryKey(); 2367 if(is_string($table->primaryKey) && isset($table->columns[$table->primaryKey])) 2368 $table->columns[$table->primaryKey]->isPrimaryKey=true; 2369 elseif(is_array($table->primaryKey)) 2370 { 2371 foreach($table->primaryKey as $name) 2372 { 2373 if(isset($table->columns[$name])) 2374 $table->columns[$name]->isPrimaryKey=true;
#0 |
+
–
/var/www/lynix/data/www/lynix.ru/framework/db/ar/CActiveRecord.php(411): CActiveRecordMetaData->__construct(Ankor) 406 { 407 $className=get_class($this); 408 if(!array_key_exists($className,self::$_md)) 409 { 410 self::$_md[$className]=null; // preventing recursive invokes of {@link getMetaData()} via {@link __get()} 411 self::$_md[$className]=new CActiveRecordMetaData($this); 412 } 413 return self::$_md[$className]; 414 } 415 416 /** |
#1 |
+
–
/var/www/lynix/data/www/lynix.ru/framework/db/ar/CActiveRecord.php(658): CActiveRecord->getMetaData() 653 * Returns the metadata of the table that this AR belongs to 654 * @return CDbTableSchema the metadata of the table that this AR belongs to 655 */ 656 public function getTableSchema() 657 { 658 return $this->getMetaData()->tableSchema; 659 } 660 661 /** 662 * Returns the command builder used by this AR. 663 * @return CDbCommandBuilder the command builder used by this AR |
#2 |
+
–
/var/www/lynix/data/www/lynix.ru/framework/db/ar/CActiveRecord.php(1485): CActiveRecord->getTableSchema() 1480 */ 1481 public function findByPk($pk,$condition='',$params=array()) 1482 { 1483 Yii::trace(get_class($this).'.findByPk()','system.db.ar.CActiveRecord'); 1484 $prefix=$this->getTableAlias(true).'.'; 1485 $criteria=$this->getCommandBuilder()->createPkCriteria($this->getTableSchema(),$pk,$condition,$params,$prefix); 1486 return $this->query($criteria); 1487 } 1488 1489 /** 1490 * Finds all active records with the specified primary keys. |
#3 |
+
–
/var/www/lynix/data/www/lynix.ru/protected/models/Megaindex.php(87): CActiveRecord->findByPk("1255") 82 83 84 public function search($id = 0) { 85 $exclude = array(); 86 if($id > 0) { 87 $ankor = Ankor::model()->findByPk($id); 88 if($ankor instanceof Ankor) { 89 $aT = $ankor->ankorTexts; 90 foreach($aT as $t) { 91 $exclude[] = $t->text; 92 } |
#4 |
+
–
/var/www/lynix/data/www/lynix.ru/themes/blue-gray/views/ankor/_megaindextable.php(7): Megaindex->search("1255") 02 <div class="styleTable"> 03 <?php 04 $tblId = 'megaindex-data-grid'; 05 $dropdown = (defined("MAINPAGE_MEGAINDEX")) ? "" : $m->getTableDropDown(); 06 $checkbox = (defined("MAINPAGE_MEGAINDEX")) ? array() : $m->getTableCheckbox(2); 07 $dataProvider = $m->search(isset($_GET['id']) ? $_GET['id'] : 0); 08 09 $pageCookie = 'pageSizeAnkorTMega'; 10 $dataProvider->pagination->pageSize = 14; 11 12 $this->widget('zii.widgets.grid.CGridView', array( |
#5 |
+
–
/var/www/lynix/data/www/lynix.ru/themes/blue-gray/views/ankor/_megaindexdialog.php(15): include_once("/var/www/lynix/data/www/lynix.ru/themes/blue-gray/views/ankor/_m...") 10 'buttons' => array( 11 array('text' => 'Закрыть', 'click' => 'js:function(){$(this).dialog("close");}'), 12 ), 13 ), 14 )); 15 include_once(Yii::getPathOfAlias('webroot')."/themes/".Yii::app()->theme->getName()."/views/ankor/_megaindextable.php"); 16 17 $this->endWidget('zii.widgets.jui.CJuiDialog'); 18 if(!defined("MAINPAGE_MEGAINDEX")) { 19 Yii::app()->clientScript->registerScript( 20 __FILE__.__LINE__, |
#6 |
+
–
/var/www/lynix/data/www/lynix.ru/themes/blue-gray/views/site/news_single.php(34): include_once("/var/www/lynix/data/www/lynix.ru/themes/blue-gray/views/ankor/_m...") 29 </div> 30 </div> 31 </div> 32 <?php 33 define("MAINPAGE_MEGAINDEX", true); 34 include_once(Yii::getPathOfAlias('webroot')."/themes/".Yii::app()->theme->getName()."/views/ankor/_megaindexdialog.php"); 35 $u = CHtml::normalizeUrl(array('site/index')); 36 Yii::app()->clientScript->registerScript(__FILE__.__LINE__, ' 37 $(document).on("click", "#calculateSiteSeo", function() { 38 $(this).blur(); 39 var url = $("#siteurl1").val(); |
#7 |
+
–
/var/www/lynix/data/www/lynix.ru/framework/web/CBaseController.php(126): require("/var/www/lynix/data/www/lynix.ru/themes/blue-gray/views/site/new...") 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 } |
#8 |
+
–
/var/www/lynix/data/www/lynix.ru/framework/web/CBaseController.php(95): CBaseController->renderInternal("/var/www/lynix/data/www/lynix.ru/themes/blue-gray/views/site/new...", array("model" => Node, "m" => Megaindex), 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); |
#9 |
+
–
/var/www/lynix/data/www/lynix.ru/framework/web/CController.php(869): CBaseController->renderFile("/var/www/lynix/data/www/lynix.ru/themes/blue-gray/views/site/new...", array("model" => Node, "m" => Megaindex), 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 |
#10 |
+
–
/var/www/lynix/data/www/lynix.ru/framework/web/CController.php(782): CController->renderPartial("news_single", array("model" => Node, "m" => Megaindex), 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 |
#11 |
+
–
/var/www/lynix/data/www/lynix.ru/protected/controllers/SiteController.php(969): CController->render("news_single", array("model" => Node, "m" => Megaindex)) 964 $model = Node::model()->findByPk($id); 965 $m = new Megaindex(); 966 $this->render('news_single', array( 967 'model' => $model, 968 'm'=>$m, 969 )); 970 } else { 971 $criteria = new CDbCriteria(); 972 $criteria->condition = "t.node_type='news'"; 973 $criteria->order = "t.update_time DESC"; 974 $criteria->with = array( |
#12 |
unknown(0): SiteController->actionNews("1255")
|
#13 |
+
–
/var/www/lynix/data/www/lynix.ru/framework/web/actions/CAction.php(108): ReflectionMethod->invokeArgs(SiteController, array("1255")) 103 elseif($param->isDefaultValueAvailable()) 104 $ps[]=$param->getDefaultValue(); 105 else 106 return false; 107 } 108 $method->invokeArgs($object,$ps); 109 return true; 110 } 111 } |
#14 |
+
–
/var/www/lynix/data/www/lynix.ru/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(SiteController, ReflectionMethod, array("id" => "1255")) 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 } |
#15 |
+
–
/var/www/lynix/data/www/lynix.ru/framework/web/CController.php(308): CInlineAction->runWithParams(array("id" => "1255")) 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; |
#16 |
+
–
/var/www/lynix/data/www/lynix.ru/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 } |
#17 |
+
–
/var/www/lynix/data/www/lynix.ru/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 /** |
#18 |
+
–
/var/www/lynix/data/www/lynix.ru/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. |
#19 |
+
–
/var/www/lynix/data/www/lynix.ru/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 } |
#20 |
+
–
/var/www/lynix/data/www/lynix.ru/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 } |
#21 |
+
–
/var/www/lynix/data/www/lynix.ru/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 /** |
#22 |
+
–
/var/www/lynix/data/www/lynix.ru/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array("accessControl")) 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); |
#23 |
+
–
/var/www/lynix/data/www/lynix.ru/framework/web/CWebApplication.php(282): CController->run("news") 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))); |
#24 |
+
–
/var/www/lynix/data/www/lynix.ru/framework/web/CWebApplication.php(141): CWebApplication->runController("site/news") 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. |
#25 |
+
–
/var/www/lynix/data/www/lynix.ru/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 /** |
#26 |
+
–
/var/www/lynix/data/www/lynix.ru/index.php(41): CApplication->run() 36 return parent::app(); 37 } 38 39 } 40 41 Yii::createWebApplication($config)->run(); 42 /*$file = Yii::getPathOfAlias('webroot').DIRECTORY_SEPARATOR.'miralinks.txt'; 43 $f = fopen($file, "a"); 44 fwrite($f, date("d-m-Y H:i:s").": ".$_SERVER['HTTP_USER_AGENT']."-".$_SERVER['REMOTE_ADDR']." - ".$_SERVER['REQUEST_URI'].PHP_EOL); 45 fclose($f);*/ |