SYSPATH/classes/Kohana/Session.php [ 324 ]
319 }
320 }
321 catch (Exception $e)
322 {
323 // Error reading the session, usually a corrupt session.
324 throw new Session_Exception('Error reading session data.', NULL, Session_Exception::SESSION_CORRUPT);
325 }
326
327 if (is_array($data))
328 {
329 // Load the data locally
-
SYSPATH/classes/Kohana/Session.php [ 125 ] » Kohana_Session->read(arguments)
0NULL
120 // Enable or disable encryption of data 121 $this->_encrypted = $config['encrypted']; 122 } 123 124 // Load the session 125 $this->read($id); 126 } 127 128 /** 129 * Session object is rendered to a serialized string. If encryption is 130 * enabled, the session will be encrypted. If not, the output string will -
SYSPATH/classes/Kohana/Session.php [ 54 ] » Kohana_Session->__construct(arguments)
0NULL
1NULL
49 50 // Set the session class name 51 $class = 'Session_'.ucfirst($type); 52 53 // Create a new session instance 54 Session::$instances[$type] = $session = new $class($config, $id); 55 56 // Write the session at shutdown 57 register_shutdown_function(array($session, 'write')); 58 } 59 -
APPPATH/classes/Controller/Main.php [ 49 ] » Kohana_Session::instance()
44 public function before() 45 { 46 // Helpers::vardump(Kohana::$config->load('auth')); 47 // Helpers::vardump(Kohana::$config->load('session')); 48 // die(); 49 $this->session = Session::instance(); 50 $this->me = $this->session->get('auth_me'); 51 $this->directory = $this->request->directory(); 52 $this->action = $this->request->action(); 53 $this->controller = $this->request->controller(); 54 if ((is_array($this->me)) && (isset($this->me['sub'])) && ($this->me['sub'] != '')) { -
SYSPATH/classes/Kohana/Controller.php [ 69 ] » Controller_Main->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 [ 96 ] » ReflectionMethod->invoke(arguments)
0object Controller_Dashboard(35)
{ public logged => bool FALSE public needs_logged => bool TRUE public me => bool FALSE public title => string(5) "Admin" public session => NULL public action => NULL public controller => NULL public directory => NULL public meta => array(0) public styles => array(0) public head_scripts => array(0) public body_scripts => array(0) public footer_scripts => array(0) public urls => array(0) public site_url => NULL public alerts => array(0) public template => string(13) "layout/nouser" public result => array(2) ( "success" => bool FALSE "list" => array(0) ) public available_warehouses => array(0) public selected_warehouse => NULL public available_merchants => array(0) public selected_merchant => NULL public available_channels => array(0) public selected_channel => NULL public default_channel => NULL public available_carriers => array(0) public selected_carrier => NULL public menu_top => NULL public menu_left => NULL public sidebar_right => NULL public sidebar_left => bool TRUE public skin => string(6) "purple" public auto_render => bool TRUE public request => object Request(19){ public * _requested_with => NULL public * _method => string(3) "GET" public * _protocol => string(8) "HTTP/2.0" public * _secure => bool TRUE public * _referrer => NULL public * _route => object Route(5)public response => object Response(5){ public * _filters => array(1) ( 0 => object Closure(1)public * _routes => array(0) public * _header => object HTTP_Header(0){ public 0 => object Closure(1) { *RECURSION* } }) public * _uri => string(32) "(<controller>)(/<id>)(/<action>)" public * _regex => array(3) ( "controller" => string(10) "[a-zA-Z_]+" "id" => string(6) "[0-9]+" "action" => string(10) "[a-zA-Z_]+" ) public * _defaults => array(3) ( "direcotry" => string(1) "/" "controller" => string(9) "Dashboard" "action" => string(5) "index" ) public * _route_regex => string(85) "#^(?:(?P<controller>[a-zA-Z_]+))?(?:/(?P<id>[0-9]+))?(?:/(?P<action>[a-zA-Z_]+))?$#uD" }{ }public * _body => NULL public * _directory => string(0) "" public * _controller => string(9) "Dashboard" public * _action => string(5) "index" public * _uri => string(0) "" public * _external => bool FALSE public * _params => array(1) ( "direcotry" => string(1) "/" ) public * _get => array(0) public * _post => array(0) public * _cookies => array(0) public * _client => object Request_Client_Internal(9){ public * _previous_environment => NULL public * _cache => NULL public * _follow => bool FALSE public * _follow_headers => array(1) ( 0 => string(13) "Authorization" ) public * _strict_redirect => bool TRUE public * _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) public * _max_callback_depth => integer 5 public * _callback_depth => integer 1 public * _callback_params => array(0) }}{ public * _status => integer 200 public * _header => object HTTP_Header(0)}{ }public * _body => string(0) "" public * _cookies => array(0) public * _protocol => string(8) "HTTP/2.0" }91 92 // Create a new instance of the controller 93 $controller = $class->newInstance($request, $response); 94 95 // Run the controller's execute() method 96 $response = $class->getMethod('execute')->invoke($controller); 97 98 if (!$response instanceof Response) { 99 // Controller failed to return a Response. 100 throw new Kohana_Exception('Controller failed to return a Response'); 101 } -
SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)
0object Request(19)
{ public * _requested_with => NULL public * _method => string(3) "GET" public * _protocol => string(8) "HTTP/2.0" public * _secure => bool TRUE public * _referrer => NULL public * _route => object Route(5){ public * _filters => array(1) ( 0 => object Closure(1)public * _routes => array(0) public * _header => object HTTP_Header(0){ public 0 => object Closure(1) { *RECURSION* } }) public * _uri => string(32) "(<controller>)(/<id>)(/<action>)" public * _regex => array(3) ( "controller" => string(10) "[a-zA-Z_]+" "id" => string(6) "[0-9]+" "action" => string(10) "[a-zA-Z_]+" ) public * _defaults => array(3) ( "direcotry" => string(1) "/" "controller" => string(9) "Dashboard" "action" => string(5) "index" ) public * _route_regex => string(85) "#^(?:(?P<controller>[a-zA-Z_]+))?(?:/(?P<id>[0-9]+))?(?:/(?P<action>[a-zA-Z_]+))?$#uD" }{ }public * _body => NULL public * _directory => string(0) "" public * _controller => string(9) "Dashboard" public * _action => string(5) "index" public * _uri => string(0) "" public * _external => bool FALSE public * _params => array(1) ( "direcotry" => string(1) "/" ) public * _get => array(0) public * _post => array(0) public * _cookies => array(0) public * _client => object Request_Client_Internal(9){ public * _previous_environment => NULL public * _cache => NULL public * _follow => bool FALSE public * _follow_headers => array(1) ( 0 => string(13) "Authorization" ) public * _strict_redirect => bool TRUE public * _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) public * _max_callback_depth => integer 5 public * _callback_depth => integer 1 public * _callback_params => array(0) }}1object Response(5)
{ public * _status => integer 200 public * _header => object HTTP_Header(0){ }public * _body => string(0) "" public * _cookies => array(0) public * _protocol => string(8) "HTTP/2.0" }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 [ 986 ] » Kohana_Request_Client->execute(arguments)
0object Request(19)
{ public * _requested_with => NULL public * _method => string(3) "GET" public * _protocol => string(8) "HTTP/2.0" public * _secure => bool TRUE public * _referrer => NULL public * _route => object Route(5){ public * _filters => array(1) ( 0 => object Closure(1)public * _routes => array(0) public * _header => object HTTP_Header(0){ public 0 => object Closure(1) { *RECURSION* } }) public * _uri => string(32) "(<controller>)(/<id>)(/<action>)" public * _regex => array(3) ( "controller" => string(10) "[a-zA-Z_]+" "id" => string(6) "[0-9]+" "action" => string(10) "[a-zA-Z_]+" ) public * _defaults => array(3) ( "direcotry" => string(1) "/" "controller" => string(9) "Dashboard" "action" => string(5) "index" ) public * _route_regex => string(85) "#^(?:(?P<controller>[a-zA-Z_]+))?(?:/(?P<id>[0-9]+))?(?:/(?P<action>[a-zA-Z_]+))?$#uD" }{ }public * _body => NULL public * _directory => string(0) "" public * _controller => string(9) "Dashboard" public * _action => string(5) "index" public * _uri => string(0) "" public * _external => bool FALSE public * _params => array(1) ( "direcotry" => string(1) "/" ) public * _get => array(0) public * _post => array(0) public * _cookies => array(0) public * _client => object Request_Client_Internal(9){ public * _previous_environment => NULL public * _cache => NULL public * _follow => bool FALSE public * _follow_headers => array(1) ( 0 => string(13) "Authorization" ) public * _strict_redirect => bool TRUE public * _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) public * _max_callback_depth => integer 5 public * _callback_depth => integer 1 public * _callback_params => array(0) }}981 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 982 ':uri' => $this->_uri, 983 )); 984 } 985 986 return $this->_client->execute($this); 987 } 988 989 /** 990 * Returns whether this request is the initial request Kohana received. 991 * Can be used to test for sub requests. -
DOCROOT/index.php [ 5 ] » Kohana_Request->execute()
1 <?php 2 define('DOCROOT', realpath(dirname(__FILE__)) . DIRECTORY_SEPARATOR); 3 require $docroot . 'common.php'; 4 echo Request::factory(true, array(), false) 5 ->execute() 6 ->send_headers(true) 7 ->body();