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(124) "SELECT count(*) as num FROM `sline_search` where typeid NOT IN(7,10,11,12,14) AND ishidden=0 AND title like '%二天游%' "
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);
-
DOCROOT/tools/classes/model/search.php [ 118 ] » Kohana_Database_Query->execute()
113 114 } 115 116 117 $where = " typeid NOT IN(7,10,11,12,14) AND ishidden=0 {$keyword_where}"; 118 $allnum = DB::query(1,"SELECT count(*) as num FROM `sline_search` where {$where}")->parameters($value_arr)->execute()->get('num'); 119 120 $out = array(); 121 $out[] = array('channelname'=>'全部','num'=>$allnum,'typeid'=>0); 122 foreach($arr as $row) 123 {
-
APPPATH/classes/controller/search.php [ 79 ] » Model_Search::get_left_nav(arguments)
0
string(9) "二天游"
74 { 75 $this->request->redirect($this->request->referrer()); 76 } 77 // Model_Global_Search::search_jump($keyword); 78 79 $leftnav = Model_Search::get_left_nav($keyword); 80 //关键字入库 81 Model_Search::add_search_key($keyword); 82 $this->assign('keyword',htmlspecialchars($keyword)); 83 $this->assign('leftnav',$leftnav); 84
-
{PHP internal call} » Controller_Search->action_cloudsearch()
-
SYSPATH/classes/kohana/request/client/internal.php [ 116 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Search(6)
{ private _cache_key => string(77) "http://www.unigous.com/search/cloudsearch?keyword=%E4%BA%8C%E5%A4%A9%E6%B8%B8" public _data => array(2) ( "cmsurl" => string(1) "/" "webname" => string(9) "众游网" ) 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) "(<controller>(/<action>(/<params>)))" protected _regex => array(1) ( "params" => string(2) ".*" ) protected _defaults => array(2) ( "controller" => string(5) "index" "action" => string(5) "index" ) protected _route_regex => string(89) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<params>.*))?)?)?$#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(6) "search" protected _action => string(11) "cloudsearch" protected _uri => string(18) "search/cloudsearch" protected _external => bool FALSE protected _params => array(0) protected _get => array(1) ( "keyword" => string(9) "二天游" ) 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) "(<controller>(/<action>(/<params>)))" protected _regex => array(1) ( "params" => string(2) ".*" ) protected _defaults => array(2) ( "controller" => string(5) "index" "action" => string(5) "index" ) protected _route_regex => string(89) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<params>.*))?)?)?$#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(6) "search" protected _action => string(11) "cloudsearch" protected _uri => string(18) "search/cloudsearch" protected _external => bool FALSE protected _params => array(0) protected _get => array(1) ( "keyword" => string(9) "二天游" ) 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) "(<controller>(/<action>(/<params>)))" protected _regex => array(1) ( "params" => string(2) ".*" ) protected _defaults => array(2) ( "controller" => string(5) "index" "action" => string(5) "index" ) protected _route_regex => string(89) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<params>.*))?)?)?$#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(6) "search" protected _action => string(11) "cloudsearch" protected _uri => string(18) "search/cloudsearch" protected _external => bool FALSE protected _params => array(0) protected _get => array(1) ( "keyword" => string(9) "二天游" ) 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 [ 135 ] » Kohana_Request->execute()
130 /** 131 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 132 * If no source is specified, the URI will be automatically detected. 133 */ 134 echo Request::factory() 135 ->execute() 136 ->send_headers(TRUE) 137 ->body(); 138 139 } 140