/home/beraukab/public_html/dpmptsp/framework/db/schema/CDbCommandBuilder.php(828)
816 } 817 if(count($values)===1) 818 { 819 $entries=array(); 820 foreach($values[0] as $name=>$value) 821 $entries[]=$prefix.$table->columns[$name]->rawName.($value===null?' IS NULL':'='.$value); 822 return implode(' AND ',$entries); 823 } 824 825 return $this->createCompositeInCondition($table,$values,$prefix); 826 } 827 else 828 throw new CDbException(Yii::t('yii','Column name must be either a string or an array.')); 829 } 830 831 /** 832 * Generates the expression for selecting rows with specified composite key values. 833 * @param CDbTableSchema $table the table schema 834 * @param array $values list of primary key values to be selected within 835 * @param string $prefix column prefix (ended with dot) 836 * @return string the expression for selection 837 */ 838 protected function createCompositeInCondition($table,$values,$prefix) 839 { 840 $keyNames=array();
#0 |
+
–
/home/beraukab/public_html/dpmptsp/framework/db/schema/CDbCommandBuilder.php(621): CDbCommandBuilder->createInCondition(CMysqlTableSchema, null, array("2"), "`t`.") 616 $prefix=$this->_schema->quoteTableName($criteria->alias).'.'; 617 if(!is_array($pk)) // single key 618 $pk=array($pk); 619 if(is_array($table->primaryKey) && !isset($pk[0]) && $pk!==array()) // single composite key 620 $pk=array($pk); 621 $condition=$this->createInCondition($table,$table->primaryKey,$pk,$prefix); 622 if($criteria->condition!='') 623 $criteria->condition=$condition.' AND ('.$criteria->condition.')'; 624 else 625 $criteria->condition=$condition; 626 |
#1 |
+
–
/home/beraukab/public_html/dpmptsp/framework/db/ar/CActiveRecord.php(1485): CDbCommandBuilder->createPkCriteria(CMysqlTableSchema, "2", "", array(), ...) 1480 */ 1481 public function findByPk($pk,$condition='',$params=array()) 1482 { 1483 Yii::trace(get_class($this).'.findByPk()','system.db.ar.CActiveRecord'); 1484 $prefix=$this->getTableAlias(true).'.'; 1485 $criteria=$this->getCommandBuilder()->createPkCriteria($this->getTableSchema(),$pk,$condition,$params,$prefix); 1486 return $this->query($criteria); 1487 } 1488 1489 /** 1490 * Finds all active records with the specified primary keys. |
#2 |
+
–
/home/beraukab/public_html/dpmptsp/protected/controllers/WebController.php(551): CActiveRecord->findByPk("2") 546 } 547 548 public function actionDetail() 549 { 550 $id = Yii::app()->request->getParam('id'); 551 $model_kontent = WebKontent::model()->findByPk($id); 552 $this->render('detail', array('model_kontent' =>$model_kontent)); 553 } 554 555 public function actionsimpanpollingv2() 556 { |
#3 |
+
–
/home/beraukab/public_html/dpmptsp/framework/web/actions/CInlineAction.php(49): WebController->actionDetail() 44 $controller=$this->getController(); 45 $method=new ReflectionMethod($controller, $methodName); 46 if($method->getNumberOfParameters()>0) 47 return $this->runWithParamsInternal($controller, $method, $params); 48 else 49 return $controller->$methodName(); 50 } 51 52 } |
#4 |
+
–
/home/beraukab/public_html/dpmptsp/framework/web/CController.php(308): CInlineAction->runWithParams(array("/dpmptsp/web/detail/2/bupati_beri_penghargaan_guru_3t" => "", "dummy" => "bupati_beri_penghargaan_guru_3t", "id" => "2")) 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; |
#5 |
+
–
/home/beraukab/public_html/dpmptsp/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(); |
#6 |
+
–
/home/beraukab/public_html/dpmptsp/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); |
#7 |
+
–
/home/beraukab/public_html/dpmptsp/framework/web/CWebApplication.php(282): CController->run("detail") 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))); |
#8 |
+
–
/home/beraukab/public_html/dpmptsp/framework/web/CWebApplication.php(141): CWebApplication->runController("web/detail/id/2") 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. |
#9 |
+
–
/home/beraukab/public_html/dpmptsp/framework/base/CApplication.php(180): CWebApplication->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 /** |
#10 |
+
–
/home/beraukab/public_html/dpmptsp/index.php(15): CApplication->run() 10 defined('YII_DEBUG') or define('YII_DEBUG',true); 11 // specify how many levels of call stack should be shown in each log message 12 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 13 14 require_once($yii); 15 Yii::createWebApplication($config)->run(); |