/var/www/ishooter/data/framework/db/ar/CActiveRecord.php(162)
150 * This method is overridden so that AR attributes can be accessed like properties. 151 * @param string $name property name 152 * @param mixed $value property value 153 * @throws CException 154 */ 155 public function __set($name,$value) 156 { 157 if($this->setAttribute($name,$value)===false) 158 { 159 if(isset($this->getMetaData()->relations[$name])) 160 $this->_related[$name]=$value; 161 else 162 parent::__set($name,$value); 163 } 164 } 165 166 /** 167 * Checks if a property value is null. 168 * This method overrides the parent implementation by checking 169 * if the named attribute is null or not. 170 * @param string $name the property name or the event name 171 * @return boolean whether the property value is null 172 */ 173 public function __isset($name) 174 {
#0 |
+
–
/var/www/ishooter/data/framework/db/ar/CActiveRecord.php(162): CComponent->__set("sale_on_yandex_fbsholo", null) 157 if($this->setAttribute($name,$value)===false) 158 { 159 if(isset($this->getMetaData()->relations[$name])) 160 $this->_related[$name]=$value; 161 else 162 parent::__set($name,$value); 163 } 164 } 165 166 /** 167 * Checks if a property value is null. |
#1 |
+
–
/var/www/ishooter/data/protected/modules/store/models/StoreProduct.php(4475): CActiveRecord->__set("sale_on_yandex_fbsholo", null) 4470 { 4471 if (isset($this->marketplaceAttributes)) { 4472 $defaultMarketplace = StoreProductMarketplace::model()->findByAttributes(['object_id' => $this->id]); 4473 4474 foreach($this->marketplaceAttributes as $attr) 4475 $this->$attr = $defaultMarketplace ? $defaultMarketplace->$attr : null;//$this->$attr; 4476 } 4477 } 4478 4479 public function syncExternalSource() 4480 { |
#2 |
+
–
/var/www/ishooter/data/protected/modules/store/models/StoreProduct.php(4286): StoreProduct->fixMarketplaceFields() 4281 4282 protected function afterFind() 4283 { 4284 parent::afterFind(); 4285 4286 $this->fixMarketplaceFields(); 4287 4288 $this->old_attributes = $this->attributes; 4289 $this->old_manufacturer_id = $this->manufacturer_id; 4290 //$this->old_is_active = $this->is_active && $this->isAvailable; 4291 $this->old_is_active_and_available = $this->is_active && $this->isAvailable; |
#3 |
+
–
/var/www/ishooter/data/framework/db/ar/CActiveRecord.php(1058): StoreProduct->afterFind() 1053 * Calls {@link afterFind}. 1054 * This method is internally used. 1055 */ 1056 public function afterFindInternal() 1057 { 1058 $this->afterFind(); 1059 } 1060 1061 /** 1062 * Inserts a row into the table based on this active record attributes. 1063 * If the table's primary key is auto-incremental and is null before insertion, |
#4 |
+
–
/var/www/ishooter/data/framework/db/ar/CActiveFinder.php(776): CActiveRecord->afterFindInternal() 771 * Calls {@link CActiveRecord::afterFind} of all the records. 772 */ 773 public function afterFind() 774 { 775 foreach($this->records as $record) 776 $record->afterFindInternal(); 777 foreach($this->children as $child) 778 $child->afterFind(); 779 780 $this->children = null; 781 } |
#5 |
+
–
/var/www/ishooter/data/framework/db/ar/CActiveFinder.php(69): CJoinElement->afterFind() 64 $this->_joinTree->tableAlias=$criteria->alias; 65 $this->_joinTree->rawTableAlias=$this->_builder->getSchema()->quoteTableName($criteria->alias); 66 } 67 68 $this->_joinTree->find($criteria); 69 $this->_joinTree->afterFind(); 70 71 if($all) 72 { 73 $result = array_values($this->_joinTree->records); 74 if ($criteria->index!==null) |
#6 |
+
–
/var/www/ishooter/data/framework/db/ar/CActiveRecord.php(1364): CActiveFinder->query(CDbCriteria, false) 1359 return $all ? $this->populateRecords($command->queryAll(), true, $criteria->index) : $this->populateRecord($command->queryRow()); 1360 } 1361 else 1362 { 1363 $finder=$this->getActiveFinder($criteria->with); 1364 return $finder->query($criteria,$all); 1365 } 1366 } 1367 1368 /** 1369 * Applies the query scopes to the given criteria. |
#7 |
+
–
/var/www/ishooter/data/framework/db/ar/CActiveRecord.php(1464): CActiveRecord->query(CDbCriteria) 1459 */ 1460 public function find($condition='',$params=array()) 1461 { 1462 Yii::trace(get_class($this).'.find()','system.db.ar.CActiveRecord'); 1463 $criteria=$this->getCommandBuilder()->createCriteria($condition,$params); 1464 return $this->query($criteria); 1465 } 1466 1467 /** 1468 * Finds all active records satisfying the specified condition. 1469 * See {@link find()} for detailed explanation about $condition and $params. |
#8 |
+
–
/var/www/ishooter/data/protected/modules/store/controllers/FrontProductController.php(241): CActiveRecord->find() 236 $this->activeProduct = false; 237 238 $this->model = StoreProduct::model() 239 ->active()->initialized()->activeCategories() 240 ->withUrl($url) 241 ->find(); 242 243 if($this->model) 244 { 245 $this->activeProduct = true; 246 $this->model->syncExternalSource(); |
#9 |
+
–
/var/www/ishooter/data/protected/modules/store/controllers/FrontProductController.php(16): FrontProductController->_loadModel("zamochek-s-trosom-ced-20140930105808") 11 */ 12 public function actionView($url) 13 { 14 //xhprof_enable(XHPROF_FLAGS_CPU + XHPROF_FLAGS_MEMORY); 15 16 $this->_loadModel($url); 17 18 $view = $this->setDesign($this->model, 'view'); 19 20 $this->render($view, [ 21 'model' => $this->model, |
#10 |
unknown(0): FrontProductController->actionView("zamochek-s-trosom-ced-20140930105808")
|
#11 |
+
–
/var/www/ishooter/data/framework/web/actions/CAction.php(115): ReflectionMethod->invokeArgs(FrontProductController, array("zamochek-s-trosom-ced-20140930105808")) 110 elseif($param->isDefaultValueAvailable()) 111 $ps[]=$param->getDefaultValue(); 112 else 113 return false; 114 } 115 $method->invokeArgs($object,$ps); 116 return true; 117 } 118 } |
#12 |
+
–
/var/www/ishooter/data/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(FrontProductController, ReflectionMethod, array("url" => "zamochek-s-trosom-ced-20140930105808")) 42 { 43 $methodName='action'.$this->getId(); 44 $controller=$this->getController(); 45 $method=new ReflectionMethod($controller, $methodName); 46 if($method->getNumberOfParameters()>0) 47 return $this->runWithParamsInternal($controller, $method, $params); 48 49 $controller->$methodName(); 50 return true; 51 } 52 } |
#13 |
+
–
/var/www/ishooter/data/framework/web/CController.php(308): CInlineAction->runWithParams(array("url" => "zamochek-s-trosom-ced-20140930105808")) 303 { 304 $priorAction=$this->_action; 305 $this->_action=$action; 306 if($this->beforeAction($action)) 307 { 308 if($action->runWithParams($this->getActionParams())===false) 309 $this->invalidActionParams($action); 310 else 311 $this->afterAction($action); 312 } 313 $this->_action=$priorAction; |
#14 |
+
–
/var/www/ishooter/data/framework/web/CController.php(286): CController->runAction(CInlineAction) 281 * @see runAction 282 */ 283 public function runActionWithFilters($action,$filters) 284 { 285 if(empty($filters)) 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); |
#15 |
+
–
/var/www/ishooter/data/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, null) 260 { 261 if(($parent=$this->getModule())===null) 262 $parent=Yii::app(); 263 if($parent->beforeControllerAction($this,$action)) 264 { 265 $this->runActionWithFilters($action,$this->filters()); 266 $parent->afterControllerAction($this,$action); 267 } 268 } 269 else 270 $this->missingAction($actionID); |
#16 |
+
–
/var/www/ishooter/data/framework/web/CWebApplication.php(282): CController->run("view") 277 { 278 list($controller,$actionID)=$ca; 279 $oldController=$this->_controller; 280 $this->_controller=$controller; 281 $controller->init(); 282 $controller->run($actionID); 283 $this->_controller=$oldController; 284 } 285 else 286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 287 array('{route}'=>$route===''?$this->defaultController:$route))); |
#17 |
+
–
/var/www/ishooter/data/framework/web/CWebApplication.php(141): CWebApplication->runController("store/frontProduct/view") 136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 137 $_GET[$name]=$value; 138 } 139 else 140 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 141 $this->runController($route); 142 } 143 144 /** 145 * Registers the core application components. 146 * This method overrides the parent implementation by registering additional core components. |
#18 |
+
–
/var/www/ishooter/data/framework/base/CApplication.php(185): CWebApplication->processRequest() 180 public function run() 181 { 182 if($this->hasEventHandler('onBeginRequest')) 183 $this->onBeginRequest(new CEvent($this)); 184 register_shutdown_function(array($this,'end'),0,false); 185 $this->processRequest(); 186 if($this->hasEventHandler('onEndRequest')) 187 $this->onEndRequest(new CEvent($this)); 188 } 189 190 /** |
#19 |
+
–
/var/www/ishooter/data/www/ishooter.ru/index.php(18): CApplication->run() 13 14 require $yii; 15 require '../../protected/components/SWebApplication.php'; 16 17 // Create application 18 Yii::createApplication('SWebApplication', $config)->run(); |