/home/tomaszswiont/ftp/framework/db/CDbCommand.php(516)
504 return $result; 505 } 506 catch(Exception $e) 507 { 508 if($this->_connection->enableProfiling) 509 Yii::endProfile('system.db.CDbCommand.query('.$this->getText().$par.')','system.db.CDbCommand.query'); 510 $errorInfo = $e instanceof PDOException ? $e->errorInfo : null; 511 $message = $e->getMessage(); 512 Yii::log(Yii::t('yii','CDbCommand::{method}() failed: {error}. The SQL statement executed was: {sql}.', 513 array('{method}'=>$method, '{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand'); 514 if(YII_DEBUG) 515 $message .= '. The SQL statement executed was: '.$this->getText().$par; 516 throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}', 517 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo); 518 } 519 } 520 521 /** 522 * Builds a SQL SELECT statement from the given query specification. 523 * @param array $query the query specification in name-value pairs. The following 524 * query options are supported: {@link select}, {@link distinct}, {@link from}, 525 * {@link where}, {@link join}, {@link group}, {@link having}, {@link order}, 526 * {@link limit}, {@link offset} and {@link union}. 527 * @return string the SQL statement 528 * @since 1.1.6
#0 |
+
–
/home/tomaszswiont/ftp/framework/db/CDbCommand.php(411): CDbCommand->queryInternal("fetchColumn", 0, array()) 406 * @return mixed the value of the first column in the first row of the query result. False is returned if there is no value. 407 * @throws CException execution failed 408 */ 409 public function queryScalar($params=array()) 410 { 411 $result=$this->queryInternal('fetchColumn',0,$params); 412 if(is_resource($result) && get_resource_type($result)==='stream') 413 return stream_get_contents($result); 414 else 415 return $result; 416 } |
#1 |
+
–
/home/tomaszswiont/ftp/framework/db/ar/CActiveRecord.php(1541): CDbCommand->queryScalar() 1536 $builder=$this->getCommandBuilder(); 1537 $criteria=$builder->createCriteria($condition,$params); 1538 $this->applyScopes($criteria); 1539 1540 if(empty($criteria->with)) 1541 return $builder->createCountCommand($this->getTableSchema(),$criteria)->queryScalar(); 1542 else 1543 { 1544 $finder=new CActiveFinder($this,$criteria->with); 1545 return $finder->count($criteria); 1546 } |
#2 |
+
–
/home/tomaszswiont/ftp/framework/web/CActiveDataProvider.php(176): CActiveRecord->count(CDbCriteria) 171 protected function calculateTotalItemCount() 172 { 173 $baseCriteria=$this->model->getDbCriteria(false); 174 if($baseCriteria!==null) 175 $baseCriteria=clone $baseCriteria; 176 $count=$this->model->count($this->getCriteria()); 177 $this->model->setDbCriteria($baseCriteria); 178 return $count; 179 } 180 } |
#3 |
+
–
/home/tomaszswiont/ftp/framework/web/CDataProvider.php(184): CActiveDataProvider->calculateTotalItemCount() 179 * @return integer total number of possible data items. 180 */ 181 public function getTotalItemCount($refresh=false) 182 { 183 if($this->_totalItemCount===null || $refresh) 184 $this->_totalItemCount=$this->calculateTotalItemCount(); 185 return $this->_totalItemCount; 186 } 187 188 /** 189 * Sets the total number of data items. |
#4 |
+
–
/home/tomaszswiont/ftp/protected/components/MultilingualActiveRecord.php(199): CDataProvider->getTotalItemCount(true) 194 protected function fetchData() 195 { 196 $criteria=clone $this->getCriteria(); 197 if(($pagination=$this->getPagination())!==false) 198 { 199 $pagination->setItemCount($this->getTotalItemCount(true)); 200 $pagination->applyLimit($criteria); 201 } 202 if(($sort=$this->getSort())!==false) 203 $sort->applyOrder($criteria); 204 |
#5 |
+
–
/home/tomaszswiont/ftp/framework/web/CDataProvider.php(128): MultilingualActiveDataProvider->fetchData() 123 * @return array the list of data items currently available in this data provider. 124 */ 125 public function getData($refresh=false) 126 { 127 if($this->_data===null || $refresh) 128 $this->_data=$this->fetchData(); 129 return $this->_data; 130 } 131 132 /** 133 * Sets the data items for this provider. |
#6 |
+
–
/home/tomaszswiont/ftp/themes/marpol/views/news/news.php(2): CDataProvider->getData() 1 <?php 2 $dataTmp = $dataProvider->getData(); 3 $data = $dataTmp[0]; 4 ?> 5 <p class="head"> 6 <?php 7 if(Yii::app()->language == 'pl'){ |
#7 |
+
–
/home/tomaszswiont/ftp/framework/web/CBaseController.php(119): require("/home/tomaszswiont/ftp/themes/marpol/views/news/news.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 } |
#8 |
+
–
/home/tomaszswiont/ftp/framework/web/CBaseController.php(88): CBaseController->renderInternal("/home/tomaszswiont/ftp/themes/marpol/views/news/news.php", array("dataProvider" => MultilingualActiveDataProvider), 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); |
#9 |
+
–
/home/tomaszswiont/ftp/framework/web/CController.php(866): CBaseController->renderFile("/home/tomaszswiont/ftp/themes/marpol/views/news/news.php", array("dataProvider" => MultilingualActiveDataProvider), true) 861 */ 862 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 863 { 864 if(($viewFile=$this->getViewFile($view))!==false) 865 { 866 $output=$this->renderFile($viewFile,$data,true); 867 if($processOutput) 868 $output=$this->processOutput($output); 869 if($return) 870 return $output; 871 else |
#10 |
+
–
/home/tomaszswiont/ftp/framework/web/CController.php(779): CController->renderPartial("news", array("dataProvider" => MultilingualActiveDataProvider), true) 774 */ 775 public function render($view,$data=null,$return=false) 776 { 777 if($this->beforeRender($view)) 778 { 779 $output=$this->renderPartial($view,$data,true); 780 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 781 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 782 783 $this->afterRender($view,$output); 784 |
#11 |
+
–
/home/tomaszswiont/ftp/protected/controllers/NewsController.php(215): CController->render("news", array("dataProvider" => MultilingualActiveDataProvider)) 210 'criteria' => array( 211 'condition' => 'id='.$id) 212 )); 213 $this->render('news', array( 214 'dataProvider' => $dataProvider, 215 )); 216 } 217 218 public function actionLoad(){ 219 if(isset($_POST['page']) ){ 220 $limit = 3 + ($_POST['page']-1)*5; |
#12 |
+
–
/home/tomaszswiont/ftp/framework/web/actions/CInlineAction.php(50): NewsController->actionId() 45 $controller=$this->getController(); 46 $method=new ReflectionMethod($controller, $methodName); 47 if($method->getNumberOfParameters()>0) 48 return $this->runWithParamsInternal($controller, $method, $params); 49 else 50 return $controller->$methodName(); 51 } 52 53 } |
#13 |
+
–
/home/tomaszswiont/ftp/framework/web/CController.php(300): CInlineAction->runWithParams(array("lang" => "pl", "kontakt" => "")) 295 { 296 $priorAction=$this->_action; 297 $this->_action=$action; 298 if($this->beforeAction($action)) 299 { 300 if($action->runWithParams($this->getActionParams())===false) 301 $this->invalidActionParams($action); 302 else 303 $this->afterAction($action); 304 } 305 $this->_action=$priorAction; |
#14 |
+
–
/home/tomaszswiont/ftp/framework/web/filters/CFilterChain.php(134): CController->runAction(CInlineAction) 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 } |
#15 |
+
–
/home/tomaszswiont/ftp/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 /** |
#16 |
+
–
/home/tomaszswiont/ftp/framework/web/CController.php(1144): CFilter->filter(CFilterChain) 1139 */ 1140 public function filterAccessControl($filterChain) 1141 { 1142 $filter=new CAccessControlFilter; 1143 $filter->setRules($this->accessRules()); 1144 $filter->filter($filterChain); 1145 } 1146 1147 /** 1148 * Generates pagination information. 1149 * This method can be used to generate pagination information given item count |
#17 |
+
–
/home/tomaszswiont/ftp/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 } |
#18 |
+
–
/home/tomaszswiont/ftp/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 } |
#19 |
+
–
/home/tomaszswiont/ftp/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 /** |
#20 |
+
–
/home/tomaszswiont/ftp/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); |
#21 |
+
–
/home/tomaszswiont/ftp/framework/web/CWebApplication.php(277): CController->run("id") 272 { 273 list($controller,$actionID)=$ca; 274 $oldController=$this->_controller; 275 $this->_controller=$controller; 276 $controller->init(); 277 $controller->run($actionID); 278 $this->_controller=$oldController; 279 } 280 else 281 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 282 array('{route}'=>$route===''?$this->defaultController:$route))); |
#22 |
+
–
/home/tomaszswiont/ftp/framework/web/CWebApplication.php(136): CWebApplication->runController("news/id/kontakt") 131 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 132 $_GET[$name]=$value; 133 } 134 else 135 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 136 $this->runController($route); 137 } 138 139 /** 140 * Registers the core application components. 141 * This method overrides the parent implementation by registering additional core components. |
#23 |
+
–
/home/tomaszswiont/ftp/framework/base/CApplication.php(158): CWebApplication->processRequest() 153 */ 154 public function run() 155 { 156 if($this->hasEventHandler('onBeginRequest')) 157 $this->onBeginRequest(new CEvent($this)); 158 $this->processRequest(); 159 if($this->hasEventHandler('onEndRequest')) 160 $this->onEndRequest(new CEvent($this)); 161 } 162 163 /** |
#24 |
+
–
/home/tomaszswiont/ftp/index.php(7): CApplication->run() 2 $yii=dirname(__FILE__).'/framework/yii.php'; 3 $config=dirname(__FILE__).'/protected/config/main.php'; 4 defined('YII_DEBUG') or define('YII_DEBUG',true); 5 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 6 require_once($yii); 7 Yii::createWebApplication($config)->run(); 8 ?> |