/var/www/Public/scholarship/protected/models/PhAddressProvince.php(29)
17 * @return PhAddressProvince the static model class 18 */ 19 public static function model($className=__CLASS__) 20 { 21 return parent::model($className); 22 } 23 24 /** 25 * @return CDbConnection database connection 26 */ 27 public function getDbConnection() 28 { 29 return Yii::app()->db_phaddress; 30 } 31 32 /** 33 * @return string the associated database table name 34 */ 35 public function tableName() 36 { 37 return 'phaddress2.province'; 38 } 39 40 /** 41 * @return array validation rules for model attributes.
#0 |
+
–
/var/www/Public/yii/framework/db/CDbConnection.php(347): CDbConnection->open() 342 public function setActive($value) 343 { 344 if($value!=$this->_active) 345 { 346 if($value) 347 $this->open(); 348 else 349 $this->close(); 350 } 351 } 352 |
#1 |
+
–
/var/www/Public/yii/framework/db/CDbConnection.php(325): CDbConnection->setActive(true) 320 */ 321 public function init() 322 { 323 parent::init(); 324 if($this->autoConnect) 325 $this->setActive(true); 326 } 327 328 /** 329 * Returns whether the DB connection is established. 330 * @return boolean whether the DB connection is established |
#2 |
+
–
/var/www/Public/yii/framework/base/CModule.php(394): CDbConnection->init() 389 if(!isset($config['enabled']) || $config['enabled']) 390 { 391 Yii::trace("Loading \"$id\" application component",'system.CModule'); 392 unset($config['enabled']); 393 $component=Yii::createComponent($config); 394 $component->init(); 395 return $this->_components[$id]=$component; 396 } 397 } 398 } 399 |
#3 |
+
–
/var/www/Public/yii/framework/base/CModule.php(103): CModule->getComponent("db_phaddress") 098 * @return mixed the named property value 099 */ 100 public function __get($name) 101 { 102 if($this->hasComponent($name)) 103 return $this->getComponent($name); 104 else 105 return parent::__get($name); 106 } 107 108 /** |
#4 |
+
–
/var/www/Public/scholarship/protected/models/PhAddressProvince.php(29): CModule->__get("db_phaddress") 24 /** 25 * @return CDbConnection database connection 26 */ 27 public function getDbConnection() 28 { 29 return Yii::app()->db_phaddress; 30 } 31 32 /** 33 * @return string the associated database table name 34 */ |
#5 |
+
–
/var/www/Public/yii/framework/db/ar/CActiveRecord.php(672): PhAddressProvince->getDbConnection() 667 * Returns the command builder used by this AR. 668 * @return CDbCommandBuilder the command builder used by this AR 669 */ 670 public function getCommandBuilder() 671 { 672 return $this->getDbConnection()->getSchema()->getCommandBuilder(); 673 } 674 675 /** 676 * Checks whether this AR has the named attribute 677 * @param string $name attribute name |
#6 |
+
–
/var/www/Public/yii/framework/db/ar/CActiveRecord.php(1477): CActiveRecord->getCommandBuilder() 1472 * @return static[] list of active records satisfying the specified condition. An empty array is returned if none is found. 1473 */ 1474 public function findAll($condition='',$params=array()) 1475 { 1476 Yii::trace(get_class($this).'.findAll()','system.db.ar.CActiveRecord'); 1477 $criteria=$this->getCommandBuilder()->createCriteria($condition,$params); 1478 return $this->query($criteria,true); 1479 } 1480 1481 /** 1482 * Finds a single active record with the specified primary key. |
#7 |
+
–
/var/www/Public/scholarship/protected/views/report/index.php(38): CActiveRecord->findAll() 33 )); ?> 34 <?php //$employeeList=CHtml::listData(Employee::model()->findAll(),'id','fullName');?> 35 <?php //echo $form->dropDownList($model,'employeeId', $employeeList); ?> 36 <label>Province Name: </label> 37 38 <?php $provinces=CHtml::listData(PhAddressProvince::model()->findAll(),'id','name');?> 39 <?php echo $form->dropDownList($modelProvince,'name', $provinces);?> 40 <!--div class="row buttons"--> 41 <?php echo CHtml::submitButton('View',array('class'=> 'btn btn-danger')); ?> 42 <!--/div--> 43 |
#8 |
+
–
/var/www/Public/yii/framework/web/CBaseController.php(126): require("/var/www/Public/scholarship/protected/views/report/index.php") 121 $data=$_data_; 122 if($_return_) 123 { 124 ob_start(); 125 ob_implicit_flush(false); 126 require($_viewFile_); 127 return ob_get_clean(); 128 } 129 else 130 require($_viewFile_); 131 } |
#9 |
+
–
/var/www/Public/yii/framework/web/CBaseController.php(95): CBaseController->renderInternal("/var/www/Public/scholarship/protected/views/report/index.php", array("modelTracer" => Tracer, "modelProvince" => PhAddressProvince), true) 090 { 091 $widgetCount=count($this->_widgetStack); 092 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 093 $content=$renderer->renderFile($this,$viewFile,$data,$return); 094 else 095 $content=$this->renderInternal($viewFile,$data,$return); 096 if(count($this->_widgetStack)===$widgetCount) 097 return $content; 098 else 099 { 100 $widget=end($this->_widgetStack); |
#10 |
+
–
/var/www/Public/yii/framework/web/CController.php(872): CBaseController->renderFile("/var/www/Public/scholarship/protected/views/report/index.php", array("modelTracer" => Tracer, "modelProvince" => PhAddressProvince), true) 867 */ 868 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 869 { 870 if(($viewFile=$this->getViewFile($view))!==false) 871 { 872 $output=$this->renderFile($viewFile,$data,true); 873 if($processOutput) 874 $output=$this->processOutput($output); 875 if($return) 876 return $output; 877 else |
#11 |
+
–
/var/www/Public/yii/framework/web/CController.php(785): CController->renderPartial("index", array("modelTracer" => Tracer, "modelProvince" => PhAddressProvince), true) 780 */ 781 public function render($view,$data=null,$return=false) 782 { 783 if($this->beforeRender($view)) 784 { 785 $output=$this->renderPartial($view,$data,true); 786 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 787 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 788 789 $this->afterRender($view,$output); 790 |
#12 |
+
–
/var/www/Public/scholarship/protected/controllers/ReportController.php(89): CController->render("index", array("modelTracer" => Tracer, "modelProvince" => PhAddressProvince)) 84 if(isset($_POST['Tracer'])){ 85 $tracerReportId=$_POST['Tracer']['tracerReportName']; 86 $this->redirect(array('tracer/list','tracerReportId'=>$tracerReportId)); 87 } 88 89 $this->render('index', array('modelTracer'=>$modelTracer, 'modelProvince'=>$modelProvince)); 90 } 91 92 public function actionStatus() 93 { 94 $model=new Scholar; |
#13 |
+
–
/var/www/Public/yii/framework/web/actions/CInlineAction.php(49): ReportController->actionIndex() 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 } |
#14 |
+
–
/var/www/Public/yii/framework/web/CController.php(308): CInlineAction->runWithParams(array()) 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; |
#15 |
+
–
/var/www/Public/yii/framework/web/filters/CFilterChain.php(134): CController->runAction(CInlineAction) 129 $filter=$this->itemAt($this->filterIndex++); 130 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 131 $filter->filter($this); 132 } 133 else 134 $this->controller->runAction($this->action); 135 } 136 } |
#16 |
+
–
/var/www/Public/yii/framework/web/filters/CFilter.php(40): CFilterChain->run() 35 */ 36 public function filter($filterChain) 37 { 38 if($this->preFilter($filterChain)) 39 { 40 $filterChain->run(); 41 $this->postFilter($filterChain); 42 } 43 } 44 45 /** |
#17 |
+
–
/var/www/Public/yii/framework/web/CController.php(1148): CFilter->filter(CFilterChain) 1143 */ 1144 public function filterAccessControl($filterChain) 1145 { 1146 $filter=new CAccessControlFilter; 1147 $filter->setRules($this->accessRules()); 1148 $filter->filter($filterChain); 1149 } 1150 1151 /** 1152 * Returns a persistent page state value. 1153 * A page state is a variable that is persistent across POST requests of the same page. |
#18 |
+
–
/var/www/Public/yii/framework/web/filters/CInlineFilter.php(58): CController->filterAccessControl(CFilterChain) 53 * @param CFilterChain $filterChain the filter chain that the filter is on. 54 */ 55 public function filter($filterChain) 56 { 57 $method='filter'.$this->name; 58 $filterChain->controller->$method($filterChain); 59 } 60 } |
#19 |
+
–
/var/www/Public/yii/framework/web/filters/CFilterChain.php(131): CInlineFilter->filter(CFilterChain) 126 { 127 if($this->offsetExists($this->filterIndex)) 128 { 129 $filter=$this->itemAt($this->filterIndex++); 130 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 131 $filter->filter($this); 132 } 133 else 134 $this->controller->runAction($this->action); 135 } 136 } |
#20 |
+
–
/var/www/Public/yii/framework/web/CController.php(291): CFilterChain->run() 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); 292 $this->_action=$priorAction; 293 } 294 } 295 296 /** |
#21 |
+
–
/var/www/Public/yii/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array("accessControl", "postOnly + delete")) 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); |
#22 |
+
–
/var/www/Public/yii/framework/web/CWebApplication.php(282): CController->run("index") 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))); |
#23 |
+
–
/var/www/Public/yii/framework/web/CWebApplication.php(141): CWebApplication->runController("report/index") 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. |
#24 |
+
–
/var/www/Public/yii/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 /** |
#25 |
+
–
/var/www/Public/scholarship/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(); 16 17 |