/var/www/avel-m/data/www/framework/yiilite.php(9431)
9419 { 9420 if($this->_statement==null) 9421 { 9422 try 9423 { 9424 $this->_statement=$this->getConnection()->getPdoInstance()->prepare($this->getText()); 9425 $this->_paramLog=array(); 9426 } 9427 catch(Exception $e) 9428 { 9429 Yii::log('Error in preparing SQL: '.$this->getText(),CLogger::LEVEL_ERROR,'system.db.CDbCommand'); 9430 $errorInfo=$e instanceof PDOException ? $e->errorInfo : null; 9431 throw new CDbException(Yii::t('yii','CDbCommand failed to prepare the SQL statement: {error}', 9432 array('{error}'=>$e->getMessage())),(int)$e->getCode(),$errorInfo); 9433 } 9434 } 9435 } 9436 public function cancel() 9437 { 9438 $this->_statement=null; 9439 } 9440 public function bindParam($name, &$value, $dataType=null, $length=null, $driverOptions=null) 9441 { 9442 $this->prepare(); 9443 if($dataType===null)
#0 |
+
–
/var/www/avel-m/data/www/framework/yiilite.php(9456): CDbCommand->prepare() 9451 $this->_paramLog[$name]=&$value; 9452 return $this; 9453 } 9454 public function bindValue($name, $value, $dataType=null) 9455 { 9456 $this->prepare(); 9457 if($dataType===null) 9458 $this->_statement->bindValue($name,$value,$this->_connection->getPdoType(gettype($value))); 9459 else 9460 $this->_statement->bindValue($name,$value,$dataType); 9461 $this->_paramLog[$name]=$value; |
#1 |
+
–
/var/www/avel-m/data/www/framework/db/schema/CDbCommandBuilder.php(568): CDbCommand->bindValue(":ycp26", "1") 563 { 564 foreach($values as $name=>$value) 565 { 566 if($name[0]!==':') 567 $name=':'.$name; 568 $command->bindValue($name,$value); 569 } 570 } 571 } 572 573 /** |
#2 |
+
–
/var/www/avel-m/data/www/framework/db/schema/CDbCommandBuilder.php(100): CDbCommandBuilder->bindValues(CDbCommand, array(":ycp26" => "1", ":ycp27" => 0)) 095 $sql=$this->applyGroup($sql,$criteria->group); 096 $sql=$this->applyHaving($sql,$criteria->having); 097 $sql=$this->applyOrder($sql,$criteria->order); 098 $sql=$this->applyLimit($sql,$criteria->limit,$criteria->offset); 099 $command=$this->_connection->createCommand($sql); 100 $this->bindValues($command,$criteria->params); 101 return $command; 102 } 103 104 /** 105 * Creates a COUNT(*) command for a single table. |
#3 |
+
–
/var/www/avel-m/data/www/framework/yiilite.php(8042): CDbCommandBuilder->createFindCommand(CMysqlTableSchema, CDbCriteria) 8037 $this->applyScopes($criteria); 8038 if(empty($criteria->with)) 8039 { 8040 if(!$all) 8041 $criteria->limit=1; 8042 $command=$this->getCommandBuilder()->createFindCommand($this->getTableSchema(),$criteria); 8043 return $all ? $this->populateRecords($command->queryAll(), true, $criteria->index) : $this->populateRecord($command->queryRow()); 8044 } 8045 else 8046 { 8047 $finder=$this->getActiveFinder($criteria->with); |
#4 |
+
–
/var/www/avel-m/data/www/framework/yiilite.php(8112): CActiveRecord->query(CDbCriteria, true) 8107 return $this->query($criteria); 8108 } 8109 public function findAll($condition='',$params=array()) 8110 { 8111 $criteria=$this->getCommandBuilder()->createCriteria($condition,$params); 8112 return $this->query($criteria,true); 8113 } 8114 public function findByPk($pk,$condition='',$params=array()) 8115 { 8116 $prefix=$this->getTableAlias(true).'.'; 8117 $criteria=$this->getCommandBuilder()->createPkCriteria($this->getTableSchema(),$pk,$condition,$params,$prefix); |
#5 |
+
–
/var/www/avel-m/data/www/app/models/CatalogDiscountRubrics.php(170): CActiveRecord->findAll(CDbCriteria) 165 $criteria->addCondition("(elements.model_id=$rubricsId AND elements.model_name='CatalogRubrics') OR (elements.model_id='$elementId' AND elements.model_name='CatalogElements')"); 166 $criteria->compare('t.status_on', self::STATUS_ON); 167 $criteria->addCondition('((t.date_start <= ' . time() . ' OR t.date_start IS NULL) AND (t.date_end >= ' . time() . ' OR t.date_end IS NULL))'); 168 $criteria->addInCondition('users.user_id', is_array($userId) ? $userId : [$userId]); 169 170 return CatalogDiscountRubrics::model()->findAll($criteria); 171 172 } 173 174 public function setDiscountUsersValue() 175 { |
#6 |
+
–
/var/www/avel-m/data/www/app/apps/frontend/modules/catalog/controllers/CatalogmanufacturerController.php(236): CatalogDiscountRubrics::getUserDiscountByElement(null, 6949, 0) 231 if (!$settings->options) { 232 $settings->options = 643; 233 } 234 for ($i = 0; $i < count($data['elements']); $i++) { 235 $parent = CatalogRubrics::model()->findByPk($data['elements'][$i]['parent_id']); 236 $discounts = CatalogDiscountRubrics::getUserDiscountByElement($parent->id, (int)$data['elements'][$i]['id'], 237 $user_id); 238 $price = $data['elements'][$i]['price']; 239 if (count($discounts)) { 240 $data['elements'][$i]['price_old'] = $data['elements'][$i]['price']; 241 foreach ($discounts as $discount) { |
#7 |
unknown(0): CatalogmanufacturerController->actionElement("forni-mobili")
|
#8 |
+
–
/var/www/avel-m/data/www/framework/yiilite.php(4161): ReflectionMethod->invokeArgs(CatalogmanufacturerController, array("forni-mobili")) 4156 elseif($param->isDefaultValueAvailable()) 4157 $ps[]=$param->getDefaultValue(); 4158 else 4159 return false; 4160 } 4161 $method->invokeArgs($object,$ps); 4162 return true; 4163 } 4164 } 4165 class CInlineAction extends CAction 4166 { |
#9 |
+
–
/var/www/avel-m/data/www/framework/yiilite.php(4178): CAction->runWithParamsInternal(CatalogmanufacturerController, ReflectionMethod, array("param" => "forni-mobili")) 4173 { 4174 $methodName='action'.$this->getId(); 4175 $controller=$this->getController(); 4176 $method=new ReflectionMethod($controller, $methodName); 4177 if($method->getNumberOfParameters()>0) 4178 return $this->runWithParamsInternal($controller, $method, $params); 4179 $controller->$methodName(); 4180 return true; 4181 } 4182 } 4183 class CWebUser extends CApplicationComponent implements IWebUser |
#10 |
+
–
/var/www/avel-m/data/www/framework/yiilite.php(3692): CInlineAction->runWithParams(array("param" => "forni-mobili")) 3687 { 3688 $priorAction=$this->_action; 3689 $this->_action=$action; 3690 if($this->beforeAction($action)) 3691 { 3692 if($action->runWithParams($this->getActionParams())===false) 3693 $this->invalidActionParams($action); 3694 else 3695 $this->afterAction($action); 3696 } 3697 $this->_action=$priorAction; |
#11 |
+
–
/var/www/avel-m/data/www/framework/yiilite.php(6971): CController->runAction(CInlineAction) 6966 { 6967 $filter=$this->itemAt($this->filterIndex++); 6968 $filter->filter($this); 6969 } 6970 else 6971 $this->controller->runAction($this->action); 6972 } 6973 } 6974 class CFilter extends CComponent implements IFilter 6975 { 6976 public function filter($filterChain) |
#12 |
+
–
/var/www/avel-m/data/www/framework/web/widgets/COutputCache.php(165): CFilterChain->run() 160 * @return boolean whether the filtering process should stop after this filter. Defaults to false. 161 */ 162 public function filter($filterChain) 163 { 164 if(!$this->getIsContentCached()) 165 $filterChain->run(); 166 $this->run(); 167 } 168 169 /** 170 * Marks the start of content to be cached. |
#13 |
+
–
/var/www/avel-m/data/www/framework/yiilite.php(6968): COutputCache->filter(CFilterChain) 6963 public function run() 6964 { 6965 if($this->offsetExists($this->filterIndex)) 6966 { 6967 $filter=$this->itemAt($this->filterIndex++); 6968 $filter->filter($this); 6969 } 6970 else 6971 $this->controller->runAction($this->action); 6972 } 6973 } |
#14 |
+
–
/var/www/avel-m/data/www/framework/yiilite.php(3682): CFilterChain->run() 3677 $this->runAction($action); 3678 else 3679 { 3680 $priorAction=$this->_action; 3681 $this->_action=$action; 3682 CFilterChain::create($this,$action,$filters)->run(); 3683 $this->_action=$priorAction; 3684 } 3685 } 3686 public function runAction($action) 3687 { |
#15 |
+
–
/var/www/avel-m/data/www/framework/yiilite.php(3667): CController->runActionWithFilters(CInlineAction, array(array(0 => "COutputCache", "duration" => 0, "requestTypes" => array("GET"), "varyByRoute" => true))) 3662 { 3663 if(($parent=$this->getModule())===null) 3664 $parent=Yii::app(); 3665 if($parent->beforeControllerAction($this,$action)) 3666 { 3667 $this->runActionWithFilters($action,$this->filters()); 3668 $parent->afterControllerAction($this,$action); 3669 } 3670 } 3671 else 3672 $this->missingAction($actionID); |
#16 |
+
–
/var/www/avel-m/data/www/framework/yiilite.php(1776): CController->run("element") 1771 { 1772 list($controller,$actionID)=$ca; 1773 $oldController=$this->_controller; 1774 $this->_controller=$controller; 1775 $controller->init(); 1776 $controller->run($actionID); 1777 $this->_controller=$oldController; 1778 } 1779 else 1780 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 1781 array('{route}'=>$route===''?$this->defaultController:$route))); |
#17 |
+
–
/var/www/avel-m/data/www/framework/yiilite.php(1696): CWebApplication->runController("catalog/catalogmanufacturer/element") 1691 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 1692 $_GET[$name]=$value; 1693 } 1694 else 1695 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 1696 $this->runController($route); 1697 } 1698 protected function registerCoreComponents() 1699 { 1700 parent::registerCoreComponents(); 1701 $components=array( |
#18 |
+
–
/var/www/avel-m/data/www/framework/yiilite.php(1213): CWebApplication->processRequest() 1208 public function run() 1209 { 1210 if($this->hasEventHandler('onBeginRequest')) 1211 $this->onBeginRequest(new CEvent($this)); 1212 register_shutdown_function(array($this,'end'),0,false); 1213 $this->processRequest(); 1214 if($this->hasEventHandler('onEndRequest')) 1215 $this->onEndRequest(new CEvent($this)); 1216 } 1217 public function end($status=0,$exit=true) 1218 { |
#19 |
+
–
/var/www/avel-m/data/www/avel-m.ru/index.php(6): CApplication->run() 1 <?php 2 3 require_once( __DIR__ . '/../app/config/settings.php' ); 4 require_once( __DIR__ . '/../framework/yiilite.php'); 5 6 Yii::createWebApplication( __DIR__ . '/../app/config/frontend.php' )->run(); |