MODPATH/database/classes/Kohana/Database/MySQLi.php [ 171 ]
166 {
167 // This benchmark is worthless
168 Profiler::delete($benchmark);
169 }
170
171 throw new Database_Exception(':error [ :query ]', [
172 ':error' => $this->_connection->error,
173 ':query' => $sql
174 ], $this->_connection->errno);
175 }
176
-
MODPATH/database/classes/Kohana/Database/Query.php [ 251 ] » Kohana_Database_MySQLi->query(arguments)
0
integer 1
1
string(501) "SELECT `users`.`username`, IF(newstype_id =9,1,0) as wichtig, `news`.`id` AS `id`, `news`.`headline` AS `headline`, `news`.`shor …"
2
string(10) "Model_News"
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 [ 1212 ] » Kohana_Database_Query->execute(arguments)
0
object Database_MySQLi(6)
{ protected _connection_id => string(40) "9c24117627c9ef59712951dfcf23ba32b5bdc989" protected _identifier => string(1) "`" public last_query => string(310) "SELECT `date`, `news`.`id` AS `id`, `news`.`headline` AS `headline`, `news`.`shorttext` AS `shorttext`, `news`.`largetext` AS `l …" protected _instance => string(7) "default" protected _connection => object mysqli(18)
{ public affected_rows => NULL public client_info => NULL public client_version => NULL public connect_errno => NULL public connect_error => NULL public errno => NULL public error => NULL public error_list => NULL public field_count => NULL public host_info => NULL public info => NULL public insert_id => NULL public server_info => NULL public server_version => NULL public sqlstate => NULL public protocol_version => NULL public thread_id => NULL public warning_count => NULL }
protected _config => array(6) ( "type" => string(6) "MySQLi" "connection" => array(4) ( "hostname" => string(27) "www.schachverein-waltrop.de" "database" => string(13) "44075m34282_1" "persistent" => bool FALSE "ssl" => NULL ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE "profiling" => bool TRUE ) }1207 } 1208 1209 if ($multiple === TRUE) 1210 { 1211 // Return database iterator casting to this object type 1212 $result = $this->_db_builder->as_object(get_class($this))->execute($this->_db); 1213 1214 $this->reset(); 1215 1216 return $result; 1217 }
-
MODPATH/orm/classes/Kohana/ORM.php [ 1153 ] » Kohana_ORM->_load_result(arguments)
0
bool TRUE
1148 } 1149 } 1150 1151 $this->_build(Database::SELECT); 1152 1153 return $this->_load_result(TRUE); 1154 } 1155 1156 /** 1157 * Returns an array of columns to include in the select query. This method 1158 * can be overridden to change the default select behavior.
-
APPPATH/classes/Controller/News.php [ 37 ] » Kohana_ORM->find_all()
32 { 33 $jahrDB=ORM::factory('News')->select('date')->where('id','=',$markierteNews)->find(); 34 $jahr=substr($jahrDB->date,0,4); 35 } 36 37 $news = ORM::factory('News')->select('users.username',DB::expr('IF(newstype_id =9,1,0) as wichtig'))->join('users','LEFT')->on('users.id','=','users_id')->and_where_open()->where('news.date','>=',$jahr.'-01-01')->where('date','<',$jahr.'-12-31')->and_where_close()->order_by('wichtig','DESC')->order_by('date','DESC')->order_by('news.id','DESC')->limit(2000)->find_all(); 38 39 $this->template->content = View::factory('news/archiv')->bind('news',$news)->bind('wahl',$markierteNews)->bind('directory',$this->directory)->bind('kommentar',$post['text']); 40 } 41 42
-
SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_News->action_archiv()
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_News(6)
{ protected directory => string(27) "assets/images/uploads/news/" public message => NULL public template => object View(2)
{ protected _file => string(72) "/data/web/1/000/044/075/165711/htdocs/svw/application/views/template.php" protected _data => array(1) ( "nav_right" => object View(2)
public auto_render => bool TRUE public request => object Request(19){ protected _file => string(75) "/data/web/1/000/044/075/165711/htdocs/svw/application/views/right/right.php" protected _data => array(2) ( "kal_datum" => integer 1710802800 "monatvor" => integer 0 ) }
) }{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool TRUE protected _referrer => string(46) "http://www.schachverein-waltrop.de/news/archiv" protected _route => object Route(5)
public response => object Response(5){ protected _filters => array(0) protected _uri => string(29) "news/<action>(/<id>(/<jahr>))" protected _regex => array(1) ( "action" => string(58) "(index|mannschaften|intern|add|edit|del|delcomment|archiv)" ) protected _defaults => array(1) ( "controller" => string(4) "news" ) protected _route_regex => string(135) "#^news/(?P<action>(index|mannschaften|intern|add|edit|del|delcomment|archiv))(?:/(?P<id>[^/.,;?\n]++)(?:/(?P<jahr>[^/.,;?\n]++)) …" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(4) "News" protected _action => string(6) "archiv" protected _uri => string(11) "news/archiv" protected _external => bool FALSE protected _params => array(0) protected _get => array(0) 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.1" }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.1" protected _secure => bool TRUE protected _referrer => string(46) "http://www.schachverein-waltrop.de/news/archiv" protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(29) "news/<action>(/<id>(/<jahr>))" protected _regex => array(1) ( "action" => string(58) "(index|mannschaften|intern|add|edit|del|delcomment|archiv)" ) protected _defaults => array(1) ( "controller" => string(4) "news" ) protected _route_regex => string(135) "#^news/(?P<action>(index|mannschaften|intern|add|edit|del|delcomment|archiv))(?:/(?P<id>[^/.,;?\n]++)(?:/(?P<jahr>[^/.,;?\n]++)) …" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(4) "News" protected _action => string(6) "archiv" protected _uri => string(11) "news/archiv" protected _external => bool FALSE protected _params => array(0) protected _get => array(0) 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.1" }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.1" protected _secure => bool TRUE protected _referrer => string(46) "http://www.schachverein-waltrop.de/news/archiv" protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(29) "news/<action>(/<id>(/<jahr>))" protected _regex => array(1) ( "action" => string(58) "(index|mannschaften|intern|add|edit|del|delcomment|archiv)" ) protected _defaults => array(1) ( "controller" => string(4) "news" ) protected _route_regex => string(135) "#^news/(?P<action>(index|mannschaften|intern|add|edit|del|delcomment|archiv))(?:/(?P<id>[^/.,;?\n]++)(?:/(?P<jahr>[^/.,;?\n]++)) …" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(4) "News" protected _action => string(6) "archiv" protected _uri => string(11) "news/archiv" protected _external => bool FALSE protected _params => array(0) protected _get => array(0) 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 [ 124 ] » Kohana_Request->execute()
119 /** 120 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 121 * If no source is specified, the URI will be automatically detected. 122 */ 123 echo Request::factory(TRUE, array(), FALSE) 124 ->execute() 125 ->send_headers(TRUE) 126 ->body(); 127 } 128 // !korrigieren so ist die statistik an 129 if(LOCAL)