/home/wapawru/domains/wapaw.ru/public_html/framework/db/schema/CDbCommandBuilder.php(831)
819 } 820 if(count($values)===1) 821 { 822 $entries=array(); 823 foreach($values[0] as $name=>$value) 824 $entries[]=$prefix.$table->columns[$name]->rawName.($value===null?' IS NULL':'='.$value); 825 return implode(' AND ',$entries); 826 } 827 828 return $this->createCompositeInCondition($table,$values,$prefix); 829 } 830 else 831 throw new CDbException(Yii::t('yii','Column name must be either a string or an array.')); 832 } 833 834 /** 835 * Generates the expression for selecting rows with specified composite key values. 836 * @param CDbTableSchema $table the table schema 837 * @param array $values list of primary key values to be selected within 838 * @param string $prefix column prefix (ended with dot) 839 * @return string the expression for selection 840 */ 841 protected function createCompositeInCondition($table,$values,$prefix) 842 { 843 $keyNames=array();
#0 |
+
–
/home/wapawru/domains/wapaw.ru/public_html/framework/db/schema/CDbCommandBuilder.php(624): CDbCommandBuilder->createInCondition(CMysqlTableSchema, null, array(7), "`t`.") 619 $prefix=$this->_schema->quoteTableName($criteria->alias).'.'; 620 if(!is_array($pk)) // single key 621 $pk=array($pk); 622 if(is_array($table->primaryKey) && !isset($pk[0]) && $pk!==array()) // single composite key 623 $pk=array($pk); 624 $condition=$this->createInCondition($table,$table->primaryKey,$pk,$prefix); 625 if($criteria->condition!='') 626 $criteria->condition=$condition.' AND ('.$criteria->condition.')'; 627 else 628 $criteria->condition=$condition; 629 |
#1 |
+
–
/home/wapawru/domains/wapaw.ru/public_html/framework/db/ar/CActiveRecord.php(1493): CDbCommandBuilder->createPkCriteria(CMysqlTableSchema, array(7), "", array(), ...) 1488 */ 1489 public function findByPk($pk,$condition='',$params=array()) 1490 { 1491 Yii::trace(get_class($this).'.findByPk()','system.db.ar.CActiveRecord'); 1492 $prefix=$this->getTableAlias(true).'.'; 1493 $criteria=$this->getCommandBuilder()->createPkCriteria($this->getTableSchema(),$pk,$condition,$params,$prefix); 1494 return $this->query($criteria); 1495 } 1496 1497 /** 1498 * Finds all active records with the specified primary keys. |
#2 |
+
–
/home/wapawru/domains/wapaw.ru/public_html/protected/controllers/PageController.php(140): CActiveRecord->findByPk(7) 135 136 public function beforeAction($a) 137 { 138 parent::beforeAction($a); 139 $action = $a->getId(); 140 $timeZone = Settings::model()->findByPk(7); 141 Yii::app()->setTimeZone($timeZone->value); 142 143 if (Yii::app()->user->isGuest && !in_array($action, array('login', 'registration', 'password_recovery', 144 'activation', 'lost_success', 'registration_success', 'Pay_CRM'))) { 145 $this->redirect(array('login')); |
#3 |
+
–
/home/wapawru/domains/wapaw.ru/public_html/framework/web/CController.php(306): PageController->beforeAction(CInlineAction) 301 */ 302 public function runAction($action) 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); |
#4 |
+
–
/home/wapawru/domains/wapaw.ru/public_html/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(); |
#5 |
+
–
/home/wapawru/domains/wapaw.ru/public_html/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array()) 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); |
#6 |
+
–
/home/wapawru/domains/wapaw.ru/public_html/framework/web/CWebApplication.php(282): CController->run("") 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))); |
#7 |
+
–
/home/wapawru/domains/wapaw.ru/public_html/framework/web/CWebApplication.php(141): CWebApplication->runController("") 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. |
#8 |
+
–
/home/wapawru/domains/wapaw.ru/public_html/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 /** |
#9 |
+
–
/home/wapawru/domains/wapaw.ru/public_html/index.php(44): CApplication->run() 39 require_once(__DIR__ . DIRECTORY_SEPARATOR . 'protected' . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'extended' . DIRECTORY_SEPARATOR . 'web' . DIRECTORY_SEPARATOR . 'MyCWebApplication.php'); 40 41 return self::createApplication('MyCWebApplication', $config); 42 } 43 } 44 Yii::createWebApplication($config)->run(); |