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(1111) "SELECT `chi_player_stats`.`id` AS `id`, `chi_player_stats`.`player_id` AS `player_id`, `chi_player_stats`.`event_id` AS `event_i …"
2
string(18) "Model_Player_Stats"
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/orm/classes/Kohana/ORM.php [ 1060 ] » Kohana_Database_Query->execute(arguments)
0
object Database_MySQL(6)
{ protected _connection_id => string(40) "13790cae3e5ecfb34e6b509c867ba26178cd42a7" protected _identifier => string(1) "`" public last_query => string(42) "SHOW FULL COLUMNS FROM `chi_players_stats`" protected _instance => string(7) "default" protected _connection => resource(mysql link) protected _config => array(6) ( "type" => string(5) "MySQL" "connection" => array(3) ( "hostname" => string(8) "mysql5-4" "database" => string(12) "hawks_118030" "persistent" => bool FALSE ) "table_prefix" => string(4) "chi_" "charset" => string(4) "utf8" "caching" => bool TRUE "profiling" => bool FALSE ) }
1055 } 1056 1057 if ($multiple === TRUE) 1058 { 1059 // Return database iterator casting to this object type 1060 $result = $this->_db_builder->as_object(get_class($this))->execute($this->_db); 1061 1062 $this->reset(); 1063 1064 return $result; 1065 }
-
MODPATH/orm/classes/Kohana/ORM.php [ 1001 ] » Kohana_ORM->_load_result(arguments)
0
bool TRUE
996 } 997 } 998 999 $this->_build(Database::SELECT); 1000 1001 return $this->_load_result(TRUE); 1002 } 1003 1004 /** 1005 * Returns an array of columns to include in the select query. This method 1006 * can be overridden to change the default select behavior.
-
APPPATH/classes/Repository/Stats.php [ 66 ] » Kohana_ORM->find_all()
61 } 62 63 return $stats 64 ->order_by($sort[0], strtoupper($sort[1])) 65 ->order_by('games', 'ASC') 66 ->find_all() 67 ->as_array(); 68 } 69 70 /** 71 * @param string|Model_Event $team
-
APPPATH/classes/Controller/Stats.php [ 52 ] » Repository_Stats->season(arguments)
0
string(3) "CHI"
1
string(4) "2017"
2
string(6) "season"
3
array(2) ( 0 => string(6) "number" 1 => string(4) "desc" )
47 if ( ! isset($sort[1])) 48 { 49 $sort[1] = 'desc'; 50 } 51 52 $players = $stats->season($team, $season, $term, $sort); 53 $goalies = $stats->goalie_season($team, $season, $term, $sort); 54 55 $this->template->title = 'Statistiky '.$season.'/'.($season + 1).': '.Arr::get($terms, $term).', '.($team === TEAM_AHL ? 'Rockford Ice Hogs' : 'Chicago Blackhawks'); 56 $this->template->content = View::factory('players/stats') 57 ->set('title', $this->template->title)
-
SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Stats->action_index()
79 [':uri' => $this->request->uri()] 80 )->request($this->request); 81 } 82 83 // Execute the action itself 84 $this->{$action}(); 85 86 // Execute the "after action" method 87 $this->after(); 88 89 // Return the response
-
{PHP internal call} » Kohana_Controller->execute()
-
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 94 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Stats(5)
{ public template => object View(2)
{ protected _file => string(88) "/users/zalohovane/9116/chicagoblackhawks.cz/subdomeny/www/application/views/template.php" protected _data => array(4) ( "selected" => string(5) "stats" "title" => array(0) "sidebar" => bool TRUE "comments" => bool TRUE ) }
public auto_render => bool TRUE public signed_user => NULL public request => object Request(19){ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool TRUE protected _referrer => string(79) "http://www.chicagoblackhawks.cz/statistiky/chicago/2017/season?sort=number-desc" protected _route => object Route(5)
public response => object Response(5){ protected _filters => array(0) protected _uri => string(39) "statistiky(/<team>)(/<season>(/<term>))" protected _regex => array(3) ( "team" => string(16) "chicago|rockford" "season" => string(8) "[0-9]{4}" "term" => string(6) "[a-z]+" ) protected _defaults => array(2) ( "controller" => string(5) "stats" "action" => string(5) "index" ) protected _route_regex => string(96) "#^statistiky(?:/(?P<team>chicago|rockford))?(?:/(?P<season>[0-9]{4})(?:/(?P<term>[a-z]+))?)?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(5) "Stats" protected _action => string(5) "index" protected _uri => string(30) "statistiky/chicago/2017/season" protected _external => bool FALSE protected _params => array(3) ( "team" => string(7) "chicago" "season" => string(4) "2017" "term" => string(6) "season" ) protected _get => array(1) ( "sort" => string(11) "number-desc" ) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}{ protected _status => integer 200 protected _header => object HTTP_Header(0)
}{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.0" }89 90 // Create a new instance of the controller 91 $controller = $class->newInstance($request, $response); 92 93 // Run the controller's execute() method 94 $response = $class->getMethod('execute')->invoke($controller); 95 96 if ( ! $response instanceof Response) 97 { 98 // Controller failed to return a Response. 99 throw new Kohana_Exception('Controller failed to return a Response');
-
SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)
0
object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool TRUE protected _referrer => string(79) "http://www.chicagoblackhawks.cz/statistiky/chicago/2017/season?sort=number-desc" protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(39) "statistiky(/<team>)(/<season>(/<term>))" protected _regex => array(3) ( "team" => string(16) "chicago|rockford" "season" => string(8) "[0-9]{4}" "term" => string(6) "[a-z]+" ) protected _defaults => array(2) ( "controller" => string(5) "stats" "action" => string(5) "index" ) protected _route_regex => string(96) "#^statistiky(?:/(?P<team>chicago|rockford))?(?:/(?P<season>[0-9]{4})(?:/(?P<term>[a-z]+))?)?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(5) "Stats" protected _action => string(5) "index" protected _uri => string(30) "statistiky/chicago/2017/season" protected _external => bool FALSE protected _params => array(3) ( "team" => string(7) "chicago" "season" => string(4) "2017" "term" => string(6) "season" ) protected _get => array(1) ( "sort" => string(11) "number-desc" ) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}1
object Response(5)
{ protected _status => integer 200 protected _header => object HTTP_Header(0)
{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.0" }109 $orig_response = $response = Response::factory(['_protocol' => $request->protocol()]); 110 111 if (($cache = $this->cache()) instanceof HTTP_Cache) 112 return $cache->execute($this, $request, $response); 113 114 $response = $this->execute_request($request, $response); 115 116 // Execute response callbacks 117 foreach ($this->header_callbacks() as $header => $callback) 118 { 119 if ($response->headers($header))
-
SYSPATH/classes/Kohana/Request.php [ 1000 ] » Kohana_Request_Client->execute(arguments)
0
object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool TRUE protected _referrer => string(79) "http://www.chicagoblackhawks.cz/statistiky/chicago/2017/season?sort=number-desc" protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(39) "statistiky(/<team>)(/<season>(/<term>))" protected _regex => array(3) ( "team" => string(16) "chicago|rockford" "season" => string(8) "[0-9]{4}" "term" => string(6) "[a-z]+" ) protected _defaults => array(2) ( "controller" => string(5) "stats" "action" => string(5) "index" ) protected _route_regex => string(96) "#^statistiky(?:/(?P<team>chicago|rockford))?(?:/(?P<season>[0-9]{4})(?:/(?P<term>[a-z]+))?)?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(5) "Stats" protected _action => string(5) "index" protected _uri => string(30) "statistiky/chicago/2017/season" protected _external => bool FALSE protected _params => array(3) ( "team" => string(7) "chicago" "season" => string(4) "2017" "term" => string(6) "season" ) protected _get => array(1) ( "sort" => string(11) "number-desc" ) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}995 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', [ 996 ':uri' => $this->_uri, 997 ]); 998 } 999 1000 return $this->_client->execute($this); 1001 } 1002 1003 /** 1004 * Returns whether this request is the initial request Kohana received. 1005 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 118 ] » Kohana_Request->execute()
113 /** 114 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 115 * If no source is specified, the URI will be automatically detected. 116 */ 117 echo Request::factory(TRUE, array(), FALSE) 118 ->execute() 119 ->send_headers(TRUE) 120 ->body(); 121 }