MODPATH/pagination/classes/Kohana/Pagination.php [ 124 ]
119
120 // Initialize the $config array
121 $config['group'] = (string) $group;
122
123 // Recursively load requested config groups
124 while (isset($config['group']) AND isset($config_file->$config['group']))
125 {
126 // Temporarily store config group name
127 $group = $config['group'];
128 unset($config['group']);
129
-
MODPATH/pagination/classes/Kohana/Pagination.php [ 124 ] » Kohana_Core::error_handler(arguments)
0
integer 8
1
string(26) "Array to string conversion"
2
string(80) "/home/aradope1/public_html/2018/modules/pagination/classes/Kohana/Pagination.php"
3
integer 124
4
array(3) ( "group" => string(7) "default" "config_file" => object Config_Group(1)
{ public default => array(6) ( "current_page" => array(2) ( "source" => string(12) "query_string" "key" => string(4) "page" ) "total_items" => integer 0 "items_per_page" => integer 10 "view" => string(19) "pagination/floating" "auto_hide" => bool TRUE "first_page_in_url" => bool FALSE ) }
"config" => array(1) ( "group" => string(7) "default" ) )119 120 // Initialize the $config array 121 $config['group'] = (string) $group; 122 123 // Recursively load requested config groups 124 while (isset($config['group']) AND isset($config_file->$config['group'])) 125 { 126 // Temporarily store config group name 127 $group = $config['group']; 128 unset($config['group']); 129
-
MODPATH/pagination/classes/Kohana/Pagination.php [ 85 ] » Kohana_Pagination->config_group()
80 * @return void 81 */ 82 public function __construct(array $config = array(), Request $request = NULL) 83 { 84 // Overwrite system defaults with application defaults 85 $this->config = $this->config_group() + $this->config; 86 87 // Assing Request 88 if ($request === NULL) 89 { 90 $request = Request::current();
-
MODPATH/pagination/classes/Kohana/Pagination.php [ 73 ] » Kohana_Pagination->__construct(arguments)
0
array(6) ( "current_page" => array(2) ( "source" => string(12) "query_string" "key" => string(4) "page" ) "total_items" => integer 4 "view" => string(22) "stuff/pagination/admin" "current_first_item" => integer 0 "items_per_page" => integer 10 "auto_hide" => integer 1 )
1
NULL
68 * @param array configuration 69 * @return Pagination 70 */ 71 public static function factory(array $config = array(), Request $request = NULL) 72 { 73 return new Pagination($config, $request); 74 } 75 76 /** 77 * Creates a new Pagination object. 78 *
-
APPPATH/classes/Controller/Public/Index.php [ 302 ] » Kohana_Pagination::factory(arguments)
0
array(6) ( "current_page" => array(2) ( "source" => string(12) "query_string" "key" => string(4) "page" ) "total_items" => integer 4 "view" => string(22) "stuff/pagination/admin" "current_first_item" => integer 0 "items_per_page" => integer 10 "auto_hide" => integer 1 )
297 'current_page' => array('source' => 'query_string', 'key' => 'page'), 298 'total_items' => count($news), 299 'view' => 'stuff/pagination/admin', 300 'current_first_item' => 0, 301 'items_per_page' => 10, 302 'auto_hide' => 1 303 )); 304 $this->template->view->pagination = $pagination; 305 } 306 307 }
-
SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Public_Index->action_news()
79 array(':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 [ 97 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Public_Index(4)
{ public template => object View(2)
{ protected _file => string(69) "/home/aradope1/public_html/2018/application/views/aradopen/layout.php" protected _data => array(1) ( "view" => object View(2)
public auto_render => bool TRUE public request => object Request(19){ protected _file => string(76) "/home/aradope1/public_html/2018/application/views/aradopen/pages/en/news.php" protected _data => array(1) ( "news" => object Database_MySQLi_Result(7)
) }{ protected _internal_row => integer 0 protected _query => string(536) "SELECT `article`.`id` AS `id`, `article`.`type` AS `type`, `article`.`title` AS `title`, `article`.`alias` AS `alias`, `article` …" protected _result => object mysqli_result(5)
) }{ public current_field => NULL public field_count => NULL public lengths => NULL public num_rows => NULL public type => NULL }
protected _total_rows => integer 4 protected _current_row => integer 0 protected _as_object => string(13) "Model_Article" protected _object_params => NULL }{ 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 _filters => array(0) protected _uri => string(30) "(<lang>/)news(/<alias>(/<id>))" protected _regex => array(0) protected _defaults => array(4) ( "controller" => string(5) "index" "action" => string(4) "news" "directory" => string(6) "public" "lang" => string(2) "ro" ) protected _route_regex => string(93) "#^(?:(?P<lang>[^/.,;?\n]++)/)?news(?:/(?P<alias>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(6) "Public" protected _controller => string(5) "Index" protected _action => string(4) "news" protected _uri => string(7) "en/news" protected _external => bool FALSE protected _params => array(1) ( "lang" => string(2) "en" ) 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" }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(19)
{ 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 _filters => array(0) protected _uri => string(30) "(<lang>/)news(/<alias>(/<id>))" protected _regex => array(0) protected _defaults => array(4) ( "controller" => string(5) "index" "action" => string(4) "news" "directory" => string(6) "public" "lang" => string(2) "ro" ) protected _route_regex => string(93) "#^(?:(?P<lang>[^/.,;?\n]++)/)?news(?:/(?P<alias>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(6) "Public" protected _controller => string(5) "Index" protected _action => string(4) "news" protected _uri => string(7) "en/news" protected _external => bool FALSE protected _params => array(1) ( "lang" => string(2) "en" ) 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))
-
SYSPATH/classes/Kohana/Request.php [ 997 ] » 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 FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(30) "(<lang>/)news(/<alias>(/<id>))" protected _regex => array(0) protected _defaults => array(4) ( "controller" => string(5) "index" "action" => string(4) "news" "directory" => string(6) "public" "lang" => string(2) "ro" ) protected _route_regex => string(93) "#^(?:(?P<lang>[^/.,;?\n]++)/)?news(?:/(?P<alias>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(6) "Public" protected _controller => string(5) "Index" protected _action => string(4) "news" protected _uri => string(7) "en/news" protected _external => bool FALSE protected _params => array(1) ( "lang" => string(2) "en" ) 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) }
}992 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 993 ':uri' => $this->_uri, 994 )); 995 } 996 997 return $this->_client->execute($this); 998 } 999 1000 /** 1001 * Returns whether this request is the initial request Kohana received. 1002 * 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 }