MODPATH/database/classes/kohana/database/mysql.php [ 194 ]
189 {
190 // This benchmark is worthless
191 Profiler::delete($benchmark);
192 }
193
194 throw new Database_Exception(':error [ :query ]',
195 array(':error' => mysql_error($this->_connection), ':query' => $sql),
196 mysql_errno($this->_connection));
197 }
198
199 if (isset($benchmark))
-
MODPATH/database/classes/kohana/database/query.php [ 251 ] » Kohana_Database_MySQL->query(arguments)
0
integer 1
1
string(144) "SELECT b.* FROM sline_photo AS a LEFT JOIN sline_photo_picture AS b ON a.id=b.pid WHERE a.id= ORDER BY IFNULL(b.displayorder,999 …"
2
bool FALSE
3
array(0)
246 return new Database_Result_Cached($result, $sql, $as_object, $object_params); 247 } 248 } 249 250 // Execute the query 251 $result = $db->query($this->_type, $sql, $as_object, $object_params); 252 253 if (isset($cache_key) AND $this->_lifetime > 0) 254 { 255 // Cache the result array 256 Kohana::cache($cache_key, $result->as_array(), $this->_lifetime);
-
/www/wwwroot/scccits_cn/plugins/photo/classes/model/photo.php [ 33 ] » Kohana_Database_Query->execute()
28 public static function photo_picture($id) 29 { 30 $sql = 'SELECT b.* FROM sline_photo AS a LEFT JOIN sline_photo_picture AS b ON a.id=b.pid '; 31 $sql .= "WHERE a.id={$id} "; 32 $sql .= 'ORDER BY IFNULL(b.displayorder,9999) ASC,b.id DESC'; 33 $arr = DB::query(1, $sql)->execute()->as_array(); 34 return $arr; 35 } 36 37 /** 38 * 属性
-
/www/wwwroot/scccits_cn/plugins/developer/classes/controller/developer/photo/mobile/photo.php [ 28 ] » Model_Photo::photo_picture(arguments)
0
NULL
23 $aid = intval($this->request->param('aid')); 24 $row = Model_Photo::photo_detail($aid); 25 //点击率加一 26 Product::update_click_rate($aid, $this->_typeid); 27 //picture 28 $piclist = Model_Photo::photo_picture($row['id']); 29 foreach ($piclist as &$v) 30 { 31 if (empty($v['description'])) 32 { 33 $v['description'] = $row['content'];
-
{PHP internal call} » Controller_Developer_Photo_Mobile_Photo->action_show()
-
SYSPATH/classes/kohana/request/client/internal.php [ 116 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Developer_Photo_Mobile_Photo(6)
{ private _typeid => integer 6 public _data => array(4) ( "cmsurl" => string(1) "/" "member" => NULL "webname" => string(32) "SY定制旅游川藏旅游官网" "defaultimg" => string(23) "/public/images/grey.gif" ) public params => array(1) ( "" => string(1) "0" ) protected cmsurl => string(1) "/" public request => object Request(20)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
public response => object Response(5){ protected _callback => NULL protected _uri => string(36) "photos(/<action>_<aid>(_<num>).html)" protected _regex => array(3) ( "aid" => string(3) "\d+" "num" => string(3) "\d+" "action" => string(4) "show" ) protected _defaults => array(3) ( "action" => string(5) "index" "controller" => string(5) "photo" "directory" => string(22) "developer/photo/mobile" ) protected _route_regex => string(71) "#^photos(?:/(?P<action>show)_(?P<aid>\d+)(?:_(?P<num>\d+))?\.html)?$#uD" }
protected _routes => array(0) protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }{ }
protected _body => NULL protected _directory => string(22) "developer/photo/mobile" protected _controller => string(5) "photo" protected _action => string(4) "show" protected _uri => string(20) "photos/show_193.html" protected _external => bool FALSE protected _params => array(1) ( "aid" => string(3) "193" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
}{ protected _status => integer 200 protected _header => object HTTP_Header(0)
}{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }111 throw new HTTP_Exception_404('The requested URL :uri was not found on this server.', 112 array(':uri' => $request->uri())); 113 } 114 115 $method = $class->getMethod('action_'.$action); 116 $method->invoke($controller); 117 118 // Execute the "after action" method 119 $class->getMethod('after')->invoke($controller); 120 } 121 catch (Exception $e)
-
SYSPATH/classes/kohana/request/client.php [ 64 ] » Kohana_Request_Client_Internal->execute_request(arguments)
0
object Request(20)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(36) "photos(/<action>_<aid>(_<num>).html)" protected _regex => array(3) ( "aid" => string(3) "\d+" "num" => string(3) "\d+" "action" => string(4) "show" ) protected _defaults => array(3) ( "action" => string(5) "index" "controller" => string(5) "photo" "directory" => string(22) "developer/photo/mobile" ) protected _route_regex => string(71) "#^photos(?:/(?P<action>show)_(?P<aid>\d+)(?:_(?P<num>\d+))?\.html)?$#uD" }
protected _routes => array(0) protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }{ }
protected _body => NULL protected _directory => string(22) "developer/photo/mobile" protected _controller => string(5) "photo" protected _action => string(4) "show" protected _uri => string(20) "photos/show_193.html" protected _external => bool FALSE protected _params => array(1) ( "aid" => string(3) "193" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
}59 public function execute(Request $request) 60 { 61 if ($this->_cache instanceof HTTP_Cache) 62 return $this->_cache->execute($this, $request); 63 64 return $this->execute_request($request); 65 } 66 67 /** 68 * Processes the request passed to it and returns the response from 69 * the URI resource identified.
-
SYSPATH/classes/kohana/request.php [ 1160 ] » Kohana_Request_Client->execute(arguments)
0
object Request(20)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(36) "photos(/<action>_<aid>(_<num>).html)" protected _regex => array(3) ( "aid" => string(3) "\d+" "num" => string(3) "\d+" "action" => string(4) "show" ) protected _defaults => array(3) ( "action" => string(5) "index" "controller" => string(5) "photo" "directory" => string(22) "developer/photo/mobile" ) protected _route_regex => string(71) "#^photos(?:/(?P<action>show)_(?P<aid>\d+)(?:_(?P<num>\d+))?\.html)?$#uD" }
protected _routes => array(0) protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }{ }
protected _body => NULL protected _directory => string(22) "developer/photo/mobile" protected _controller => string(5) "photo" protected _action => string(4) "show" protected _uri => string(20) "photos/show_193.html" protected _external => bool FALSE protected _params => array(1) ( "aid" => string(3) "193" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
}1155 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 1156 ':uri' => $this->_uri, 1157 )); 1158 } 1159 1160 return $this->_client->execute($this); 1161 } 1162 1163 /** 1164 * Returns whether this request is the initial request Kohana received. 1165 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 136 ] » Kohana_Request->execute()
131 /** 132 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 133 * If no source is specified, the URI will be automatically detected. 134 */ 135 echo Request::factory() 136 ->execute() 137 ->send_headers(TRUE) 138 ->body(); 139 140 }