/domains/komtek.pl/public_html/asoft/yii/framework/db/schema/CDbCriteria.php(280)
268 * @param string $column the column name (or a valid SQL expression) 269 * @param array $values list of values that the column value should be in 270 * @param string $operator the operator used to concatenate the new condition with the existing one. 271 * Defaults to 'AND'. 272 * @return CDbCriteria the criteria object itself 273 */ 274 public function addInCondition($column,$values,$operator='AND') 275 { 276 if(($n=count($values))<1) 277 $condition='0=1'; // 0=1 is used because in MSSQL value alone can't be used in WHERE 278 elseif($n===1) 279 { 280 $value=reset($values); 281 if($value===null) 282 $condition=$column.' IS NULL'; 283 else 284 { 285 $condition=$column.'='.self::PARAM_PREFIX.self::$paramCount; 286 $this->params[self::PARAM_PREFIX.self::$paramCount++]=$value; 287 } 288 } 289 else 290 { 291 $params=array(); 292 foreach($values as $value)
#0 |
+
–
/domains/komtek.pl/public_html/asoft/yii/framework/db/schema/CDbCriteria.php(280): reset(false) 275 { 276 if(($n=count($values))<1) 277 $condition='0=1'; // 0=1 is used because in MSSQL value alone can't be used in WHERE 278 elseif($n===1) 279 { 280 $value=reset($values); 281 if($value===null) 282 $condition=$column.' IS NULL'; 283 else 284 { 285 $condition=$column.'='.self::PARAM_PREFIX.self::$paramCount; |
#1 |
+
–
/domains/komtek.pl/public_html/asoft/protected/components/products.php(100): CDbCriteria->addInCondition("t.ID_SGRA", false) 095 } 096 097 098 // else { 099 if ($sgra) { 100 $dataProvider->SetCriteria($dataProvider->getCriteria()->addInCondition('t.ID_SGRA',natSgra::sgraWithSub($sgra))); 101 } 102 if (!empty($price1)) { 103 $dataProvider->SetCriteria($dataProvider->getCriteria()->addSearchCondition('t.'.aso_pokaz_ceny(),$price1,false,'AND','>=')); 104 } 105 if (!empty($price2)) { |
#2 |
+
–
/domains/komtek.pl/public_html/asoft/yii/framework/web/CBaseController.php(173): products->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 178 /** |
#3 |
+
–
/domains/komtek.pl/public_html/asoft/custom/models/comView.php(116): CBaseController->widget("application.components.products") 111 // 'asObjectClass'=>'natStow', 112 // )); 113 // $ret=$ret || $ret1; 114 } 115 if (!$ret) 116 self::controller()->widget('application.components.products'); 117 } 118 119 static protected function esklepLayout($content,$params) { 120 $s=aso_params('sklep'); 121 $lite=(self::$layout==='lite'); |
#4 |
+
–
/domains/komtek.pl/public_html/asoft/protected/models/absComView.php(299): comView::esklepIndex(null) 294 295 static protected function index($params) { 296 if (Yii::$mainModule) { 297 // if (aso_homePage()) self::controller()->pageTitle='Home'; 298 $m=Yii::$mainModule.'Index'; 299 static::$m($params); 300 return; 301 } 302 } 303 304 static protected function layout($content,$params) { |
#5 |
+
–
/domains/komtek.pl/public_html/asoft/protected/models/absComView.php(429): absComView::index(null) 424 if($return) return $ret; 425 else echo $ret; 426 } 427 static public function renderPartial($view,$params=null,$return=false) { 428 ob_start(); 429 static::$view($params); 430 $ret=ob_get_clean(); 431 if($return) return $ret; 432 else echo $ret; 433 } 434 static public function renderText($text,$params=null,$return=false) |
#6 |
+
–
/domains/komtek.pl/public_html/asoft/protected/models/absComView.php(420): absComView::renderPartial("index", null, true) 415 echo CHtml::tag('h1',array(),aso_tr('Payment types')); 416 } 417 418 static public function render($view,$params=null,$return=false) 419 { 420 $ret=self::renderPartial($view,$params,true); 421 $c=self::className(); 422 $ret=$c::layout($ret,$params); 423 $ret=self::controller()->processOutput($ret); 424 if($return) return $ret; 425 else echo $ret; |
#7 |
+
–
/domains/komtek.pl/public_html/asoft/protected/controllers/SiteController.php(25): absComView::render("index") 20 if (empty($actionID)) $actionID='index'; 21 $this->setAction(new CInlineAction($this,$actionID)); 22 $m='action'.$actionID; 23 // var_dump($this->getRoute()); 24 if (method_exists($this,$m)) $this->$m(); 25 else comView::render($actionID); 26 } 27 } |
#8 |
+
–
/domains/komtek.pl/public_html/asoft/yii/framework/web/CWebApplication.php(284): SiteController->run("index") 279 { 280 list($controller,$actionID)=$ca; 281 $oldController=$this->_controller; 282 $this->_controller=$controller; 283 $controller->init(); 284 $controller->run($actionID); 285 $this->_controller=$oldController; 286 } 287 else 288 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 289 array('{route}'=>$route===''?$this->defaultController:$route))); |
#9 |
+
–
/domains/komtek.pl/public_html/asoft/yii/framework/web/CWebApplication.php(143): CWebApplication->runController("/site/index") 138 } 139 else 140 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 141 // var_dump($route); 142 // Yii::app()->end(); 143 $this->runController($route); 144 } 145 146 /** 147 * Registers the core application components. 148 * This method overrides the parent implementation by registering additional core components. |
#10 |
+
–
/domains/komtek.pl/public_html/asoft/protected/components/WebApplication.php(34): CWebApplication->processRequest() 29 $suzy->setController($c); 30 $suzy->doorway(Yii::app()->homeUrl); 31 $text=ob_get_clean(); 32 comView::setController($c); 33 comView::renderText($text); 34 } else parent::processRequest(); 35 } 36 } |
#11 |
+
–
/domains/komtek.pl/public_html/asoft/yii/framework/base/CApplication.php(180): WebApplication->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 /** |
#12 |
+
–
/domains/komtek.pl/public_html/asoft/index.php(5): CApplication->run() 1 <?php 2 //var_dump($_SERVER); 3 //exit(); 4 require_once(dirname(__FILE__).'/protected/components/yii.php'); 5 Yii::createWebApplication('esklep')->run(); |