/srv/http/yii/db/CDbCommand.php(528)
516 return $result; 517 } 518 catch(Exception $e) 519 { 520 if($this->_connection->enableProfiling) 521 Yii::endProfile('system.db.CDbCommand.query('.$this->getText().$par.')','system.db.CDbCommand.query'); 522 $errorInfo = $e instanceof PDOException ? $e->errorInfo : null; 523 $message = $e->getMessage(); 524 Yii::log(Yii::t('yii','CDbCommand::{method}() failed: {error}. The SQL statement executed was: {sql}.', 525 array('{method}'=>$method, '{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand'); 526 if(YII_DEBUG) 527 $message .= '. The SQL statement executed was: '.$this->getText().$par; 528 throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}', 529 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo); 530 } 531 } 532 533 /** 534 * Builds a SQL SELECT statement from the given query specification. 535 * @param array $query the query specification in name-value pairs. The following 536 * query options are supported: {@link select}, {@link distinct}, {@link from}, 537 * {@link where}, {@link join}, {@link group}, {@link having}, {@link order}, 538 * {@link limit}, {@link offset} and {@link union}. 539 * @return string the SQL statement 540 * @since 1.1.6
#0 |
+
–
/srv/http/yii/db/CDbCommand.php(425): CDbCommand->queryInternal("fetchColumn", 0, array()) 420 * @return mixed the value of the first column in the first row of the query result. False is returned if there is no value. 421 * @throws CException execution failed 422 */ 423 public function queryScalar($params=array()) 424 { 425 $result=$this->queryInternal('fetchColumn',0,$params); 426 if(is_resource($result) && get_resource_type($result)==='stream') 427 return stream_get_contents($result); 428 else 429 return $result; 430 } |
#1 |
+
–
/srv/http/yii/db/ar/CActiveRecord.php(1540): CDbCommand->queryScalar() 1535 $builder=$this->getCommandBuilder(); 1536 $criteria=$builder->createCriteria($condition,$params); 1537 $this->applyScopes($criteria); 1538 1539 if(empty($criteria->with)) 1540 return $builder->createCountCommand($this->getTableSchema(),$criteria)->queryScalar(); 1541 else 1542 { 1543 $finder=new CActiveFinder($this,$criteria->with); 1544 return $finder->count($criteria); 1545 } |
#2 |
+
–
/srv/http/virtual/photo/protected/models/BaseAR.php(34): CActiveRecord->count(CDbCriteria, array()) 29 $Dbcache->keyPrefix = $this->getTablePrefix(); 30 $tmps = $params; 31 $tmps[] = $condition; 32 $DbcacheKey = __CLASS__ . json_encode($tmps); 33 if ($Dbcache->get($DbcacheKey) === false) { 34 $rs = parent::count($condition, $params); 35 $Dbcache->set($DbcacheKey, $rs, $this->cacheTime); 36 } else { 37 $rs = $Dbcache->get($DbcacheKey); 38 } 39 return $rs; |
#3 |
+
–
/srv/http/virtual/photo/protected/models/YoutubeVideo.php(50): BaseAR->count(CDbCriteria) 45 public static function getListFromSearch($search,$limit,$page=-1) 46 { 47 $criteria=new CDbCriteria(); 48 $criteria->addCondition('Match(t.content) Against("'.$search.'")'); 49 50 $count=self::model()->count($criteria); 51 // 限制当前只展示1000个相册 52 if($count>1000) $count=1000; 53 54 if($page>=0){ 55 if($page<1) $page=1; |
#4 |
+
–
/srv/http/virtual/photo/protected/components/ViewExportMethods.php(509): YoutubeVideo::getListFromSearch("Brass ball valve CK-B895 1/4"-4" 600WOG", 4, 0) 504 } 505 506 // 获取YouTube视频列表 507 public function getYoutubeVideoList($search,$limit=10,$page=0) 508 { 509 return YoutubeVideo::getListFromSearch($search,$limit,$page); 510 } 511 512 // 根据pid,获取评论列表 513 public function getCommentListByPid($pid,$limit=12,$page=0) 514 { |
#5 |
+
–
/srv/http/virtual/photo/themes/eighth_2/views/photo/index.php(167): ViewExportMethods->getYoutubeVideoList("Brass ball valve CK-B895 1/4"-4" 600WOG", 4) 162 </div> 163 <?php }?> 164 165 <?php 166 167 $you_videoes=$this->VEM->getYoutubeVideoList($photo->title,4); 168 if(count($you_videoes)>0){ 169 170 ?> 171 <div class="revise-detail1"> 172 <div class="revise-de1-top"> |
#6 |
+
–
/srv/http/yii/web/CBaseController.php(127): require("/srv/http/virtual/photo/themes/eighth_2/views/photo/index.php") 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 } |
#7 |
+
–
/srv/http/yii/web/CBaseController.php(96): CBaseController->renderInternal("/srv/http/virtual/photo/themes/eighth_2/views/photo/index.php", array("photo" => Photoes, "image_list" => array(PhotoImages), "member" => Members, "company" => Companyprofiles, ...), 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); |
#8 |
+
–
/srv/http/yii/web/CController.php(870): CBaseController->renderFile("/srv/http/virtual/photo/themes/eighth_2/views/photo/index.php", array("photo" => Photoes, "image_list" => array(PhotoImages), "member" => Members, "company" => Companyprofiles, ...), 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 |
#9 |
+
–
/srv/http/yii/web/CController.php(783): CController->renderPartial("index", array("photo" => Photoes, "image_list" => array(PhotoImages), "member" => Members, "company" => Companyprofiles, ...), 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 |
#10 |
+
–
/srv/http/virtual/photo/protected/controllers/PhotoController.php(76): CController->render("index", array("photo" => Photoes, "image_list" => array(PhotoImages), "member" => Members, "company" => Companyprofiles, ...)) 71 'company'=>$company, 72 'cate_show'=>$cate_show, 73 'root_cate'=>$root_cate, 74 'site'=>$site, 75 'group'=>$group, 76 ]); 77 } 78 79 protected function getTKDConfig() 80 { 81 return $this->VEM->getTKDConfig('photo'); |
#11 |
+
–
/srv/http/yii/web/actions/CInlineAction.php(50): PhotoController->actionIndex() 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 } |
#12 |
+
–
/srv/http/yii/web/CController.php(309): CInlineAction->runWithParams(array("name" => "brass-ball-valve-ck-b895-1-4-4-600wog", "id" => "5971")) 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; |
#13 |
+
–
/srv/http/yii/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(); |
#14 |
+
–
/srv/http/yii/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); |
#15 |
+
–
/srv/http/yii/web/CWebApplication.php(283): CController->run("index") 278 { 279 list($controller,$actionID)=$ca; 280 $oldController=$this->_controller; 281 $this->_controller=$controller; 282 $controller->init(); 283 $controller->run($actionID); 284 $this->_controller=$oldController; 285 } 286 else 287 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 288 array('{route}'=>$route===''?$this->defaultController:$route))); |
#16 |
+
–
/srv/http/yii/web/CWebApplication.php(142): CWebApplication->runController("photo/index") 137 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 138 $_GET[$name]=$value; 139 } 140 else 141 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 142 $this->runController($route); 143 } 144 145 /** 146 * Registers the core application components. 147 * This method overrides the parent implementation by registering additional core components. |
#17 |
+
–
/srv/http/yii/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 /** |
#18 |
+
–
/srv/http/virtual/astszcmparts_com/htdocs/index.php(21): CApplication->run() 16 17 // 通用函数 18 require_once ROOT_PATH . '/protected/libs/general-code-php/func.php'; 19 20 require_once($yii); 21 Yii::createWebApplication($config)->run(); |