MODPATH/_internal/database/classes/Kohana/Database/MySQLi.php [ 163 ]
158 // Benchmark this query for the current instance
159 $benchmark = Profiler::start("Database ({$this->_instance})", $sql);
160 }
161
162 // Execute the query
163 if (($result = $this->_connection->query($sql)) === FALSE)
164 {
165 if (isset($benchmark))
166 {
167 // This benchmark is worthless
168 Profiler::delete($benchmark);
-
{PHP internal call} » Kohana_Core::error_handler(arguments)
0
integer 2
1
string(43) "mysqli::query(): MySQL server has gone away"
2
string(85) "/var/www/meczenazywo.tv/modules/_internal/database/classes/Kohana/Database/MySQLi.php"
3
integer 163
4
array(4) ( "type" => integer 1 "sql" => string(7638) "SELECT `_pl`.`highlight_id` AS `:highlight_id`, `_pl`.`lang_id` AS `:lang_id`, `_pl`.`name` AS `:name`, `_pl`.`name_alternative` …" "as_object" => bool FALSE "params" => array(0) )
-
MODPATH/_internal/database/classes/Kohana/Database/MySQLi.php [ 163 ] » mysqli->query(arguments)
0
string(7638) "SELECT `_pl`.`highlight_id` AS `:highlight_id`, `_pl`.`lang_id` AS `:lang_id`, `_pl`.`name` AS `:name`, `_pl`.`name_alternative` …"
158 // Benchmark this query for the current instance 159 $benchmark = Profiler::start("Database ({$this->_instance})", $sql); 160 } 161 162 // Execute the query 163 if (($result = $this->_connection->query($sql)) === FALSE) 164 { 165 if (isset($benchmark)) 166 { 167 // This benchmark is worthless 168 Profiler::delete($benchmark);
-
MODPATH/_internal/database/classes/Kohana/Database/Query.php [ 251 ] » Kohana_Database_MySQLi->query(arguments)
0
integer 1
1
string(7638) "SELECT `_pl`.`highlight_id` AS `:highlight_id`, `_pl`.`lang_id` AS `:lang_id`, `_pl`.`name` AS `:name`, `_pl`.`name_alternative` …"
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);
-
MODPATH/_internal/orm/classes/Kohana/ORM.php [ 1424 ] » Kohana_Database_Query->execute(arguments)
0
object Database_MySQLi(6)
{ protected _connection_id => string(40) "7475350e76a08985fa785d5afbc944ed70fc870f" protected _identifier => string(1) "`" public last_query => string(7424) "SELECT `events`.`id` AS `:id`, `events`.`event_cat_id` AS `:event_cat_id`, `events`.`banner_id` AS `:banner_id`, `events`.`lsp_i …" protected _instance => string(7) "default" protected _connection => object mysqli(19)
{ 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 stat => NULL public sqlstate => NULL public protocol_version => NULL public thread_id => NULL public warning_count => NULL }
protected _config => array(5) ( "type" => string(6) "MySQLi" "connection" => array(3) ( "hostname" => string(11) "192.168.1.2" "database" => string(5) "m24tv" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE ) }1419 // Return database iterator casting to this object type 1420 $result = $this->_db_builder->as_object(clone $this)->execute($this->_db); 1421 //$result = $result->_get_parent(NULL); 1422 } else { 1423 // Return database result as assoc 1424 $result = $this->_db_builder->as_assoc()->execute($this->_db); 1425 } 1426 $this->reset(); 1427 1428 return $result; 1429 }
-
MODPATH/_internal/orm/classes/Kohana/ORM.php [ 1227 ] » Kohana_ORM->_load_result(arguments)
0
bool TRUE
1
bool TRUE
1222 $this->with($alias); 1223 } 1224 } 1225 $this->_select_columns(); 1226 $this->_build(Database::SELECT); 1227 $result = $this->_load_result(TRUE, $as_array); 1228 if ($tree) { 1229 $hierarchical = TRUE; 1230 } 1231 if ($as_array === FALSE) { 1232 return $result;
-
MODPATH/sport/classes/Model/Highlight.php [ 64 ] » Kohana_ORM->find_all(arguments)
0
bool TRUE
1
bool TRUE
2
bool TRUE
59 } 60 if ($offset) { 61 $return = $return->offset($offset); 62 } 63 $return = $return 64 ->find_all(TRUE, TRUE, TRUE); 65 // var_dump($return); 66 return $return; 67 } 68 69 public function export($limit = NULL, $video = 0) {
-
MODPATH/sport/classes/Module/Highlights/New.php [ 8 ] » Model_Highlight->listing(arguments)
0
integer 5
1
integer 0
2
bool FALSE
3 defined('SYSPATH') or die('No direct script access.'); 4 5 class Module_Highlights_New extends Module { 6 7 protected function _data() { 8 return ORM::factory('highlight')->order_by('promoted', 'DESC')->order_by('meczenazywo_id', 'DESC')->listing(5, 0, FALSE); 9 } 10 }
-
MODPATH/_internal/module/classes/Kohana/Module.php [ 59 ] » Module_Highlights_New->_data()
54 55 public function data() { 56 if (isset($this->_data)) { 57 return $this->_data; 58 } else { 59 return $this->_data = $this->_data(); 60 } 61 } 62 63 public function render() { 64 return $this->view->render();
-
MODPATH/_internal/module/classes/Kohana/Module.php [ 49 ] » Kohana_Module->data()
44 $this->_initialize(); 45 } 46 47 protected function _initialize() { 48 $this->view->set(array( 49 'data' => $this->data() 50 )); 51 } 52 53 protected abstract function _data(); 54
-
MODPATH/_internal/module/classes/Kohana/Module.php [ 44 ] » Kohana_Module->_initialize()
39 } 40 $this->view->set($init_data); 41 $this->view->_init_data = $init_data; 42 $this->view->_params = $this->_params; 43 $this->_main_placeholder = $this->view->_main_placeholder = isset($this->_init_data['placeholder_id']) && $this->_init_data['placeholder_id'] == 3 && isset($this->_init_data['first']) && $this->_init_data['first']; 44 $this->_initialize(); 45 } 46 47 protected function _initialize() { 48 $this->view->set(array( 49 'data' => $this->data()
-
MODPATH/_internal/module/classes/Kohana/Module.php [ 21 ] » Kohana_Module->__construct(arguments)
0
array(19) ( "id" => string(14) "Highlights_New" "placeholder_id" => string(1) "1" "active" => string(1) "1" "desktop" => string(1) "1" "mobile" => string(1) "0" "panel" => string(1) "0" "sensile" => string(1) "0" "order" => string(1) "3" "cache" => string(3) "300" "module_name" => string(14) "Highlights_New" "exclude" => string(0) "" "include" => string(0) "" "params" => bool FALSE "module_id" => string(2) "35" "lang_id" => string(1) "1" "name" => string(25) "Najnowsze skróty meczów" "content" => string(0) "" "first" => bool FALSE "h1" => bool FALSE )
16 foreach ($module as &$value) { 17 $value = ucfirst($value); 18 } 19 $module = implode('_', $module); 20 $data['id'] = $data['module_name']; 21 return new $module($data); 22 } 23 24 public function __construct($init_data = NULL) { 25 $this->name = strtolower($init_data['module_name']); 26 $this->_init_data = $init_data;
-
APPPATH/classes/Controller/Template.php [ 168 ] » Kohana_Module::factory(arguments)
0
string(21) "Module_Highlights_New"
1
array(19) ( "id" => string(14) "Highlights_New" "placeholder_id" => string(1) "1" "active" => string(1) "1" "desktop" => string(1) "1" "mobile" => string(1) "0" "panel" => string(1) "0" "sensile" => string(1) "0" "order" => string(1) "3" "cache" => string(3) "300" "module_name" => string(14) "Highlights_New" "exclude" => string(0) "" "include" => string(0) "" "params" => string(0) "" "module_id" => string(2) "35" "lang_id" => string(1) "1" "name" => string(25) "Najnowsze skróty meczów" "content" => string(0) "" "first" => bool FALSE "h1" => bool FALSE )
163 } 164 165 if (!$cache = Cache::instance()->get($module_name)) { 166 if ($module['module_name']) { 167 $benchmark = Profiler::start('Modules', $module['module_name']); 168 $cache = Module::factory($module['module_name'], $module); 169 Profiler::stop($benchmark); 170 } else { 171 if ($module['panel']) { 172 $cache = Twig::factory('snippets/module.twig', array('title' => $module['name'], 'inc' => $module['content'])); 173 } else {
-
APPPATH/classes/Controller/Template.php [ 92 ] » Controller_Template->_init()
87 'controller' => strtolower($this->request->controller()), 88 'action' => strtolower($this->request->action()), 89 ) + $this->request->param()); 90 $this->template->_show_profiler = isset($_GET['d3bug']); 91 $this->template->_profiler = View::factory('profiler/stats'); 92 $this->_init(); 93 } 94 } 95 96 protected function _init() { 97 HTML::add_style(array(
-
SYSPATH/classes/Kohana/Controller.php [ 69 ] » Controller_Template->before()
64 * @return Response 65 */ 66 public function execute() 67 { 68 // Execute the "before action" method 69 $this->before(); 70 71 // Determine the action to use 72 $action = 'action_'.$this->request->action(); 73 74 // If the action doesn't exist, it's a 404
-
{PHP internal call} » Kohana_Controller->execute()
-
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)
0
object Controller_User(9)
{ public secure_actions => array(1) ( "edit" => string(5) "login" ) protected _title => string(17) "Konto - Logowanie" public environment => object Twig_Environment(26)
{ protected charset => string(5) "UTF-8" protected loader => object Twig_Loader_Theme(1)
public auto_render => bool TRUE public template => object Twig(4){ protected cache => NULL }
protected debug => bool TRUE protected autoReload => bool TRUE protected cache => string(46) "/var/www/meczenazywo.tv/application/cache/twig" protected lexer => NULL protected parser => NULL protected compiler => NULL protected baseTemplateClass => string(13) "Twig_Template" protected extensions => array(7) ( "core" => object Twig_Extension_Core(4){ protected dateFormats => array(2) ( 0 => string(10) "F j, Y H:i" 1 => string(7) "%d days" ) protected numberFormat => array(3) ( 0 => integer 0 1 => string(1) "." 2 => string(1) " " ) protected timezone => NULL protected escapers => array(0) }
"escaper" => object Twig_Extension_Escaper(1){ protected defaultStrategy => bool FALSE }
"optimizer" => object Twig_Extension_Optimizer(1){ protected optimizers => integer -1 }
"kohana_twig" => object Kohana_Twig_Extensions(0){ }
"Text" => object Twig_Extension_Text(0){ }
"debug" => object Twig_Extension_Debug(0){ }
"string_loader" => object Twig_Extension_StringLoader(0){ }
) protected parsers => NULL protected visitors => NULL protected filters => NULL protected tests => NULL protected functions => NULL protected globals => NULL protected runtimeInitialized => bool FALSE protected extensionInitialized => bool FALSE protected loadedTemplates => NULL protected strictVariables => bool FALSE protected unaryOperators => NULL protected binaryOperators => NULL protected templateClassPrefix => string(15) "__TwigTemplate_" protected functionCallbacks => array(0) protected filterCallbacks => array(0) protected staging => object Twig_Extension_Staging(6){ protected functions => array(0) protected filters => array(0) protected visitors => array(0) protected tokenParsers => array(0) protected globals => array(0) protected tests => array(0) }
}{ protected _file => string(11) "User/signin" protected _extension => string(4) "twig" protected _data => array(10) ( "title" => array(0) "base" => string(1) "/" "path" => string(1) "/" "lang" => string(2) "pl" "domain" => string(20) "https://hdmecze.com/" "lang_icon" => string(6) "pl.png" "page" => string(23) "page-user action-signin" "placeholders" => array(3) ( "center" => array(1) ( 0 => object Module_Banner(7) { ... } ) "right" => array(5) ( 0 => string(295) "<div class="module module-facts"> <strong class="title"> …" 1 => object Module_Banner(7) { ... } 2 => object Module_Bookmakers_Bonus(8) { ... } 3 => object Module_Banner(7) { ... } 4 => object Module_Banner(7) { ... } ) "top" => array(2) ( 0 => string(1398) "<div class="module module-tv_new"> <strong class="title"> …" 1 => object Module_Review_New(8) { ... } ) ) "_show_profiler" => bool FALSE "_profiler" => object View(2)
public auth_required => bool FALSE public request => object Request(20){ protected _file => string(60) "/var/www/meczenazywo.tv/application/views/profiler/stats.php" protected _data => array(0) }
) protected _environment => object Twig_Environment(26){ protected charset => string(5) "UTF-8" protected loader => object Twig_Loader_Theme(1)
}{ protected cache => NULL }
protected debug => bool TRUE protected autoReload => bool TRUE protected cache => string(46) "/var/www/meczenazywo.tv/application/cache/twig" protected lexer => NULL protected parser => NULL protected compiler => NULL protected baseTemplateClass => string(13) "Twig_Template" protected extensions => array(7) ( "core" => object Twig_Extension_Core(4){ protected dateFormats => array(2) ( ... ) protected numberFormat => array(3) ( ... ) protected timezone => NULL protected escapers => array(0) }
"escaper" => object Twig_Extension_Escaper(1){ protected defaultStrategy => bool FALSE }
"optimizer" => object Twig_Extension_Optimizer(1){ protected optimizers => integer -1 }
"kohana_twig" => object Kohana_Twig_Extensions(0){ }
"Text" => object Twig_Extension_Text(0){ }
"debug" => object Twig_Extension_Debug(0){ }
"string_loader" => object Twig_Extension_StringLoader(0){ }
) protected parsers => NULL protected visitors => NULL protected filters => NULL protected tests => NULL protected functions => NULL protected globals => NULL protected runtimeInitialized => bool FALSE protected extensionInitialized => bool FALSE protected loadedTemplates => NULL protected strictVariables => bool FALSE protected unaryOperators => NULL protected binaryOperators => NULL protected templateClassPrefix => string(15) "__TwigTemplate_" protected functionCallbacks => array(0) protected filterCallbacks => array(0) protected staging => object Twig_Extension_Staging(6){ protected functions => array(0) protected filters => array(0) protected visitors => array(0) protected tokenParsers => array(0) protected globals => array(0) protected tests => array(0) }
}{ protected _is_mobile => NULL protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool TRUE protected _referrer => string(39) "https://hdmecze.com/link/dodaj/0/269261" protected _route => object Route(9)
public response => object Response(5){ protected _translate => array(2) ( "<controller>" => bool TRUE "<action>" => bool TRUE ) protected _uri_source => string(43) "(<controller>)(/<action>)(/<id>)(/p,<page>)" protected _regex_source => array(1) ( "page" => string(6) "[0-9]+" ) protected _filters => array(0) protected _uri => string(43) "(<controller>)(/<action>)(/<id>)(/p,<page>)" protected _regex => array(1) ( "page" => string(6) "[0-9]+" ) protected _defaults => array(4) ( "controller" => string(10) "wydarzenia" "action" => string(5) "lista" "id" => string(0) "" "page" => integer 1 ) protected _route_regex => string(119) "#^(?:(?P<controller>[^/.,;?\n]++))?(?:/(?P<action>[^/.,;?\n]++))?(?:/(?P<id>[^/.,;?\n]++))?(?:/p,(?P<page>[0-9]+))?$#uD" public _defaults_source => array(4) ( "controller" => string(4) "home" "action" => string(5) "index" "id" => string(0) "" "page" => integer 1 ) }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(4) "User" protected _action => string(6) "signin" protected _uri => string(11) "user/signin" protected _external => bool FALSE protected _params => array(2) ( "id" => string(0) "" "page" => integer 1 ) 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)
public session => object Session_Native(5){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }{ protected _name => string(7) "session" protected _lifetime => integer 0 protected _encrypted => bool FALSE protected _data => array(0) protected _destroyed => bool FALSE }
}92 93 // Create a new instance of the controller 94 $controller = $class->newInstance($request, $response); 95 96 // Run the controller's execute() method 97 $response = $class->getMethod('execute')->invoke($controller); 98 99 if ( ! $response instanceof Response) 100 { 101 // Controller failed to return a Response. 102 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(20)
{ protected _is_mobile => NULL protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool TRUE protected _referrer => string(39) "https://hdmecze.com/link/dodaj/0/269261" protected _route => object Route(9)
{ protected _translate => array(2) ( "<controller>" => bool TRUE "<action>" => bool TRUE ) protected _uri_source => string(43) "(<controller>)(/<action>)(/<id>)(/p,<page>)" protected _regex_source => array(1) ( "page" => string(6) "[0-9]+" ) protected _filters => array(0) protected _uri => string(43) "(<controller>)(/<action>)(/<id>)(/p,<page>)" protected _regex => array(1) ( "page" => string(6) "[0-9]+" ) protected _defaults => array(4) ( "controller" => string(10) "wydarzenia" "action" => string(5) "lista" "id" => string(0) "" "page" => integer 1 ) protected _route_regex => string(119) "#^(?:(?P<controller>[^/.,;?\n]++))?(?:/(?P<action>[^/.,;?\n]++))?(?:/(?P<id>[^/.,;?\n]++))?(?:/p,(?P<page>[0-9]+))?$#uD" public _defaults_source => array(4) ( "controller" => string(4) "home" "action" => string(5) "index" "id" => string(0) "" "page" => integer 1 ) }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(4) "User" protected _action => string(6) "signin" protected _uri => string(11) "user/signin" protected _external => bool FALSE protected _params => array(2) ( "id" => string(0) "" "page" => integer 1 ) 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(array('_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))
-
APPPATH/classes/Request.php [ 153 ] » Kohana_Request_Client->execute(arguments)
0
object Request(20)
{ protected _is_mobile => NULL protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool TRUE protected _referrer => string(39) "https://hdmecze.com/link/dodaj/0/269261" protected _route => object Route(9)
{ protected _translate => array(2) ( "<controller>" => bool TRUE "<action>" => bool TRUE ) protected _uri_source => string(43) "(<controller>)(/<action>)(/<id>)(/p,<page>)" protected _regex_source => array(1) ( "page" => string(6) "[0-9]+" ) protected _filters => array(0) protected _uri => string(43) "(<controller>)(/<action>)(/<id>)(/p,<page>)" protected _regex => array(1) ( "page" => string(6) "[0-9]+" ) protected _defaults => array(4) ( "controller" => string(10) "wydarzenia" "action" => string(5) "lista" "id" => string(0) "" "page" => integer 1 ) protected _route_regex => string(119) "#^(?:(?P<controller>[^/.,;?\n]++))?(?:/(?P<action>[^/.,;?\n]++))?(?:/(?P<id>[^/.,;?\n]++))?(?:/p,(?P<page>[0-9]+))?$#uD" public _defaults_source => array(4) ( "controller" => string(4) "home" "action" => string(5) "index" "id" => string(0) "" "page" => integer 1 ) }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(4) "User" protected _action => string(6) "signin" protected _uri => string(11) "user/signin" protected _external => bool FALSE protected _params => array(2) ( "id" => string(0) "" "page" => integer 1 ) 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) }
}148 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 149 ':uri' => $this->_uri, 150 )); 151 } 152 153 return $this->_client->execute($this); 154 } 155 156 /** 157 * Generates a relative URI for the current route. 158 *
-
DOCROOT/index.php [ 353 ] » Request->execute()
348 */ 349 350 //try 351 //{ 352 echo Request::factory() 353 ->execute() 354 ->send_headers() 355 ->body(); 356 //} 357 //catch (Exception $e) 358 //{