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/mysql.php [ 359 ] » Kohana_Database_MySQL->query(arguments)
0
integer 1
1
string(45) "SHOW FULL COLUMNS FROM `sline_spot_pricelist`"
2
bool FALSE
354 $result = $this->query(Database::SELECT, 'SHOW FULL COLUMNS FROM '.$table.' LIKE '.$this->quote($like), FALSE); 355 } 356 else 357 { 358 // Find all column names 359 $result = $this->query(Database::SELECT, 'SHOW FULL COLUMNS FROM '.$table, FALSE); 360 } 361 362 $count = 0; 363 $columns = array(); 364 foreach ($result as $row)
-
MODPATH/orm/classes/kohana/orm.php [ 1802 ] » Kohana_Database_MySQL->list_columns(arguments)
0
string(14) "spot_pricelist"
1797 * @return array 1798 */ 1799 public function list_columns() 1800 { 1801 // Proxy to database 1802 return $this->_db->list_columns($this->_table_name); 1803 } 1804 1805 /** 1806 * Returns an ORM model for the given one-one related alias 1807 *
-
MODPATH/orm/classes/kohana/orm.php [ 457 ] » Kohana_ORM->list_columns()
452 $this->_table_columns = ORM::$_column_cache[$this->_object_name]; 453 } 454 else 455 { 456 // Grab column information from database 457 $this->_table_columns = $this->list_columns(); 458 459 // Load column cache 460 ORM::$_column_cache[$this->_object_name] = $this->_table_columns; 461 } 462 }
-
MODPATH/orm/classes/kohana/orm.php [ 402 ] » Kohana_ORM->reload_columns()
397 { 398 $this->{$property} = $value; 399 } 400 401 // Load column information 402 $this->reload_columns(); 403 404 // Clear initial model state 405 $this->clear(); 406 } 407
-
MODPATH/orm/classes/kohana/orm.php [ 267 ] » Kohana_ORM->_initialize()
262 * 263 * @param mixed $id Parameter for find or object to load 264 */ 265 public function __construct($id = NULL) 266 { 267 $this->_initialize(); 268 269 if ($id !== NULL) 270 { 271 if (is_array($id)) 272 {
-
MODPATH/orm/classes/kohana/orm.php [ 48 ] » Kohana_ORM->__construct(arguments)
0
string(1) "8"
43 // Set class name 44 //echo "model=>".$model."<br>\r\n"; 45 //exit; 46 $model = 'Model_'.$model; 47 48 return new $model($id); 49 } 50 51 /** 52 * "Has one" relationships 53 * @var array
-
APPPATH/classes/model/spot.php [ 156 ] » Kohana_ORM::factory(arguments)
0
string(14) "spot_pricelist"
1
string(1) "8"
151 } 152 153 //价格区间 154 if ($priceId) 155 { 156 $priceArr = ORM::factory('spot_pricelist', $priceId)->as_array(); 157 $min = $priceArr['min'] ? $priceArr['min'] : 0; 158 $max = $priceArr['max'] ? $priceArr['max'] : 99999; 159 $where .= " AND a.price BETWEEN {$min} AND {$max} "; 160 } 161 //排序
-
APPPATH/classes/controller/spot.php [ 76 ] » Model_Spot::search_result(arguments)
0
array(6) ( "controller" => string(4) "spot" "action" => string(4) "list" "destpy" => string(6) "fugang" "priceid" => integer 8 "sorttype" => integer 0 "attrid" => string(3) "230" )
1
string(0) ""
2
integer 1
3
integer 10
71 'attrid' => $attrId 72 ); 73 //$start_time=microtime(true); //获取程序开始执行的时间 74 $keyword = Common::remove_xss(Arr::get($_GET, 'keyword')); 75 76 $out = Model_Spot::search_result($route_array, $keyword, $p, $pagesize); 77 $pager = Pagination::factory( 78 array( 79 80 'current_page' => array('source' => 'route', 'key' => 'p'), 81 'view' => 'default/pagination/search',
-
{PHP internal call} » Controller_Spot->action_list()
-
SYSPATH/classes/kohana/request/client/internal.php [ 116 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Spot(7)
{ private typeid => integer 5 private _cache_key => string(47) "http://yun1.easy-tour.cn/spots/fugang-8-0-230-1" public _data => array(4) ( "cmsurl" => string(1) "/" "webname" => string(18) "易欢游旅行网" "typeid" => integer 5 "channelname" => string(6) "直播" ) 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(66) "spots/(<destpy>)(<sign>)(-<priceid>)(-<sorttype>)(-<attrid>)(-<p>)" protected _regex => array(6) ( "destpy" => string(12) "[0-9a-zA-Z]+" "sign" => string(3) "\/?" "priceid" => string(6) "[0-9]+" "sorttype" => string(6) "[0-9]+" "attrid" => string(7) "[0-9_]+" "p" => string(6) "[0-9]+" ) protected _defaults => array(2) ( "controller" => string(4) "spot" "action" => string(4) "list" ) protected _route_regex => string(154) "#^spots/(?:(?P<destpy>[0-9a-zA-Z]+))?(?:(?P<sign>\/?))?(?:-(?P<priceid>[0-9]+))?(?:-(?P<sorttype>[0-9]+))?(?:-(?P<attrid>[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(0) "" protected _controller => string(4) "spot" protected _action => string(4) "list" protected _uri => string(22) "spots/fugang-8-0-230-1" protected _external => bool FALSE protected _params => array(6) ( "destpy" => string(6) "fugang" "sign" => string(0) "" "priceid" => string(1) "8" "sorttype" => string(1) "0" "attrid" => string(3) "230" "p" => string(1) "1" ) protected _get => array(1) ( "s" => string(22) "spots/fugang-8-0-230-1" ) 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(66) "spots/(<destpy>)(<sign>)(-<priceid>)(-<sorttype>)(-<attrid>)(-<p>)" protected _regex => array(6) ( "destpy" => string(12) "[0-9a-zA-Z]+" "sign" => string(3) "\/?" "priceid" => string(6) "[0-9]+" "sorttype" => string(6) "[0-9]+" "attrid" => string(7) "[0-9_]+" "p" => string(6) "[0-9]+" ) protected _defaults => array(2) ( "controller" => string(4) "spot" "action" => string(4) "list" ) protected _route_regex => string(154) "#^spots/(?:(?P<destpy>[0-9a-zA-Z]+))?(?:(?P<sign>\/?))?(?:-(?P<priceid>[0-9]+))?(?:-(?P<sorttype>[0-9]+))?(?:-(?P<attrid>[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(0) "" protected _controller => string(4) "spot" protected _action => string(4) "list" protected _uri => string(22) "spots/fugang-8-0-230-1" protected _external => bool FALSE protected _params => array(6) ( "destpy" => string(6) "fugang" "sign" => string(0) "" "priceid" => string(1) "8" "sorttype" => string(1) "0" "attrid" => string(3) "230" "p" => string(1) "1" ) protected _get => array(1) ( "s" => string(22) "spots/fugang-8-0-230-1" ) 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(66) "spots/(<destpy>)(<sign>)(-<priceid>)(-<sorttype>)(-<attrid>)(-<p>)" protected _regex => array(6) ( "destpy" => string(12) "[0-9a-zA-Z]+" "sign" => string(3) "\/?" "priceid" => string(6) "[0-9]+" "sorttype" => string(6) "[0-9]+" "attrid" => string(7) "[0-9_]+" "p" => string(6) "[0-9]+" ) protected _defaults => array(2) ( "controller" => string(4) "spot" "action" => string(4) "list" ) protected _route_regex => string(154) "#^spots/(?:(?P<destpy>[0-9a-zA-Z]+))?(?:(?P<sign>\/?))?(?:-(?P<priceid>[0-9]+))?(?:-(?P<sorttype>[0-9]+))?(?:-(?P<attrid>[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(0) "" protected _controller => string(4) "spot" protected _action => string(4) "list" protected _uri => string(22) "spots/fugang-8-0-230-1" protected _external => bool FALSE protected _params => array(6) ( "destpy" => string(6) "fugang" "sign" => string(0) "" "priceid" => string(1) "8" "sorttype" => string(1) "0" "attrid" => string(3) "230" "p" => string(1) "1" ) protected _get => array(1) ( "s" => string(22) "spots/fugang-8-0-230-1" ) 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 [ 145 ] » Kohana_Request->execute()
140 /** 141 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 142 * If no source is specified, the URI will be automatically detected. 143 */ 144 echo Request::factory() 145 ->execute() 146 ->send_headers(TRUE) 147 ->body(); 148 149 }