/var/www/html/com.fydyyw.www/web/protected/extensions/CPub/CDB.php(94)
082 return $tempData; 083 } 084 /** 085 * 数据库句柄 086 * 087 * @param unknown $dbhandle 088 * 为空:本地配置 089 * boyang:博扬 090 * boyue:博跃 091 */ 092 private static function getDBHandle($dbhandle) { 093 if (CCheck::isEmpty ( $dbhandle )) { 094 return Yii::app ()->db; 095 } 096 if ($dbhandle == 'boyang') { 097 return Yii::app ()->db_boyang; 098 } 099 if ($dbhandle == 'boyue') { 100 return Yii::app ()->db_boyue; 101 } 102 } 103 104 /** 105 * SQL语句增删改批处理语句,即:一次执行多条SQL时,使用此方法 106 *
#0 |
+
–
/var/www/html/com.fydyyw.www/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/html/com.fydyyw.www/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/html/com.fydyyw.www/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/html/com.fydyyw.www/framework/base/CModule.php(103): CModule->getComponent("db") 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/html/com.fydyyw.www/web/protected/extensions/CPub/CDB.php(94): CModule->__get("db") 89 * boyang:博扬 90 * boyue:博跃 91 */ 92 private static function getDBHandle($dbhandle) { 93 if (CCheck::isEmpty ( $dbhandle )) { 94 return Yii::app ()->db; 95 } 96 if ($dbhandle == 'boyang') { 97 return Yii::app ()->db_boyang; 98 } 99 if ($dbhandle == 'boyue') { |
#5 |
+
–
/var/www/html/com.fydyyw.www/web/protected/extensions/CPub/CDB.php(136): CDB::getDBHandle("") 131 * 132 * @param unknown $sql 133 * @return unknown 查询对象 二维数组,如果查询的结果集记录数为0,则数组长度为0 134 */ 135 public static function queryAll($sql, $dbhandle = '') { 136 $connection = CDB::getDBHandle ( $dbhandle ); // 获取数据库链接 137 $command = $connection->createCommand ( $sql ); 138 $data = $command->queryAll (); 139 return $data; 140 } 141 |
#6 |
+
–
/var/www/html/com.fydyyw.www/web/protected/modules/portal/models/MsgSearchModel.php(345): CDB::queryAll("select * ,
(select medicaltype_name from fyd_med...") 340 { 341 $count=file_get_contents("count.txt"); //取出文件count.txt中的内容 342 } 343 $count++; 344 return array( 345 'sql'=>CDB::queryAll ( $sql ), 346 'num'=>CDB::batchSql ( [ " update fyd_medical set medical_number = '" . $count . "' where medical_id = '" . $medical_id . "' "] ) 347 ); 348 } 349 } 350 /** |
#7 |
+
–
/var/www/html/com.fydyyw.www/web/protected/modules/portal/controllers/MenuController.php(752): MsgSearchModel->doSelectmeds2("378396118DEFF93327A2A24E27C02C6E") 747 */ 748 public function actionMeds2(){ 749 750 $msgSearchModel = MsgSearchModel::model(); 751 752 $temp = $msgSearchModel->doSelectmeds2( $_GET['fid'] ); 753 754 $top = $msgSearchModel->top($_GET['fid']); //上一篇 755 756 $below = $msgSearchModel->below($_GET['fid']); //下一篇 757 |
#8 |
+
–
/var/www/html/com.fydyyw.www/framework/web/actions/CInlineAction.php(49): MenuController->actionMeds2() 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 } |
#9 |
+
–
/var/www/html/com.fydyyw.www/framework/web/CController.php(308): CInlineAction->runWithParams(array("s" => "/portal-menu-meds2.html", "fid" => "378396118DEFF93327A2A24E27C02C6E")) 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; |
#10 |
+
–
/var/www/html/com.fydyyw.www/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(); |
#11 |
+
–
/var/www/html/com.fydyyw.www/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); |
#12 |
+
–
/var/www/html/com.fydyyw.www/framework/web/CWebApplication.php(282): CController->run("meds2") 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))); |
#13 |
+
–
/var/www/html/com.fydyyw.www/framework/web/CWebApplication.php(141): CWebApplication->runController("portal/menu/meds2") 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. |
#14 |
+
–
/var/www/html/com.fydyyw.www/framework/base/CApplication.php(184): CWebApplication->processRequest() 179 public function run() 180 { 181 if($this->hasEventHandler('onBeginRequest')) 182 $this->onBeginRequest(new CEvent($this)); 183 register_shutdown_function(array($this,'end'),0,false); 184 $this->processRequest(); 185 if($this->hasEventHandler('onEndRequest')) 186 $this->onEndRequest(new CEvent($this)); 187 } 188 189 /** |
#15 |
+
–
/var/www/html/com.fydyyw.www/web/config.php(12): CApplication->run() 07 defined('YII_DEBUG') or define('YII_DEBUG',true); 08 // specify how many levels of call stack should be shown in each log message 09 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 10 11 require_once($yii); 12 Yii::createWebApplication($config)->run(); 13 // 冯涛 14 // yii::app()->session->setTimeout(604800); 15 16 |
#16 |
+
–
/var/www/html/com.fydyyw.www/web/index.php(4): include("/var/www/html/com.fydyyw.www/web/config.php") 1 <?php 2 define('ROOT_PATH', __DIR__); 3 header('Content-Type:text/html;charset=utf-8'); 4 include 'config.php'; 5 exit(); 6 ?> |