/websites/html/protected/framework/db/ar/CActiveRecord.php(2312)
2300 private $_model; 2301 2302 /** 2303 * Constructor. 2304 * @param CActiveRecord $model the model instance 2305 */ 2306 public function __construct($model) 2307 { 2308 $this->_model=$model; 2309 2310 $tableName=$model->tableName(); 2311 if(($table=$model->getDbConnection()->getSchema()->getTable($tableName))===null) 2312 throw new CDbException(Yii::t('yii','The table "{table}" for active record class "{class}" cannot be found in the database.', 2313 array('{class}'=>get_class($model),'{table}'=>$tableName))); 2314 if($table->primaryKey===null) 2315 { 2316 $table->primaryKey=$model->primaryKey(); 2317 if(is_string($table->primaryKey) && isset($table->columns[$table->primaryKey])) 2318 $table->columns[$table->primaryKey]->isPrimaryKey=true; 2319 else if(is_array($table->primaryKey)) 2320 { 2321 foreach($table->primaryKey as $name) 2322 { 2323 if(isset($table->columns[$name])) 2324 $table->columns[$name]->isPrimaryKey=true;
| #0 |
+
–
/websites/html/protected/framework/db/ar/CActiveRecord.php(388): CActiveRecordMetaData->__construct(Node) 383 if(isset(self::$_models[$className])) 384 return self::$_models[$className]; 385 else 386 { 387 $model=self::$_models[$className]=new $className(null); 388 $model->_md=new CActiveRecordMetaData($model); 389 $model->attachBehaviors($model->behaviors()); 390 return $model; 391 } 392 } 393 |
| #1 |
+
–
/websites/html/protected/modules/wfbase/components/WfCriteria.php(38): CActiveRecord::model("Node") 33 public function getModel() 34 { 35 if (!isset($this->_model)) 36 { 37 $modelClass=Yii::import($this->modelClass); 38 $this->_model= WfActiveRecord::model($modelClass); 39 } 40 return $this->_model; 41 } 42 public function createCriteria($condition='',$params=array()) 43 { |
| #2 |
+
–
/websites/html/protected/modules/wfbase/components/WfCriteria.php(97): WfCriteria->getModel() 092 return $this->getModel()->resetScope()->find($this->createCriteria($condition,$params)); 093 } 094 public function findAll($condition='',$params=array ( )) 095 { 096 $this->replaceParameters(); 097 return $this->getModel()->resetScope()->findAll($this->createCriteria($condition,$params)); 098 } 099 public function findAllByAttributes($attributes,$condition='',$params=array()) 100 { 101 $this->replaceParameters(); 102 return $this->getModel()->resetScope()->findAllByAttributes($attributes,$this->createCriteria($condition,$params)); |
| #3 |
+
–
/websites/html/themes/basic/views/site/index.php(11): WfCriteria->findAll() 06 <div class="section_banner"> 07 08 <div class="banner"> 09 <ul class="banner_img clearfix"> 10 11 <?php $nodes = WFTDataHelper::nodeCriteria()->addScope('byType', array(15))->addScope('byPosition')->findAll(); ?> 12 <?php foreach ($nodes as $key => $node ) { ?> 13 <li> 14 <a href="<?php echo $node -> getNodeValue('url')?>"><img class="pic" src="<?php echo $node->getNodeFormValue('picture') ?>" alt=""/></a> 15 </li> 16 <?php } ?> |
| #4 |
+
–
/websites/html/protected/framework/web/CBaseController.php(127): require("/websites/html/themes/basic/views/site/index.php") 122 $data=$_data_; 123 if($_return_) 124 { 125 ob_start(); 126 ob_implicit_flush(false); 127 require($_viewFile_); 128 return ob_get_clean(); 129 } 130 else 131 require($_viewFile_); 132 } |
| #5 |
+
–
/websites/html/protected/framework/web/CBaseController.php(96): CBaseController->renderInternal("/websites/html/themes/basic/views/site/index.php", array("forms" => array(), "data" => null), true) 091 { 092 $widgetCount=count($this->_widgetStack); 093 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 094 $content=$renderer->renderFile($this,$viewFile,$data,$return); 095 else 096 $content=$this->renderInternal($viewFile,$data,$return); 097 if(count($this->_widgetStack)===$widgetCount) 098 return $content; 099 else 100 { 101 $widget=end($this->_widgetStack); |
| #6 |
+
–
/websites/html/protected/framework/web/CController.php(870): CBaseController->renderFile("/websites/html/themes/basic/views/site/index.php", array("forms" => array(), "data" => null), true) 865 */ 866 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 867 { 868 if(($viewFile=$this->getViewFile($view))!==false) 869 { 870 $output=$this->renderFile($viewFile,$data,true); 871 if($processOutput) 872 $output=$this->processOutput($output); 873 if($return) 874 return $output; 875 else |
| #7 |
+
–
/websites/html/protected/framework/web/CController.php(783): CController->renderPartial("index", array("forms" => array(), "data" => null), true) 778 */ 779 public function render($view,$data=null,$return=false) 780 { 781 if($this->beforeRender($view)) 782 { 783 $output=$this->renderPartial($view,$data,true); 784 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 785 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 786 787 $this->afterRender($view,$output); 788 |
| #8 |
+
–
/websites/html/protected/modules/wfbase/wftactions/WFTAction.php(135): CController->render("index", array("forms" => array(), "data" => null)) 130 { 131 if ($thislayout===false) 132 { 133 $controller->renderPartial($viewFile,$viewData); 134 }else{ 135 $controller->render($viewFile,$viewData); 136 } 137 } 138 $this->onAfterRender(new CEvent($this)); 139 } 140 |
| #9 |
+
–
/websites/html/protected/modules/wfbase/wftactions/WFTAction.php(81): WFTAction->render(null) 76 public function run() 77 { 78 $this->validateForms(); 79 $this->runAction(); 80 WFTDataHelper::setParameter('ActionData',$this->data); 81 $this->render($this->viewData); 82 } 83 protected function prepar() 84 { 85 $preparer=WFHelper::createComponent($this->pagePreparer); 86 if (isset($preparer)) |
| #10 |
+
–
/websites/html/protected/framework/web/actions/CAction.php(75): WFTAction->run() 70 { 71 $method=new ReflectionMethod($this, 'run'); 72 if($method->getNumberOfParameters()>0) 73 return $this->runWithParamsInternal($this, $method, $params); 74 else 75 return $this->run(); 76 } 77 78 /** 79 * Executes a method of an object with the supplied named parameters. 80 * This method is internally used. |
| #11 |
+
–
/websites/html/protected/framework/web/CController.php(309): CAction->runWithParams(array()) 304 { 305 $priorAction=$this->_action; 306 $this->_action=$action; 307 if($this->beforeAction($action)) 308 { 309 if($action->runWithParams($this->getActionParams())===false) 310 $this->invalidActionParams($action); 311 else 312 $this->afterAction($action); 313 } 314 $this->_action=$priorAction; |
| #12 |
+
–
/websites/html/protected/framework/web/filters/CFilterChain.php(134): CController->runAction(WFTAction) 129 $filter=$this->itemAt($this->filterIndex++); 130 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 131 $filter->filter($this); 132 } 133 else 134 $this->controller->runAction($this->action); 135 } 136 } |
| #13 |
+
–
/websites/html/protected/framework/web/filters/CFilter.php(41): CFilterChain->run() 36 */ 37 public function filter($filterChain) 38 { 39 if($this->preFilter($filterChain)) 40 { 41 $filterChain->run(); 42 $this->postFilter($filterChain); 43 } 44 } 45 46 /** |
| #14 |
+
–
/websites/html/protected/modules/wfbase/components/WfThemeController.php(38): CFilter->filter(CFilterChain) 33 } 34 public function filterAccessControl($filterChain) 35 { 36 $filter=new WfAccessControlFilter; 37 $filter->setRules($this->accessRules()); 38 $filter->filter($filterChain); 39 } 40 public function getNodeHelper() 41 { 42 if (!isset($this->_nodeHelper)) 43 { |
| #15 |
+
–
/websites/html/protected/framework/web/filters/CInlineFilter.php(59): WfThemeController->filterAccessControl(CFilterChain) 54 * @param CFilterChain $filterChain the filter chain that the filter is on. 55 */ 56 public function filter($filterChain) 57 { 58 $method='filter'.$this->name; 59 $filterChain->controller->$method($filterChain); 60 } 61 } |
| #16 |
+
–
/websites/html/protected/framework/web/filters/CFilterChain.php(131): CInlineFilter->filter(CFilterChain) 126 { 127 if($this->offsetExists($this->filterIndex)) 128 { 129 $filter=$this->itemAt($this->filterIndex++); 130 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 131 $filter->filter($this); 132 } 133 else 134 $this->controller->runAction($this->action); 135 } 136 } |
| #17 |
+
–
/websites/html/protected/framework/web/CController.php(292): CFilterChain->run() 287 $this->runAction($action); 288 else 289 { 290 $priorAction=$this->_action; 291 $this->_action=$action; 292 CFilterChain::create($this,$action,$filters)->run(); 293 $this->_action=$priorAction; 294 } 295 } 296 297 /** |
| #18 |
+
–
/websites/html/protected/framework/web/CController.php(266): CController->runActionWithFilters(WFTAction, array("accessControl")) 261 { 262 if(($parent=$this->getModule())===null) 263 $parent=Yii::app(); 264 if($parent->beforeControllerAction($this,$action)) 265 { 266 $this->runActionWithFilters($action,$this->filters()); 267 $parent->afterControllerAction($this,$action); 268 } 269 } 270 else 271 $this->missingAction($actionID); |
| #19 |
+
–
/websites/html/protected/framework/web/CWebApplication.php(283): CController->run("") 278 { 279 list($controller,$actionID)=$ca; 280 $oldController=$this->_controller; 281 $this->_controller=$controller; 282 $controller->init(); 283 $controller->run($actionID); 284 $this->_controller=$oldController; 285 } 286 else 287 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 288 array('{route}'=>$route===''?$this->defaultController:$route))); |
| #20 |
+
–
/websites/html/protected/framework/web/CWebApplication.php(142): CWebApplication->runController("") 137 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 138 $_GET[$name]=$value; 139 } 140 else 141 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 142 $this->runController($route); 143 } 144 145 /** 146 * Registers the core application components. 147 * This method overrides the parent implementation by registering additional core components. |
| #21 |
+
–
/websites/html/protected/framework/base/CApplication.php(162): CWebApplication->processRequest() 157 */ 158 public function run() 159 { 160 if($this->hasEventHandler('onBeginRequest')) 161 $this->onBeginRequest(new CEvent($this)); 162 $this->processRequest(); 163 if($this->hasEventHandler('onEndRequest')) 164 $this->onEndRequest(new CEvent($this)); 165 } 166 167 /** |
| #22 |
+
–
/websites/html/index.php(11): CApplication->run() 06 require(dirname(__FILE__).'/protected/config/WfConfigHelper.php'); 07 WfConfigHelper::loadEnv(); 08 // specify how many levels of call stack should be shown in each log message 09 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 10 require_once($yii); 11 Yii::createWebApplication($config)->run(); |