APPPATH/classes/controller/app/offer.php [ 13 ]
8 $offer = $this->request->param('id');
9
10 $offer = ORM::factory('Offer', $offer);
11
12 if(!$offer->loaded()) {
13 throw new Kohana_HTTP_Exception_404();
14 }
15
16 $category = ORM::factory('OfferCategory', $offer->category_id);
17
18 $path = $category->getPath($category);
-
MODPATH/app/classes/controller/app/core.php [ 235 ] » Controller_App_Offer->_init_breadcrumbs()
230 $this->_check_access(); 231 $this->_init_language(); 232 } 233 234 protected function _initialize_template_variables() { 235 $this->_init_breadcrumbs(); 236 $this->_init_feedback_msg(); 237 238 View::set_global('active_user', $this->_active_user); 239 } 240
-
MODPATH/app/classes/controller/app/core.php [ 82 ] » Controller_App_Core->_initialize_template_variables()
77 $this->_initialize(); 78 79 $this->_init_main_content(); 80 if ($this->_has_layout()) { 81 $this->_init_title(); 82 $this->_initialize_template_variables(); 83 } 84 } 85 86 public function disableLeftColumn() { 87 $this->_leftColumn = false;
-
{PHP internal call} » Controller_App_Core->before()
-
SYSPATH/classes/kohana/request/client/internal.php [ 103 ] » ReflectionMethod->invoke(arguments)
0
object Controller_App_Offer(17)
{ protected _leftColumn => bool TRUE protected _language => object Model_Language(34)
{ protected _belongs_to => array(1) ( "currencies" => array(2) ( "model" => string(8) "currency" "foreign_key" => string(11) "currency_id" ) ) protected _has_one => array(0) protected _has_many => array(0) protected _load_with => array(0) protected _validation => NULL protected _object => array(13) ( "id" => string(1) "1" "code" => string(2) "pl" "name" => string(6) "polski" "timezone" => string(13) "Europe/Warsaw" "locale" => string(34) "pl_PL.utf-8;pl;Polish_Poland.28592" "document_code" => string(5) "pl-pl" "native_name" => string(6) "polski" "date_format" => string(10) "YYYY-mm-dd" "is_active" => string(1) "1" "is_default" => string(1) "1" "currency_id" => string(1) "1" "decimal_value" => string(1) "1" "order" => string(1) "1" ) protected _changed => array(0) protected _original_values => array(13) ( "id" => string(1) "1" "code" => string(2) "pl" "name" => string(6) "polski" "timezone" => string(13) "Europe/Warsaw" "locale" => string(34) "pl_PL.utf-8;pl;Polish_Poland.28592" "document_code" => string(5) "pl-pl" "native_name" => string(6) "polski" "date_format" => string(10) "YYYY-mm-dd" "is_active" => string(1) "1" "is_default" => string(1) "1" "currency_id" => string(1) "1" "decimal_value" => string(1) "1" "order" => string(1) "1" ) protected _related => array(0) protected _valid => bool TRUE protected _loaded => bool TRUE protected _saved => bool FALSE protected _sorting => NULL protected _foreign_key_suffix => string(3) "_id" protected _object_name => string(8) "language" protected _object_plural => string(9) "languages" protected _table_name => string(9) "languages" protected _table_columns => array(13) ( "id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(2) "id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 1 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(14) "auto_increment" "key" => string(3) "PRI" "privileges" => string(31) "select,insert,update,references" ) "code" => array(12) ( "type" => string(6) "string" "column_name" => string(4) "code" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 2 "character_maximum_length" => string(1) "5" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "name" => array(12) ( "type" => string(6) "string" "column_name" => string(4) "name" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 3 "character_maximum_length" => string(2) "25" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "timezone" => array(12) ( "type" => string(6) "string" "column_name" => string(8) "timezone" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 4 "character_maximum_length" => string(2) "50" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "locale" => array(12) ( "type" => string(6) "string" "column_name" => string(6) "locale" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 5 "character_maximum_length" => string(2) "50" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "document_code" => array(12) ( "type" => string(6) "string" "column_name" => string(13) "document_code" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 6 "character_maximum_length" => string(2) "50" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "native_name" => array(12) ( "type" => string(6) "string" "column_name" => string(11) "native_name" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 7 "character_maximum_length" => string(2) "25" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "date_format" => array(12) ( "type" => string(6) "string" "column_name" => string(11) "date_format" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 8 "character_maximum_length" => string(2) "50" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(25) "Format wyświetlania daty" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "is_active" => array(13) ( "type" => string(3) "int" "min" => string(4) "-128" "max" => string(3) "127" "column_name" => string(9) "is_active" "column_default" => NULL "data_type" => string(7) "tinyint" "is_nullable" => bool FALSE "ordinal_position" => integer 9 "display" => string(1) "1" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "is_default" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(3) "255" "column_name" => string(10) "is_default" "column_default" => string(1) "0" "data_type" => string(16) "tinyint unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 10 "display" => string(1) "1" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "currency_id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(11) "currency_id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 11 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "decimal_value" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(13) "decimal_value" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 12 "display" => string(2) "10" "comment" => string(36) "Wartość dziesiętna identyfikatora" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "order" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(5) "order" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 13 "display" => string(1) "5" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) ) protected _updated_column => NULL protected _created_column => NULL protected _serialize_columns => array(0) protected _primary_key => string(2) "id" protected _primary_key_value => string(1) "1" protected _table_names_plural => bool TRUE protected _reload_on_wakeup => bool TRUE protected _db => object Database_MySQL(6)
protected _name => string(5) "offer" protected _action => string(4) "show" protected _title => string(16) "title.offer.show" protected _main_content => object View(2){ protected _connection_id => string(40) "c4a6069cb3d200fad36fe1d915ffa95baa1addbe" protected _identifier => string(1) "`" public last_query => string(75) "SELECT `offer`.* FROM `offers` AS `offer` WHERE `offer`.`id` = '24' LIMIT 1" protected _instance => string(7) "default" protected _connection => resource(mysql link) protected _config => array(6) ( "type" => string(5) "mysql" "connection" => array(3) ( "hostname" => string(14) "67806.m.tld.pl" "database" => string(12) "baza67806_15" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE "profiling" => bool TRUE ) }
protected _db_group => NULL protected _db_applied => array(0) protected _db_pending => array(0) protected _db_reset => bool TRUE protected _db_builder => NULL protected _with_applied => array(0) protected _cast_data => array(0) protected _errors_filename => string(8) "language" }{ protected _file => string(84) "/home/users/centrummielec/public_html/centrummielec/application/views/offer/show.php" protected _data => array(0) }
protected _actions_without_template => array(0) protected _auth => object Auth_ORM(2){ protected _session => object Session_Native(5)
protected _active_user => bool FALSE protected _breadcrumbs => object Breadcrumbs(2){ protected _name => string(7) "session" protected _lifetime => integer 0 protected _encrypted => bool FALSE protected _data => array(0) protected _destroyed => bool FALSE }
protected _config => object Config_Group(7){ public driver => string(3) "orm" public hash_method => string(6) "sha256" public hash_key => string(16) "fhagskjaghs27fas" public lifetime => integer 1209600 public session_type => string(6) "native" public session_key => string(9) "auth_user" public users => array(0) }
}{ protected items => array(1) ( 0 => object BreadCrumbs_Item(2)
protected _feedback_msg => NULL protected _has_default_title => bool TRUE public template => object View(2){ public uri => string(0) "" public title => string(15) "Strona główna" }
) protected separator => string(7) "»" }{ protected _file => string(82) "/home/users/centrummielec/public_html/centrummielec/application/views/template.php" protected _data => array(0) }
public auto_render => bool TRUE public request => object Request(21){ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool TRUE protected _referrer => string(107) "http://centrummielec.pl/o/24-dom-wybudowany-na-dzialce-95-arow-znajdujacej-sie-w-miejscowosci-gizowa-borowa" protected _route => object Route(5)
public response => object Response(5){ protected _callback => NULL protected _uri => string(14) "o/<id>-<title>" protected _regex => array(2) ( "id" => string(6) "[0-9]+" "title" => string(15) "[0-9a-zA-Z\-_]+" ) protected _defaults => array(3) ( "directory" => string(3) "app" "controller" => string(5) "offer" "action" => string(4) "show" ) protected _route_regex => string(49) "#^o/(?P<id>[0-9]+)-(?P<title>[0-9a-zA-Z\-_]+)$#uD" }
protected _routes => NULL protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }{ }
protected _body => NULL protected _directory => string(3) "app" protected _controller => string(5) "offer" protected _action => string(4) "show" protected _uri => string(83) "o/24-dom-wybudowany-na-dzialce-95-arow-znajdujacej-sie-w-miejscowosci-gizowa-borowa" protected _external => bool FALSE protected _params => array(2) ( "id" => string(2) "24" "title" => string(78) "dom-wybudowany-na-dzialce-95-arow-znajdujacej-sie-w-miejscowosci-gizowa-borowa" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
public _injected_routes => array(0) }{ protected _status => integer 200 protected _header => object HTTP_Header(0)
public _acl => object ACL(3){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }{ protected _acl => object Config_Group(15)
}{ public app.disabled => string(1) "*" public welcome => string(1) "*" public index => string(1) "*" public page => string(1) "*" public article => string(1) "*" public articlecategory => string(1) "*" public member => string(1) "*" public partner => string(1) "*" public menu => string(1) "*" public gallery => string(1) "*" public calendar => string(1) "*" public newsletter => string(1) "*" public test => string(1) "*" public offercategory => string(1) "*" public offer => string(1) "*" }
protected _user => bool FALSE protected _required_role => string(1) "*" }98 } 99 100 // Create a new instance of the controller 101 $controller = $class->newInstance($request, $request->response() ? $request->response() : $request->create_response()); 102 103 $class->getMethod('before')->invoke($controller); 104 105 // Determine the action to use 106 $action = $request->action(); 107 108 $params = $request->param();
-
SYSPATH/classes/kohana/request/client.php [ 64 ] » Kohana_Request_Client_Internal->execute_request(arguments)
0
object Request(21)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool TRUE protected _referrer => string(107) "http://centrummielec.pl/o/24-dom-wybudowany-na-dzialce-95-arow-znajdujacej-sie-w-miejscowosci-gizowa-borowa" protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(14) "o/<id>-<title>" protected _regex => array(2) ( "id" => string(6) "[0-9]+" "title" => string(15) "[0-9a-zA-Z\-_]+" ) protected _defaults => array(3) ( "directory" => string(3) "app" "controller" => string(5) "offer" "action" => string(4) "show" ) protected _route_regex => string(49) "#^o/(?P<id>[0-9]+)-(?P<title>[0-9a-zA-Z\-_]+)$#uD" }
protected _routes => NULL protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }{ }
protected _body => NULL protected _directory => string(3) "app" protected _controller => string(5) "offer" protected _action => string(4) "show" protected _uri => string(83) "o/24-dom-wybudowany-na-dzialce-95-arow-znajdujacej-sie-w-miejscowosci-gizowa-borowa" protected _external => bool FALSE protected _params => array(2) ( "id" => string(2) "24" "title" => string(78) "dom-wybudowany-na-dzialce-95-arow-znajdujacej-sie-w-miejscowosci-gizowa-borowa" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
public _injected_routes => array(0) }59 public function execute(Request $request) 60 { 61 if ($this->_cache instanceof HTTP_Cache) 62 return $this->_cache->execute($this, $request); 63 64 return $this->execute_request($request); 65 } 66 67 /** 68 * Processes the request passed to it and returns the response from 69 * the URI resource identified.
-
SYSPATH/classes/kohana/request.php [ 1138 ] » Kohana_Request_Client->execute(arguments)
0
object Request(21)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool TRUE protected _referrer => string(107) "http://centrummielec.pl/o/24-dom-wybudowany-na-dzialce-95-arow-znajdujacej-sie-w-miejscowosci-gizowa-borowa" protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(14) "o/<id>-<title>" protected _regex => array(2) ( "id" => string(6) "[0-9]+" "title" => string(15) "[0-9a-zA-Z\-_]+" ) protected _defaults => array(3) ( "directory" => string(3) "app" "controller" => string(5) "offer" "action" => string(4) "show" ) protected _route_regex => string(49) "#^o/(?P<id>[0-9]+)-(?P<title>[0-9a-zA-Z\-_]+)$#uD" }
protected _routes => NULL protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }{ }
protected _body => NULL protected _directory => string(3) "app" protected _controller => string(5) "offer" protected _action => string(4) "show" protected _uri => string(83) "o/24-dom-wybudowany-na-dzialce-95-arow-znajdujacej-sie-w-miejscowosci-gizowa-borowa" protected _external => bool FALSE protected _params => array(2) ( "id" => string(2) "24" "title" => string(78) "dom-wybudowany-na-dzialce-95-arow-znajdujacej-sie-w-miejscowosci-gizowa-borowa" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
public _injected_routes => array(0) }1133 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 1134 ':uri' => $this->_uri, 1135 )); 1136 } 1137 1138 return $this->_client->execute($this); 1139 } 1140 1141 /** 1142 * Returns whether this request is the initial request Kohana received. 1143 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 112 ] » Kohana_Request->execute()
107 /** 108 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 109 * If no source is specified, the URI will be automatically detected. 110 */ 111 echo Request::factory() 112 ->execute() 113 ->send_headers() 114 ->body();