/data/travel_from_112_124_34_134/travel/front/protected/models/Goods.php(19)
07 * Returns the static model of the specified AR class. 08 * @param string $className active record class name. 09 * @return Content the static model class 10 */ 11 public static function model($className=__Class__) { 12 return parent::model($className); 13 } 14 15 /** 16 * @return string the associated database table name 17 */ 18 public function tableName() { 19 return Yii::app()->dbs->tablePrefix.'goods'; 20 } 21 22 /** 23 * @description 根据一个或多个id得到商品的详细信息 24 * @parameter array $id 25 * @return array 26 */ 27 public function getGoodsInfoById($id) { 28 if(empty($id)) { 29 return; 30 } 31 $s_id = implode(',', $id);
#0 |
+
–
/data/travel_from_112_124_34_134/travel/framework/db/CDbConnection.php(331): CDbConnection->open() 326 public function setActive($value) 327 { 328 if($value!=$this->_active) 329 { 330 if($value) 331 $this->open(); 332 else 333 $this->close(); 334 } 335 } 336 |
#1 |
+
–
/data/travel_from_112_124_34_134/travel/framework/db/CDbConnection.php(309): CDbConnection->setActive(true) 304 */ 305 public function init() 306 { 307 parent::init(); 308 if($this->autoConnect) 309 $this->setActive(true); 310 } 311 312 /** 313 * Returns whether the DB connection is established. 314 * @return boolean whether the DB connection is established |
#2 |
+
–
/data/travel_from_112_124_34_134/travel/framework/base/CModule.php(388): CDbConnection->init() 383 if(!isset($config['enabled']) || $config['enabled']) 384 { 385 Yii::trace("Loading \"$id\" application component",'system.CModule'); 386 unset($config['enabled']); 387 $component=Yii::createComponent($config); 388 $component->init(); 389 return $this->_components[$id]=$component; 390 } 391 } 392 } 393 |
#3 |
+
–
/data/travel_from_112_124_34_134/travel/framework/base/CModule.php(104): CModule->getComponent("dbs") 099 * @return mixed the named property value 100 */ 101 public function __get($name) 102 { 103 if($this->hasComponent($name)) 104 return $this->getComponent($name); 105 else 106 return parent::__get($name); 107 } 108 109 /** |
#4 |
+
–
/data/travel_from_112_124_34_134/travel/front/protected/models/Goods.php(19): CModule->__get("dbs") 14 15 /** 16 * @return string the associated database table name 17 */ 18 public function tableName() { 19 return Yii::app()->dbs->tablePrefix.'goods'; 20 } 21 22 /** 23 * @description 根据一个或多个id得到商品的详细信息 24 * @parameter array $id |
#5 |
+
–
/data/travel_from_112_124_34_134/travel/framework/db/ar/CActiveRecord.php(2262): Goods->tableName() 2257 */ 2258 public function __construct($model) 2259 { 2260 $this->_model=$model; 2261 2262 $tableName=$model->tableName(); 2263 if(($table=$model->getDbConnection()->getSchema()->getTable($tableName))===null) 2264 throw new CDbException(Yii::t('yii','The table "{table}" for active record class "{class}" cannot be found in the database.', 2265 array('{class}'=>get_class($model),'{table}'=>$tableName))); 2266 if($table->primaryKey===null) 2267 { |
#6 |
+
–
/data/travel_from_112_124_34_134/travel/framework/db/ar/CActiveRecord.php(379): CActiveRecordMetaData->__construct(Goods) 374 if(isset(self::$_models[$className])) 375 return self::$_models[$className]; 376 else 377 { 378 $model=self::$_models[$className]=new $className(null); 379 $model->_md=new CActiveRecordMetaData($model); 380 $model->attachBehaviors($model->behaviors()); 381 return $model; 382 } 383 } 384 |
#7 |
+
–
/data/travel_from_112_124_34_134/travel/front/protected/models/Goods.php(12): CActiveRecord::model("Goods") 07 * Returns the static model of the specified AR class. 08 * @param string $className active record class name. 09 * @return Content the static model class 10 */ 11 public static function model($className=__Class__) { 12 return parent::model($className); 13 } 14 15 /** 16 * @return string the associated database table name 17 */ |
#8 |
+
–
/data/travel_from_112_124_34_134/travel/front/protected/models/RightSideInfo.php(100): Goods::model() 095 public function getRightSideBarHotSaleData(){ 096 $a_id = array(); 097 foreach($this->a_rightsidebar_data['pc_rightsidebar_hotsale'] as $a_tmp){ 098 array_push($a_id, $a_tmp['content_url']); 099 } 100 $this->a_rightsidebar_data['pc_rightsidebar_hotsale'] = Goods::model()->getGoodsInfoById($a_id); 101 $a_num = NumInfoAboutGoods::model()->getMultiNumForMultiGoods($a_id, array(1,2,3)); 102 foreach ($this->a_rightsidebar_data['pc_rightsidebar_hotsale'] as $key =>$value){ 103 $this->a_rightsidebar_data['pc_rightsidebar_hotsale'][$key]['num_info'] = $a_num[(String)$value['goods_id']]; 104 } 105 } |
#9 |
+
–
/data/travel_from_112_124_34_134/travel/front/protected/models/RightSideInfo.php(34): RightSideInfo->getRightSideBarHotSaleData() 29 * @description 得到location中的数据 30 */ 31 public function getRightSideBarTotalLocationData(){ 32 $this->a_rightsidebar_data = Location::model()->getLocationByChannelName('pc_rightsidebar','channel'); 33 if(in_array('pc_rightsidebar_hotsale',$this->a_marks)){ 34 $this->getRightSideBarHotSaleData(); 35 } 36 if(in_array('pc_rightsidebar_hotcity',$this->a_marks)){ 37 $this->getRightSideBarHotCityData(); 38 } 39 if(in_array('pc_rightsidebar_hotview',$this->a_marks)){ |
#10 |
+
–
/data/travel_from_112_124_34_134/travel/front/protected/models/RightSideInfo.php(24): RightSideInfo->getRightSideBarTotalLocationData() 19 $this->pc_rightsidebar_hotcity = $this->a_modules['pc_rightsidebar_hotcity']; 20 } 21 if(isset($this->a_modules['pc_rightsidebar_hotview'])){ 22 $this->pc_rightsidebar_hotview = $this->a_modules['pc_rightsidebar_hotview']; 23 } 24 $this->getRightSideBarTotalLocationData(); 25 $this->getRightSideModuleByMark($this->a_marks); 26 } 27 28 /* 29 * @description 得到location中的数据 |
#11 |
+
–
/data/travel_from_112_124_34_134/travel/framework/web/CBaseController.php(174): RightSideInfo->run() 169 return ob_get_clean(); 170 } 171 else 172 { 173 $widget=$this->createWidget($className,$properties); 174 $widget->run(); 175 return $widget; 176 } 177 } 178 179 /** |
#12 |
+
–
/data/travel_from_112_124_34_134/travel/front/themes/classic/views/destination/default/show.php(185): CBaseController->widget("RightSideInfo", array("a_modules" => array("pc_rightsidebar_hotsale" => 2, "pc_rightsidebar_hotview" => 6))) 180 <div id="allmap"></div> 181 <?php $this->widget('CommentShow',array('i_content_id'=>$show['id'],'userid'=>$userid,'or_type'=>'c'));?> 182 <?php $this->widget('CommentShow',array('viewname'=>'addcomment','userid'=>$userid,'i_content_id'=>$show['id'],'or_type'=>'c'));?> 183 </div> 184 <?php 185 $this->widget('RightSideInfo', array('a_modules'=>array('pc_rightsidebar_hotsale'=>2, 'pc_rightsidebar_hotview'=>6))); 186 ?> 187 </div> 188 </div> 189 <div style="display:none" id="showcontent"><?php echo $show['content'];?></div> 190 <script> |
#13 |
+
–
/data/travel_from_112_124_34_134/travel/framework/web/CBaseController.php(127): require("/data/travel_from_112_124_34_134/travel/front/themes/classic/vie...") 122 $data=$_data_; 123 if($_return_) 124 { 125 ob_start(); 126 ob_implicit_flush(false); 127 require($_viewFile_); 128 return ob_get_clean(); 129 } 130 else 131 require($_viewFile_); 132 } |
#14 |
+
–
/data/travel_from_112_124_34_134/travel/framework/web/CBaseController.php(96): CBaseController->renderInternal("/data/travel_from_112_124_34_134/travel/front/themes/classic/vie...", array("show" => array("id" => "12197", "title" => "桂林象山景区", "keywords" => "广西,桂林,象山景区", "pc_preview" => "http://img1.taagoo.cn/images/20140616/301620402065.jpg", ...), "userid" => 0, "resource_type" => "scene"), true) 091 { 092 $widgetCount=count($this->_widgetStack); 093 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 094 $content=$renderer->renderFile($this,$viewFile,$data,$return); 095 else 096 $content=$this->renderInternal($viewFile,$data,$return); 097 if(count($this->_widgetStack)===$widgetCount) 098 return $content; 099 else 100 { 101 $widget=end($this->_widgetStack); |
#15 |
+
–
/data/travel_from_112_124_34_134/travel/framework/web/CController.php(870): CBaseController->renderFile("/data/travel_from_112_124_34_134/travel/front/themes/classic/vie...", array("show" => array("id" => "12197", "title" => "桂林象山景区", "keywords" => "广西,桂林,象山景区", "pc_preview" => "http://img1.taagoo.cn/images/20140616/301620402065.jpg", ...), "userid" => 0, "resource_type" => "scene"), true) 865 */ 866 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 867 { 868 if(($viewFile=$this->getViewFile($view))!==false) 869 { 870 $output=$this->renderFile($viewFile,$data,true); 871 if($processOutput) 872 $output=$this->processOutput($output); 873 if($return) 874 return $output; 875 else |
#16 |
+
–
/data/travel_from_112_124_34_134/travel/framework/web/CController.php(783): CController->renderPartial("show", array("show" => array("id" => "12197", "title" => "桂林象山景区", "keywords" => "广西,桂林,象山景区", "pc_preview" => "http://img1.taagoo.cn/images/20140616/301620402065.jpg", ...), "userid" => 0, "resource_type" => "scene"), true) 778 */ 779 public function render($view,$data=null,$return=false) 780 { 781 if($this->beforeRender($view)) 782 { 783 $output=$this->renderPartial($view,$data,true); 784 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 785 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 786 787 $this->afterRender($view,$output); 788 |
#17 |
+
–
/data/travel_from_112_124_34_134/travel/front/protected/modules/destination/controllers/DefaultController.php(113): CController->render("show", array("show" => array("id" => "12197", "title" => "桂林象山景区", "keywords" => "广西,桂林,象山景区", "pc_preview" => "http://img1.taagoo.cn/images/20140616/301620402065.jpg", ...), "userid" => 0, "resource_type" => "scene")) 108 109 if($this->_request->getQuery('player')){ 110 $this->layout = false; 111 $this->render('show_player',$a_data); 112 }else{ 113 $this->render('show',$a_data); 114 } 115 116 } 117 /* 118 * 单独全景页面 |
#18 |
+
–
/data/travel_from_112_124_34_134/travel/framework/web/actions/CInlineAction.php(50): DefaultController->actionShow() 45 $controller=$this->getController(); 46 $method=new ReflectionMethod($controller, $methodName); 47 if($method->getNumberOfParameters()>0) 48 return $this->runWithParamsInternal($controller, $method, $params); 49 else 50 return $controller->$methodName(); 51 } 52 53 } |
#19 |
+
–
/data/travel_from_112_124_34_134/travel/framework/web/CController.php(309): CInlineAction->runWithParams(array("destination/default/show/id/12197" => "", "id" => "12197")) 304 { 305 $priorAction=$this->_action; 306 $this->_action=$action; 307 if($this->beforeAction($action)) 308 { 309 if($action->runWithParams($this->getActionParams())===false) 310 $this->invalidActionParams($action); 311 else 312 $this->afterAction($action); 313 } 314 $this->_action=$priorAction; |
#20 |
+
–
/data/travel_from_112_124_34_134/travel/framework/web/CController.php(287): CController->runAction(CInlineAction) 282 * @see runAction 283 */ 284 public function runActionWithFilters($action,$filters) 285 { 286 if(empty($filters)) 287 $this->runAction($action); 288 else 289 { 290 $priorAction=$this->_action; 291 $this->_action=$action; 292 CFilterChain::create($this,$action,$filters)->run(); |
#21 |
+
–
/data/travel_from_112_124_34_134/travel/framework/web/CController.php(266): CController->runActionWithFilters(CInlineAction, array()) 261 { 262 if(($parent=$this->getModule())===null) 263 $parent=Yii::app(); 264 if($parent->beforeControllerAction($this,$action)) 265 { 266 $this->runActionWithFilters($action,$this->filters()); 267 $parent->afterControllerAction($this,$action); 268 } 269 } 270 else 271 $this->missingAction($actionID); |
#22 |
+
–
/data/travel_from_112_124_34_134/travel/framework/web/CWebApplication.php(276): CController->run("show") 271 { 272 list($controller,$actionID)=$ca; 273 $oldController=$this->_controller; 274 $this->_controller=$controller; 275 $controller->init(); 276 $controller->run($actionID); 277 $this->_controller=$oldController; 278 } 279 else 280 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 281 array('{route}'=>$route===''?$this->defaultController:$route))); |
#23 |
+
–
/data/travel_from_112_124_34_134/travel/framework/web/CWebApplication.php(135): CWebApplication->runController("destination/default/show/id/12197") 130 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 131 $_GET[$name]=$value; 132 } 133 else 134 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 135 $this->runController($route); 136 } 137 138 /** 139 * Registers the core application components. 140 * This method overrides the parent implementation by registering additional core components. |
#24 |
+
–
/data/travel_from_112_124_34_134/travel/framework/base/CApplication.php(162): CWebApplication->processRequest() 157 */ 158 public function run() 159 { 160 if($this->hasEventHandler('onBeginRequest')) 161 $this->onBeginRequest(new CEvent($this)); 162 $this->processRequest(); 163 if($this->hasEventHandler('onEndRequest')) 164 $this->onEndRequest(new CEvent($this)); 165 } 166 167 /** |
#25 |
+
–
/data/travel_from_112_124_34_134/travel/front/index.php(36): CApplication->run() 31 32 require_once($yii); 33 //全局函数 34 require_once($globals); 35 36 Yii::createWebApplication($config)->run(); |