APPPATH/classes/Controller/Website.php [ 220 ]
215 $this -> template -> set('content', json_encode(array("status"=>"0","text"=>$text)));
216 $this->response->body(json_encode(array("status"=>"0","text"=>$text)) );
217 return false;
218 }else{
219 //Log::instance()->add(Log::ERROR,'hasedit false checkEditingPermission else');
220 throw new Kohana_Exception($text);
221 }
222
223
224 //Log::instance()->add(Log::ERROR,'checkEditingPermission vege');
225 /*throw new Kohana_Exception(
-
APPPATH/classes/Controller/Owner.php [ 248 ] » Controller_Website->checkEditingPermission(arguments)
0
object Model_Owner(34)
{ protected _belongs_to => array(3) ( "primary_user" => array(2) ( "foreign_key" => string(15) "primary_user_id" "model" => string(4) "User" ) "defbreed" => array(2) ( "foreign_key" => string(11) "defbreed_id" "model" => string(5) "Breed" ) "user" => array(2) ( "foreign_key" => string(7) "user_id" "model" => string(4) "User" ) ) protected _has_many => array(5) ( "kennels" => array(4) ( "foreign_key" => string(8) "owner_id" "through" => NULL "far_key" => string(9) "kennel_id" "model" => string(6) "Kennel" ) "coOwnedKennels" => array(4) ( "foreign_key" => string(10) "coowner_id" "through" => NULL "far_key" => string(16) "coownedkennel_id" "model" => string(6) "Kennel" ) "dogs" => array(4) ( "foreign_key" => string(8) "owner_id" "through" => NULL "far_key" => string(6) "dog_id" "model" => string(3) "Dog" ) "entries" => array(4) ( "foreign_key" => string(10) "handler_id" "through" => NULL "far_key" => string(8) "entry_id" "model" => string(5) "Entry" ) "attachments" => array(4) ( "foreign_key" => string(6) "obj_id" "through" => NULL "far_key" => string(13) "attachment_id" "model" => string(10) "Attachment" ) ) protected _has_one => array(0) protected _load_with => array(0) protected _validation => NULL protected _object => array(41) ( "id" => NULL "name" => NULL "email" => NULL "email_public" => NULL "country" => NULL "country_public" => NULL "city" => NULL "city_public" => NULL "address" => NULL "address_public" => NULL "phone" => NULL "phone_public" => NULL "name_public" => NULL "primary_user_id" => NULL "protected" => NULL "user_id" => NULL "updated" => NULL "created" => NULL "meoecard_id" => NULL "meoecardvalidyear" => NULL "meoecardissuer" => NULL "birthdate" => NULL "birthdate_public" => NULL "agilityteam" => NULL "defbreed_id" => NULL "webpage" => NULL "postcode" => NULL "postcode_public" => NULL "postcode_letter" => NULL "country_letter" => NULL "city_letter" => NULL "address_letter" => NULL "letter_address_public" => NULL "asbapproved" => NULL "meoeemail" => NULL "meoename" => NULL "meoenamehash" => NULL "meoeemailhash" => NULL "meoecard_id_latest" => NULL "meoecardvalidyear_latest" => NULL "meoecardissuer_latest" => NULL ) protected _changed => array(0) protected _original_values => array(0) protected _related => array(0) protected _valid => bool FALSE protected _loaded => bool FALSE protected _saved => bool FALSE protected _sorting => NULL protected _foreign_key_suffix => string(3) "_id" protected _object_name => string(5) "owner" protected _object_plural => string(6) "owners" protected _table_name => string(6) "owners" protected _table_columns => array(41) ( "id" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(2) "id" "column_default" => NULL "data_type" => string(3) "int" "is_nullable" => bool FALSE "ordinal_position" => integer 1 "display" => string(2) "11" "comment" => string(0) "" "extra" => string(14) "auto_increment" "key" => string(3) "PRI" "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 2 "character_maximum_length" => string(3) "300" "collation_name" => string(17) "utf8_hungarian_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "email" => array(12) ( "type" => string(6) "string" "column_name" => string(5) "email" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool TRUE "ordinal_position" => integer 3 "character_maximum_length" => string(3) "300" "collation_name" => string(17) "utf8_hungarian_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "email_public" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(12) "email_public" "column_default" => string(1) "0" "data_type" => string(3) "int" "is_nullable" => bool FALSE "ordinal_position" => integer 4 "display" => string(2) "11" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "country" => array(12) ( "type" => string(6) "string" "column_name" => string(7) "country" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool TRUE "ordinal_position" => integer 5 "character_maximum_length" => string(3) "300" "collation_name" => string(17) "utf8_hungarian_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "country_public" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(14) "country_public" "column_default" => string(1) "0" "data_type" => string(3) "int" "is_nullable" => bool FALSE "ordinal_position" => integer 6 "display" => string(2) "11" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "city" => array(12) ( "type" => string(6) "string" "column_name" => string(4) "city" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool TRUE "ordinal_position" => integer 7 "character_maximum_length" => string(3) "300" "collation_name" => string(17) "utf8_hungarian_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "city_public" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(11) "city_public" "column_default" => string(1) "0" "data_type" => string(3) "int" "is_nullable" => bool FALSE "ordinal_position" => integer 8 "display" => string(2) "11" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "address" => array(12) ( "type" => string(6) "string" "column_name" => string(7) "address" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool TRUE "ordinal_position" => integer 9 "character_maximum_length" => string(3) "300" "collation_name" => string(17) "utf8_hungarian_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "address_public" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(14) "address_public" "column_default" => string(1) "0" "data_type" => string(3) "int" "is_nullable" => bool FALSE "ordinal_position" => integer 10 "display" => string(2) "11" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "phone" => array(12) ( "type" => string(6) "string" "column_name" => string(5) "phone" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool TRUE "ordinal_position" => integer 11 "character_maximum_length" => string(3) "300" "collation_name" => string(17) "utf8_hungarian_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "phone_public" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(12) "phone_public" "column_default" => string(1) "0" "data_type" => string(3) "int" "is_nullable" => bool FALSE "ordinal_position" => integer 12 "display" => string(2) "11" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "name_public" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(11) "name_public" "column_default" => string(1) "1" "data_type" => string(3) "int" "is_nullable" => bool FALSE "ordinal_position" => integer 13 "display" => string(1) "1" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "primary_user_id" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(15) "primary_user_id" "column_default" => NULL "data_type" => string(3) "int" "is_nullable" => bool TRUE "ordinal_position" => integer 14 "display" => string(2) "11" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "protected" => array(13) ( "type" => string(3) "int" "min" => string(4) "-128" "max" => string(3) "127" "column_name" => string(9) "protected" "column_default" => string(1) "1" "data_type" => string(7) "tinyint" "is_nullable" => bool FALSE "ordinal_position" => integer 15 "display" => string(1) "4" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "user_id" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(7) "user_id" "column_default" => NULL "data_type" => string(3) "int" "is_nullable" => bool TRUE "ordinal_position" => integer 16 "display" => string(2) "11" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "updated" => array(10) ( "type" => string(6) "string" "column_name" => string(7) "updated" "column_default" => NULL "data_type" => string(8) "datetime" "is_nullable" => bool TRUE "ordinal_position" => integer 17 "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "created" => array(10) ( "type" => string(6) "string" "column_name" => string(7) "created" "column_default" => NULL "data_type" => string(8) "datetime" "is_nullable" => bool TRUE "ordinal_position" => integer 18 "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "meoecard_id" => array(12) ( "type" => string(6) "string" "column_name" => string(11) "meoecard_id" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool TRUE "ordinal_position" => integer 19 "character_maximum_length" => string(2) "20" "collation_name" => string(17) "utf8_hungarian_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "meoecardvalidyear" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(17) "meoecardvalidyear" "column_default" => NULL "data_type" => string(3) "int" "is_nullable" => bool TRUE "ordinal_position" => integer 20 "display" => string(2) "11" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "meoecardissuer" => array(12) ( "type" => string(6) "string" "column_name" => string(14) "meoecardissuer" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool TRUE "ordinal_position" => integer 21 "character_maximum_length" => string(3) "200" "collation_name" => string(17) "utf8_hungarian_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "birthdate" => array(10) ( "type" => string(6) "string" "column_name" => string(9) "birthdate" "column_default" => NULL "data_type" => string(4) "date" "is_nullable" => bool TRUE "ordinal_position" => integer 22 "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "birthdate_public" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(16) "birthdate_public" "column_default" => string(1) "0" "data_type" => string(3) "int" "is_nullable" => bool FALSE "ordinal_position" => integer 23 "display" => string(2) "11" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "agilityteam" => array(12) ( "type" => string(6) "string" "column_name" => string(11) "agilityteam" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool TRUE "ordinal_position" => integer 24 "character_maximum_length" => string(3) "200" "collation_name" => string(17) "utf8_hungarian_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "defbreed_id" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(11) "defbreed_id" "column_default" => NULL "data_type" => string(3) "int" "is_nullable" => bool TRUE "ordinal_position" => integer 25 "display" => string(2) "11" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "webpage" => array(12) ( "type" => string(6) "string" "column_name" => string(7) "webpage" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool TRUE "ordinal_position" => integer 26 "character_maximum_length" => string(3) "200" "collation_name" => string(17) "utf8_hungarian_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "postcode" => array(12) ( "type" => string(6) "string" "column_name" => string(8) "postcode" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool TRUE "ordinal_position" => integer 27 "character_maximum_length" => string(2) "10" "collation_name" => string(17) "utf8_hungarian_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "postcode_public" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(15) "postcode_public" "column_default" => string(1) "0" "data_type" => string(3) "int" "is_nullable" => bool FALSE "ordinal_position" => integer 28 "display" => string(2) "11" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "postcode_letter" => array(12) ( "type" => string(6) "string" "column_name" => string(15) "postcode_letter" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool TRUE "ordinal_position" => integer 29 "character_maximum_length" => string(2) "10" "collation_name" => string(17) "utf8_hungarian_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "country_letter" => array(12) ( "type" => string(6) "string" "column_name" => string(14) "country_letter" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool TRUE "ordinal_position" => integer 30 "character_maximum_length" => string(3) "100" "collation_name" => string(17) "utf8_hungarian_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "city_letter" => array(12) ( "type" => string(6) "string" "column_name" => string(11) "city_letter" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool TRUE "ordinal_position" => integer 31 "character_maximum_length" => string(3) "100" "collation_name" => string(17) "utf8_hungarian_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "address_letter" => array(12) ( "type" => string(6) "string" "column_name" => string(14) "address_letter" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool TRUE "ordinal_position" => integer 32 "character_maximum_length" => string(3) "300" "collation_name" => string(17) "utf8_hungarian_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "letter_address_public" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(21) "letter_address_public" "column_default" => string(1) "0" "data_type" => string(3) "int" "is_nullable" => bool FALSE "ordinal_position" => integer 33 "display" => string(2) "11" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "asbapproved" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(11) "asbapproved" "column_default" => string(1) "0" "data_type" => string(3) "int" "is_nullable" => bool FALSE "ordinal_position" => integer 34 "display" => string(1) "1" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "meoeemail" => array(12) ( "type" => string(6) "string" "column_name" => string(9) "meoeemail" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool TRUE "ordinal_position" => integer 35 "character_maximum_length" => string(3) "100" "collation_name" => string(17) "utf8_hungarian_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "meoename" => array(12) ( "type" => string(6) "string" "column_name" => string(8) "meoename" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool TRUE "ordinal_position" => integer 36 "character_maximum_length" => string(3) "255" "collation_name" => string(17) "utf8_hungarian_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "meoenamehash" => array(12) ( "type" => string(6) "string" "column_name" => string(12) "meoenamehash" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool TRUE "ordinal_position" => integer 37 "character_maximum_length" => string(3) "255" "collation_name" => string(17) "utf8_hungarian_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "meoeemailhash" => array(12) ( "type" => string(6) "string" "column_name" => string(13) "meoeemailhash" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool TRUE "ordinal_position" => integer 38 "character_maximum_length" => string(3) "255" "collation_name" => string(17) "utf8_hungarian_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "meoecard_id_latest" => array(12) ( "type" => string(6) "string" "column_name" => string(18) "meoecard_id_latest" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool TRUE "ordinal_position" => integer 39 "character_maximum_length" => string(2) "20" "collation_name" => string(17) "utf8_hungarian_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "meoecardvalidyear_latest" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(24) "meoecardvalidyear_latest" "column_default" => NULL "data_type" => string(3) "int" "is_nullable" => bool TRUE "ordinal_position" => integer 40 "display" => string(2) "11" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "meoecardissuer_latest" => array(12) ( "type" => string(6) "string" "column_name" => string(21) "meoecardissuer_latest" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool TRUE "ordinal_position" => integer 41 "character_maximum_length" => string(3) "200" "collation_name" => string(17) "utf8_hungarian_ci" "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 => NULL protected _table_names_plural => bool TRUE protected _reload_on_wakeup => bool TRUE protected _db => object Database_MySQLi(6)
{ protected _connection_id => string(40) "5d78326a12c96b7aac0276e6e64ae8cf772ab8f5" protected _identifier => string(1) "`" public last_query => string(1729) "SELECT `owner`.`id` AS `id`, `owner`.`name` AS `name`, `owner`.`email` AS `email`, `owner`.`email_public` AS `email_public`, `ow …" protected _instance => string(7) "default" protected _connection => object mysqli(19)
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(5) "owner" }{ 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(9) "localhost" "database" => string(12) "dogresultcom" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE ) }243 $view->owner = $owner; 244 $hasEditingPermission = $this ->hasEditingPermission($owner); 245 $hasAdminRight = Auth::instance()->logged_in(self::ADMIN_ROLE); 246 247 if($owner->name_public == 0){ 248 $this->checkEditingPermission($owner); 249 } 250 else 251 { 252 if(!$hasEditingPermission){ 253 if($owner->email_public == 0){
-
SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Owner->action_view()
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_Owner(14)
{ protected user => NULL protected otheruser => NULL protected lang => string(2) "hu" protected lang_url => string(18) "/en/owner/view/544" protected lang_url_text => NULL protected keyword => NULL protected meta_description => NULL protected registerCSS => array(0) protected registerJS => array(0) protected registerJSHead => array(0) public template => object View(2)
{ protected _file => string(55) "/var/www/dogresult/application/views/resulttemplate.php" protected _data => array(1) ( "chartContent" => string(0) "" ) }
public auto_render => bool TRUE public request => 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)
public response => object Response(5){ protected _filters => array(0) protected _uri => string(41) "(<lang>/)(<controller>(/<action>(/<id>)))" protected _regex => array(2) ( "lang" => string(10) "(hu|en|xx)" "id" => string(2) ".+" ) protected _defaults => array(3) ( "lang" => string(2) "hu" "controller" => string(5) "event" "action" => string(5) "index" ) protected _route_regex => string(111) "#^(?:(?P<lang>(hu|en|xx))/)?(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>.+))?)?)?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(5) "Owner" protected _action => string(4) "view" protected _uri => string(17) "hu/owner/view/544" protected _external => bool FALSE protected _params => array(2) ( "lang" => string(2) "hu" "id" => string(3) "544" ) 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(41) "(<lang>/)(<controller>(/<action>(/<id>)))" protected _regex => array(2) ( "lang" => string(10) "(hu|en|xx)" "id" => string(2) ".+" ) protected _defaults => array(3) ( "lang" => string(2) "hu" "controller" => string(5) "event" "action" => string(5) "index" ) protected _route_regex => string(111) "#^(?:(?P<lang>(hu|en|xx))/)?(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>.+))?)?)?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(5) "Owner" protected _action => string(4) "view" protected _uri => string(17) "hu/owner/view/544" protected _external => bool FALSE protected _params => array(2) ( "lang" => string(2) "hu" "id" => string(3) "544" ) 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(41) "(<lang>/)(<controller>(/<action>(/<id>)))" protected _regex => array(2) ( "lang" => string(10) "(hu|en|xx)" "id" => string(2) ".+" ) protected _defaults => array(3) ( "lang" => string(2) "hu" "controller" => string(5) "event" "action" => string(5) "index" ) protected _route_regex => string(111) "#^(?:(?P<lang>(hu|en|xx))/)?(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>.+))?)?)?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(5) "Owner" protected _action => string(4) "view" protected _uri => string(17) "hu/owner/view/544" protected _external => bool FALSE protected _params => array(2) ( "lang" => string(2) "hu" "id" => string(3) "544" ) 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 [ 125 ] » Kohana_Request->execute()
120 /** 121 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 122 * If no source is specified, the URI will be automatically detected. 123 */ 124 echo Request::factory(TRUE, array(), FALSE) 125 ->execute() 126 ->send_headers(TRUE) 127 ->body(); 128 }