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(218) "SELECT headpic,nickname,email,phone,account FROM help_member …"
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);
-
MODPATH/tools/classes/model/update/patch.php [ 171 ] » Kohana_Database_Query->execute()
166 headpic,nickname,email,phone,account 167 FROM 168 help_member 169 WHERE 170 memberid IN ({$patch['contributor_member']})"; 171 $contributor_member_rows = DB::query(Database::SELECT, $sql)->execute()->as_array(); 172 foreach ($contributor_member_rows as $contributor_member_row) 173 { 174 $patch['contributor_member_info'][] = array( 175 'headpic' => ($contributor_member_row['headpic'] ? $contributor_member_row['headpic'] : '/user/public/images/head.jpg'), 176 'member_name' => $this->get_member_name($contributor_member_row)
-
APPPATH/classes/controller/updatepatch.php [ 37 ] » Model_Update_Patch->get_patch_detail(arguments)
0
string(4) "2286"
32 33 public function action_patch_detail() 34 { 35 $patch_id = $this->request->param('id'); 36 $model = new Model_Update_Patch(); 37 $patch_info = $model->get_patch_detail($patch_id); 38 39 $this->assign('patch_info',$patch_info); 40 41 $this->display('updatepatch/patch_detail'); 42 }
-
{PHP internal call} » Controller_UpdatePatch->action_patch_detail()
-
SYSPATH/classes/kohana/request/client/internal.php [ 127 ] » ReflectionMethod->invoke(arguments)
0
object Controller_UpdatePatch(5)
{ public _data => array(5) ( "cmsurl" => string(5) "/cms/" "weburl" => string(23) "http://www.stourweb.com" "publicurl" => string(12) "/cms/public/" "webname" => string(15) "思途旅游CMS" "code_data" => array(1) ( "code" => string(0) "" ) ) public params => array(1) ( "" => integer 0 ) public memberID => integer 0 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(17) "version/id_(<id>)" protected _regex => array(1) ( "id" => string(3) "\d+" ) protected _defaults => array(2) ( "controller" => string(11) "updatepatch" "action" => string(12) "patch_detail" ) protected _route_regex => string(33) "#^version/id_(?:(?P<id>\d+))?$#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(0) "" protected _controller => string(11) "updatepatch" protected _action => string(12) "patch_detail" protected _uri => string(15) "version/id_2286" protected _external => bool FALSE protected _params => array(1) ( "id" => string(4) "2286" ) 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" }122 //array(':uri' => $request->uri())); 123 124 } 125 126 $method = $class->getMethod('action_'.$action); 127 $method->invoke($controller); 128 129 // Execute the "after action" method 130 $class->getMethod('after')->invoke($controller); 131 } 132 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(17) "version/id_(<id>)" protected _regex => array(1) ( "id" => string(3) "\d+" ) protected _defaults => array(2) ( "controller" => string(11) "updatepatch" "action" => string(12) "patch_detail" ) protected _route_regex => string(33) "#^version/id_(?:(?P<id>\d+))?$#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(0) "" protected _controller => string(11) "updatepatch" protected _action => string(12) "patch_detail" protected _uri => string(15) "version/id_2286" protected _external => bool FALSE protected _params => array(1) ( "id" => string(4) "2286" ) 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 [ 1163 ] » 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(17) "version/id_(<id>)" protected _regex => array(1) ( "id" => string(3) "\d+" ) protected _defaults => array(2) ( "controller" => string(11) "updatepatch" "action" => string(12) "patch_detail" ) protected _route_regex => string(33) "#^version/id_(?:(?P<id>\d+))?$#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(0) "" protected _controller => string(11) "updatepatch" protected _action => string(12) "patch_detail" protected _uri => string(15) "version/id_2286" protected _external => bool FALSE protected _params => array(1) ( "id" => string(4) "2286" ) 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 }
}1158 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 1159 ':uri' => $this->_uri, 1160 )); 1161 } 1162 1163 return $this->_client->execute($this); 1164 } 1165 1166 /** 1167 * Returns whether this request is the initial request Kohana received. 1168 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 119 ] » Kohana_Request->execute()
114 /** 115 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 116 * If no source is specified, the URI will be automatically detected. 117 */ 118 echo Request::factory() 119 ->execute() 120 ->send_headers(TRUE) 121 ->body(); 122 123 }