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 [ 275 ] » Kohana_Database_MySQL->query(arguments)
0
integer 1
1
string(320) "SELECT b.adultprice,a.* FROM sline_line AS a LEFT JOIN sline_line_suit_price AS b ON a.id=b.lineid LEFT JOIN sline_kindorderlis …"
2
bool FALSE
3
array(0)
270 return new Database_Result_Cached($result, $sql, $as_object, $object_params); 271 } 272 } 273 274 // Execute the query 275 $result = $db->query($this->_type, $sql, $as_object, $object_params); 276 277 if (isset($cache_key) AND $this->_lifetime > 0) 278 { 279 // Cache the result array 280 Kohana::cache($cache_key, $result->as_array(), $this->_lifetime);
-
DOCROOT/plugins/developer/classes/controller/line/line.php [ 752 ] » Kohana_Database_Query->execute()
747 //IFNULL(c.displayorder,9999) ASC, a.modtime DESC,a.addtime DESC 748 //计算总数"SELECT count(*) as dd " . strchr($sql, " FROM") 749 $totalSql = $sql; 750 $totalSql = str_replace(strchr($totalSql, "ORDER BY"), '', $totalSql);//去掉order by 751 752 $totalN = DB::query(1, $totalSql)->execute()->as_array(); 753 754 $totalNum = count($totalN); 755 756 757 //检测页面数量是否超限
-
DOCROOT/plugins/developer/classes/controller/line/line.php [ 379 ] » Controller_Line_Line::search_result(arguments)
0
array(11) ( "controller" => string(4) "line" "action" => string(9) "line_list" "destpy" => string(8) "zhoubian" "dayid" => integer 0 "priceid" => integer 0 "sorttype" => integer 0 "displaytype" => integer 0 "startcityid" => integer 0 "attrid" => integer 0 "p" => integer 1 "channel_name" => string(6) "线路" )
1
string(0) ""
2
integer 1
3
integer 15
4
integer 0
5
integer 0
6
integer 0
7
integer 0
8
array(2) ( 0 => string(1) "0" 1 => string(5) "22_30" )
9
string(1) "1"
374 $container = $price_screen[0]; 375 $price_screen[0] = $price_screen[1]; 376 $price_screen[1] = $container; 377 } 378 379 $out = self::search_result($route_array, $keyword, $p, $pagesize,$choice_play,$choice_type,$choice_day,$choice_time,$price_screen,$orderby); 380 381 $pager = Pagination::factory( 382 array( 383 'current_page' => array('source' => 'route', 'key' => 'p'), 384 'view' => 'default/pagination/search',
-
{PHP internal call} » Controller_Line_Line->action_line_list()
-
SYSPATH/classes/kohana/request/client/internal.php [ 116 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Line_Line(5)
{ protected cmsurl => string(1) "/" public _data => array(2) ( "cmsurl" => string(1) "/" "webname" => string(20) "中国国旅(北京)" ) public params => array(1) ( "" => 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(108) "lines/(<destpy>)(<sign>)(-<dayid>)(-<priceid>)(-<sorttype>)(-<displaytype>)(-<startcityid>)(-<attrid>)(-<p>)" protected _regex => array(9) ( "destpy" => string(12) "[0-9a-zA-Z]+" "sign" => string(3) "\/?" "dayid" => string(6) "[0-9]+" "priceid" => string(6) "[0-9]+" "sorttype" => string(6) "[0-9]+" "displaytype" => string(4) "[^-]" "startcityid" => string(6) "[0-9]+" "attrid" => string(7) "[0-9_]+" "p" => string(6) "[0-9]+" ) protected _defaults => array(3) ( "controller" => string(4) "line" "action" => string(9) "line_list" "directory" => string(4) "line" ) protected _route_regex => string(233) "#^lines/(?:(?P<destpy>[0-9a-zA-Z]+))?(?:(?P<sign>\/?))?(?:-(?P<dayid>[0-9]+))?(?:-(?P<priceid>[0-9]+))?(?:-(?P<sorttype>[0-9]+)) …" }
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(4) "line" protected _controller => string(4) "line" protected _action => string(9) "line_list" protected _uri => string(32) "lines/zhoubian-0-0-0-0-0-22_30-1" protected _external => bool FALSE protected _params => array(9) ( "destpy" => string(8) "zhoubian" "sign" => string(0) "" "dayid" => string(1) "0" "priceid" => string(1) "0" "sorttype" => string(1) "0" "displaytype" => string(1) "0" "startcityid" => string(1) "0" "attrid" => string(5) "22_30" "p" => string(1) "1" ) 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(108) "lines/(<destpy>)(<sign>)(-<dayid>)(-<priceid>)(-<sorttype>)(-<displaytype>)(-<startcityid>)(-<attrid>)(-<p>)" protected _regex => array(9) ( "destpy" => string(12) "[0-9a-zA-Z]+" "sign" => string(3) "\/?" "dayid" => string(6) "[0-9]+" "priceid" => string(6) "[0-9]+" "sorttype" => string(6) "[0-9]+" "displaytype" => string(4) "[^-]" "startcityid" => string(6) "[0-9]+" "attrid" => string(7) "[0-9_]+" "p" => string(6) "[0-9]+" ) protected _defaults => array(3) ( "controller" => string(4) "line" "action" => string(9) "line_list" "directory" => string(4) "line" ) protected _route_regex => string(233) "#^lines/(?:(?P<destpy>[0-9a-zA-Z]+))?(?:(?P<sign>\/?))?(?:-(?P<dayid>[0-9]+))?(?:-(?P<priceid>[0-9]+))?(?:-(?P<sorttype>[0-9]+)) …" }
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(4) "line" protected _controller => string(4) "line" protected _action => string(9) "line_list" protected _uri => string(32) "lines/zhoubian-0-0-0-0-0-22_30-1" protected _external => bool FALSE protected _params => array(9) ( "destpy" => string(8) "zhoubian" "sign" => string(0) "" "dayid" => string(1) "0" "priceid" => string(1) "0" "sorttype" => string(1) "0" "displaytype" => string(1) "0" "startcityid" => string(1) "0" "attrid" => string(5) "22_30" "p" => string(1) "1" ) 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(108) "lines/(<destpy>)(<sign>)(-<dayid>)(-<priceid>)(-<sorttype>)(-<displaytype>)(-<startcityid>)(-<attrid>)(-<p>)" protected _regex => array(9) ( "destpy" => string(12) "[0-9a-zA-Z]+" "sign" => string(3) "\/?" "dayid" => string(6) "[0-9]+" "priceid" => string(6) "[0-9]+" "sorttype" => string(6) "[0-9]+" "displaytype" => string(4) "[^-]" "startcityid" => string(6) "[0-9]+" "attrid" => string(7) "[0-9_]+" "p" => string(6) "[0-9]+" ) protected _defaults => array(3) ( "controller" => string(4) "line" "action" => string(9) "line_list" "directory" => string(4) "line" ) protected _route_regex => string(233) "#^lines/(?:(?P<destpy>[0-9a-zA-Z]+))?(?:(?P<sign>\/?))?(?:-(?P<dayid>[0-9]+))?(?:-(?P<priceid>[0-9]+))?(?:-(?P<sorttype>[0-9]+)) …" }
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(4) "line" protected _controller => string(4) "line" protected _action => string(9) "line_list" protected _uri => string(32) "lines/zhoubian-0-0-0-0-0-22_30-1" protected _external => bool FALSE protected _params => array(9) ( "destpy" => string(8) "zhoubian" "sign" => string(0) "" "dayid" => string(1) "0" "priceid" => string(1) "0" "sorttype" => string(1) "0" "displaytype" => string(1) "0" "startcityid" => string(1) "0" "attrid" => string(5) "22_30" "p" => string(1) "1" ) 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 [ 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 }