/www/malachit.org/framework/db/ar/CActiveFinder.php(1065)
1053 { 1054 $fkDefined=false; 1055 break; 1056 } 1057 } 1058 1059 if(!$fkDefined) 1060 { 1061 $parentCondition=array(); 1062 $childCondition=array(); 1063 foreach($fks as $i=>$fk) 1064 { 1065 if($i<count($parent->_table->primaryKey)) 1066 { 1067 $pk=is_array($parent->_table->primaryKey) ? $parent->_table->primaryKey[$i] : $parent->_table->primaryKey; 1068 $parentCondition[$pk]=$parent->getColumnPrefix().$schema->quoteColumnName($pk).'='.$joinAlias.'.'.$schema->quoteColumnName($fk); 1069 } 1070 else 1071 { 1072 $j=$i-count($parent->_table->primaryKey); 1073 $pk=is_array($this->_table->primaryKey) ? $this->_table->primaryKey[$j] : $this->_table->primaryKey; 1074 $childCondition[$pk]=$this->getColumnPrefix().$schema->quoteColumnName($pk).'='.$joinAlias.'.'.$schema->quoteColumnName($fk); 1075 } 1076 } 1077 }
#0 |
+
–
/www/malachit.org/framework/db/ar/CActiveFinder.php(962): CJoinElement->joinManyMany(CMysqlTableSchema, array("content_id", "module_id"), CJoinElement) 957 if(($joinTable=$schema->getTable($matches[1]))===null) 958 throw new CDbException(Yii::t('yii','The relation "{relation}" in active record class "{class}" is not specified correctly: the join table "{joinTable}" given in the foreign key cannot be found in the database.', 959 array('{class}'=>get_class($parent->model), '{relation}'=>$this->relation->name, '{joinTable}'=>$matches[1]))); 960 $fks=preg_split('/\s*,\s*/',$matches[2],-1,PREG_SPLIT_NO_EMPTY); 961 962 return $this->joinManyMany($joinTable,$fks,$parent); 963 } 964 else 965 { 966 $fks=preg_split('/\s*,\s*/',$relation->foreignKey,-1,PREG_SPLIT_NO_EMPTY); 967 if($this->relation instanceof CBelongsToRelation) |
#1 |
+
–
/www/malachit.org/framework/db/ar/CActiveFinder.php(1192): CJoinElement->getJoinCondition() 1187 public function join($element) 1188 { 1189 $this->selects[]=$element->getColumnSelect($element->relation->select); 1190 $this->conditions[]=$element->relation->condition; 1191 $this->orders[]=$element->relation->order; 1192 $this->joins[]=$element->getJoinCondition(); 1193 $this->joins[]=$element->relation->join; 1194 $this->groups[]=$element->relation->group; 1195 $this->havings[]=$element->relation->having; 1196 1197 if(is_array($element->relation->params)) |
#2 |
+
–
/www/malachit.org/framework/db/ar/CActiveFinder.php(722): CJoinQuery->join(CJoinElement) 717 { 718 if($child->relation instanceof CHasOneRelation || $child->relation instanceof CBelongsToRelation 719 || $this->_finder->joinAll || $child->relation->together || (!$this->_finder->baseLimited && $child->relation->together===null)) 720 { 721 $child->_joined=true; 722 $query->join($child); 723 $child->buildQuery($query); 724 } 725 } 726 } 727 |
#3 |
+
–
/www/malachit.org/framework/db/ar/CActiveFinder.php(393): CJoinElement->buildQuery(CJoinQuery) 388 { 389 if($this->_parent===null) // root element 390 { 391 $query=new CJoinQuery($this,$criteria); 392 $this->_finder->baseLimited=($criteria->offset>=0 || $criteria->limit>=0); 393 $this->buildQuery($query); 394 $this->_finder->baseLimited=false; 395 $this->runQuery($query); 396 } 397 else if(!$this->_joined && !empty($this->_parent->records)) // not joined before 398 { |
#4 |
+
–
/www/malachit.org/framework/db/ar/CActiveFinder.php(72): CJoinElement->find(CDbCriteria) 67 { 68 $this->_joinTree->tableAlias=$criteria->alias; 69 $this->_joinTree->rawTableAlias=$this->_builder->getSchema()->quoteTableName($criteria->alias); 70 } 71 72 $this->_joinTree->find($criteria); 73 $this->_joinTree->afterFind(); 74 75 if($all) 76 { 77 $result = array_values($this->_joinTree->records); |
#5 |
+
–
/www/malachit.org/framework/db/ar/CActiveRecord.php(1260): CActiveFinder->query(CDbCriteria, true) 1255 return $all ? $this->populateRecords($command->queryAll(), true, $criteria->index) : $this->populateRecord($command->queryRow()); 1256 } 1257 else 1258 { 1259 $finder=new CActiveFinder($this,$criteria->with); 1260 return $finder->query($criteria,$all); 1261 } 1262 } 1263 1264 /** 1265 * Applies the query scopes to the given criteria. |
#6 |
+
–
/www/malachit.org/framework/db/ar/CActiveRecord.php(1341): CActiveRecord->query(CDbCriteria, true) 1336 */ 1337 public function findAll($condition='',$params=array()) 1338 { 1339 Yii::trace(get_class($this).'.findAll()','system.db.ar.CActiveRecord'); 1340 $criteria=$this->getCommandBuilder()->createCriteria($condition,$params); 1341 return $this->query($criteria,true); 1342 } 1343 1344 /** 1345 * Finds a single active record with the specified primary key. 1346 * See {@link find()} for detailed explanation about $condition and $params. |
#7 |
+
–
/www/malachit.org/protected/components/MenuWidget.php(62): CActiveRecord->findAll(CDbCriteria) 57 $models = $models->with(array( 58 'modules'=>array('condition'=>'modules.slug = :slug', 'params'=>array(':slug'=>$this->slug)), 59 'type', 60 )); 61 62 $models = $models->findAll($c); 63 64 $this->render('/menu/menu_'.$this->slug,array( 65 'module'=>$module, 66 'models'=>$models, 67 'slug'=>$this->slug, |
#8 |
+
–
/www/malachit.org/framework/web/CBaseController.php(166): MenuWidget->run() 161 return ob_get_clean(); 162 } 163 else 164 { 165 $widget=$this->createWidget($className,$properties); 166 $widget->run(); 167 return $widget; 168 } 169 } 170 171 /** |
#9 |
+
–
/www/malachit.org/protected/views/layouts/frontend.php(43): CBaseController->widget("application.components.MenuWidget", array("top_menu")) 38 39 </div> 40 <div class="right-col"> 41 42 <div class="clear"></div> 43 <?php $this->widget('application.components.MenuWidget', array('slug'=>'top_menu')); ?> 44 45 46 <div id ="contact"> 47 <ul> 48 <li> |
#10 |
+
–
/www/malachit.org/framework/web/CBaseController.php(119): require("/www/malachit.org/protected/views/layouts/frontend.php") 114 $data=$_data_; 115 if($_return_) 116 { 117 ob_start(); 118 ob_implicit_flush(false); 119 require($_viewFile_); 120 return ob_get_clean(); 121 } 122 else 123 require($_viewFile_); 124 } |
#11 |
+
–
/www/malachit.org/framework/web/CBaseController.php(88): CBaseController->renderInternal("/www/malachit.org/protected/views//layouts/frontend.php", array("<div class="main-container col3-layout">
<div class="main">
<div..."), true) 83 { 84 $widgetCount=count($this->_widgetStack); 85 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 86 $content=$renderer->renderFile($this,$viewFile,$data,$return); 87 else 88 $content=$this->renderInternal($viewFile,$data,$return); 89 if(count($this->_widgetStack)===$widgetCount) 90 return $content; 91 else 92 { 93 $widget=end($this->_widgetStack); |
#12 |
+
–
/www/malachit.org/framework/web/widgets/CContentDecorator.php(78): CBaseController->renderFile("/www/malachit.org/protected/views//layouts/frontend.php", array("<div class="main-container col3-layout">
<div class="main">
<div..."), true) 73 $viewFile=$owner->getViewFile($this->view); 74 if($viewFile!==false) 75 { 76 $data=$this->data; 77 $data['content']=$content; 78 return $owner->renderFile($viewFile,$data,true); 79 } 80 else 81 return $content; 82 } 83 } |
#13 |
+
–
/www/malachit.org/framework/web/widgets/CContentDecorator.php(56): CContentDecorator->decorate("<div class="main-container col3-layout">
<div class="main">
<div...") 51 * This method decorates the output with the specified {@link view}. 52 * @param string $output the captured output to be processed 53 */ 54 public function processOutput($output) 55 { 56 $output=$this->decorate($output); 57 parent::processOutput($output); 58 } 59 60 /** 61 * Decorates the content by rendering a view and embedding the content in it. |
#14 |
+
–
/www/malachit.org/framework/web/widgets/COutputProcessor.php(45): CContentDecorator->processOutput("<div class="main-container col3-layout">
<div class="main">
<div...") 40 * This method stops output buffering and processes the captured output. 41 */ 42 public function run() 43 { 44 $output=ob_get_clean(); 45 $this->processOutput($output); 46 } 47 48 /** 49 * Processes the captured output. 50 * |
#15 |
+
–
/www/malachit.org/framework/web/CBaseController.php(199): COutputProcessor->run() 194 */ 195 public function endWidget($id='') 196 { 197 if(($widget=array_pop($this->_widgetStack))!==null) 198 { 199 $widget->run(); 200 return $widget; 201 } 202 else 203 throw new CException(Yii::t('yii','{controller} has an extra endWidget({id}) call in its view.', 204 array('{controller}'=>get_class($this),'{id}'=>$id))); |
#16 |
+
–
/www/malachit.org/framework/web/CBaseController.php(294): CBaseController->endWidget("CContentDecorator") 289 * Ends the rendering of content. 290 * @see beginContent 291 */ 292 public function endContent() 293 { 294 $this->endWidget('CContentDecorator'); 295 } 296 } |
#17 |
+
–
/www/malachit.org/protected/views/layouts/frontend_main.php(73): CBaseController->endContent() 68 </div> 69 </div> 70 </div> 71 </div> 72 73 <?php $this->endContent(); ?> |
#18 |
+
–
/www/malachit.org/framework/web/CBaseController.php(119): require("/www/malachit.org/protected/views/layouts/frontend_main.php") 114 $data=$_data_; 115 if($_return_) 116 { 117 ob_start(); 118 ob_implicit_flush(false); 119 require($_viewFile_); 120 return ob_get_clean(); 121 } 122 else 123 require($_viewFile_); 124 } |
#19 |
+
–
/www/malachit.org/framework/web/CBaseController.php(88): CBaseController->renderInternal("/www/malachit.org/protected/views//layouts/frontend_main.php", array("<div class="col-main">
<div class="cart">
<div class="main-block..."), true) 83 { 84 $widgetCount=count($this->_widgetStack); 85 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 86 $content=$renderer->renderFile($this,$viewFile,$data,$return); 87 else 88 $content=$this->renderInternal($viewFile,$data,$return); 89 if(count($this->_widgetStack)===$widgetCount) 90 return $content; 91 else 92 { 93 $widget=end($this->_widgetStack); |
#20 |
+
–
/www/malachit.org/framework/web/CController.php(762): CBaseController->renderFile("/www/malachit.org/protected/views//layouts/frontend_main.php", array("<div class="col-main">
<div class="cart">
<div class="main-block..."), true) 757 { 758 if($this->beforeRender($view)) 759 { 760 $output=$this->renderPartial($view,$data,true); 761 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 762 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 763 764 $this->afterRender($view,$output); 765 766 $output=$this->processOutput($output); 767 |
#21 |
+
–
/www/malachit.org/protected/controllers/ContentController.php(116): CController->render("view", array(Content)) 111 throw new CHttpException(500,'Nie ma strony startowej w jezyku '.Yii::app()->language); 112 else if($model===null) 113 throw new CHttpException(500,'Brak strony startowej.'); 114 115 $this->render('view',array( 116 'model'=>$model, 117 )); 118 119 } 120 121 /** |
#22 |
+
–
/www/malachit.org/framework/web/actions/CInlineAction.php(74): ContentController->actionStartContent() 69 throw new CHttpException(400, $this->errorMessage); 70 } 71 $method->invokeArgs($controller,$params); 72 } 73 else 74 $controller->$methodName(); 75 } 76 } |
#23 |
+
–
/www/malachit.org/framework/web/CController.php(300): CInlineAction->run() 295 { 296 $priorAction=$this->_action; 297 $this->_action=$action; 298 if($this->beforeAction($action)) 299 { 300 $action->run(); 301 $this->afterAction($action); 302 } 303 $this->_action=$priorAction; 304 } 305 |
#24 |
+
–
/www/malachit.org/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 |
+
–
/www/malachit.org/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 /** |
#26 |
+
–
/www/malachit.org/framework/web/CController.php(1103): CFilter->filter(CFilterChain) 1098 */ 1099 public function filterAccessControl($filterChain) 1100 { 1101 $filter=new CAccessControlFilter; 1102 $filter->setRules($this->accessRules()); 1103 $filter->filter($filterChain); 1104 } 1105 1106 /** 1107 * Generates pagination information. 1108 * This method can be used to generate pagination information given item count |
#27 |
+
–
/www/malachit.org/framework/web/filters/CInlineFilter.php(59): CController->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 } |
#28 |
+
–
/www/malachit.org/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 |
+
–
/www/malachit.org/framework/web/CController.php(283): CFilterChain->run() 278 $this->runAction($action); 279 else 280 { 281 $priorAction=$this->_action; 282 $this->_action=$action; 283 CFilterChain::create($this,$action,$filters)->run(); 284 $this->_action=$priorAction; 285 } 286 } 287 288 /** |
#30 |
+
–
/www/malachit.org/framework/web/CController.php(257): CController->runActionWithFilters(CInlineAction, array("accessControl")) 252 { 253 if(($parent=$this->getModule())===null) 254 $parent=Yii::app(); 255 if($parent->beforeControllerAction($this,$action)) 256 { 257 $this->runActionWithFilters($action,$this->filters()); 258 $parent->afterControllerAction($this,$action); 259 } 260 } 261 else 262 $this->missingAction($actionID); |
#31 |
+
–
/www/malachit.org/framework/web/CWebApplication.php(328): CController->run("startContent") 323 { 324 list($controller,$actionID)=$ca; 325 $oldController=$this->_controller; 326 $this->_controller=$controller; 327 $controller->init(); 328 $controller->run($actionID); 329 $this->_controller=$oldController; 330 } 331 else 332 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 333 array('{route}'=>$route===''?$this->defaultController:$route))); |
#32 |
+
–
/www/malachit.org/framework/web/CWebApplication.php(121): CWebApplication->runController("content/startContent") 116 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 117 $_GET[$name]=$value; 118 } 119 else 120 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 121 $this->runController($route); 122 } 123 124 /** 125 * Registers the core application components. 126 * This method overrides the parent implementation by registering additional core components. |
#33 |
+
–
/www/malachit.org/framework/base/CApplication.php(155): CWebApplication->processRequest() 150 */ 151 public function run() 152 { 153 if($this->hasEventHandler('onBeginRequest')) 154 $this->onBeginRequest(new CEvent($this)); 155 $this->processRequest(); 156 if($this->hasEventHandler('onEndRequest')) 157 $this->onEndRequest(new CEvent($this)); 158 } 159 160 /** |
#34 |
+
–
/www/malachit.org/index.php(13): CApplication->run() 08 defined('YII_DEBUG') or define('YII_DEBUG',true); 09 // specify how many levels of call stack should be shown in each log message 10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 11 12 require_once($yii); 13 Yii::createWebApplication($config)->run(); |