SYSPATH/classes/kohana/text.php [ 75 ]
70
71 preg_match('/^\s*+(?:\S++\s*+){1,'.$limit.'}/u', $str, $matches);
72
73 // Only attach the end character if the matched string is shorter
74 // than the starting string.
75 return rtrim($matches[0]).((strlen($matches[0]) === strlen($str)) ? '' : $end_char);
76 }
77
78 /**
79 * Limits a phrase to a given number of characters.
80 *
-
SYSPATH/classes/kohana/text.php [ 75 ] » Kohana_Core::error_handler()
70 71 preg_match('/^\s*+(?:\S++\s*+){1,'.$limit.'}/u', $str, $matches); 72 73 // Only attach the end character if the matched string is shorter 74 // than the starting string. 75 return rtrim($matches[0]).((strlen($matches[0]) === strlen($str)) ? '' : $end_char); 76 } 77 78 /** 79 * Limits a phrase to a given number of characters. 80 *
-
APPPATH/views/blog/read.php [ 25 ] » Kohana_Text::limit_words(arguments)
0
string(29959) "{Ограниченный выбор игр – Часто бесплатные вращения действительны только на определенном онлайн-слоте или нескольких слотах.|В д …"
1
integer 150
2
string(3) "..."
20 </h4> 21 22 <div class="clear"></div> 23 <hr /> 24 <div class="clear"></div> 25 <p><?php echo Text::limit_words($com->message, 150, '...') ?></p> 26 </div> 27 <?php endforeach; ?> 28 <?php 29 //echo '<a href="'.Url::base().Route::get('blog')->uri(array('action'=>'read', 'id'=>$data->category->uri, 'id2'=>$data->uri)).'" class="more">[ czytaj całość ]</a>'; 30 echo '</div>';
-
SYSPATH/classes/kohana/view.php [ 61 ] » include(arguments)
0
string(42) "/framework/application/views/blog/read.php"
56 ob_start(); 57 58 try 59 { 60 // Load the view within the current scope 61 include $kohana_view_filename; 62 } 63 catch (Exception $e) 64 { 65 // Delete the output buffer 66 ob_end_clean();
-
SYSPATH/classes/kohana/view.php [ 343 ] » Kohana_View::capture(arguments)
0
string(42) "/framework/application/views/blog/read.php"
338 { 339 throw new View_Exception('You must set the file to use within your view before rendering'); 340 } 341 342 // Combine local and global data and capture the output 343 return View::capture($this->_file, $this->_data); 344 } 345 346 } // End View
-
SYSPATH/classes/kohana/view.php [ 228 ] » Kohana_View->render()
223 */ 224 public function __toString() 225 { 226 try 227 { 228 return $this->render(); 229 } 230 catch (Exception $e) 231 { 232 // Display the exception message 233 Kohana_Exception::handler($e);
-
SYSPATH/classes/kohana/response.php [ 160 ] » Kohana_View->__toString()
155 public function body($content = NULL) 156 { 157 if ($content === NULL) 158 return $this->_body; 159 160 $this->_body = (string) $content; 161 return $this; 162 } 163 164 /** 165 * Gets or sets the HTTP protocol. The standard protocol to use
-
APPPATH/classes/controller/page.php [ 27 ] » Kohana_Response->body(arguments)
0
object View(2)
{ protected _file => string(42) "/framework/application/views/blog/read.php" protected _data => array(1) ( "data" => object Model_News(34)
{ protected _table_name => string(4) "news" protected _has_many => array(1) ( "comment" => array(4) ( "model" => string(7) "comment" "foreign_key" => string(7) "post_id" "through" => NULL "far_key" => string(10) "comment_id" ) ) protected _belongs_to => array(2) ( "category" => array(2) ( "model" => string(10) "categories" "foreign_key" => string(11) "category_id" ) "user" => array(2) ( "model" => string(4) "user" "foreign_key" => string(6) "author" ) ) protected _has_one => array(0) protected _load_with => array(0) protected _validation => NULL protected _object => array(11) ( "id" => string(3) "139" "author" => string(1) "1" "title" => string(28) "O tym, jak zabijają słowa " "content" => string(6237) "<div style="text-align: justify;"> Dotykają nas negatywne opinie o sobie. Bardziej do siebie bierzemy jeden wyraz krytyki niż s …" "creation" => string(10) "1584548891" "uri" => string(28) "o-tym-jak-zabijaja-slowa-139" "category_id" => string(1) "7" "name" => string(28) "O tym, jak zabijają słowa " "seo_description" => string(0) "" "seo_keywords" => string(66) "koronawirus, korona, wirus, kielce, profesor, rokita, samobójstwo" "views" => string(1) "1" ) protected _changed => array(0) protected _original_values => array(11) ( "id" => string(3) "139" "author" => string(1) "1" "title" => string(28) "O tym, jak zabijają słowa " "content" => string(6237) "<div style="text-align: justify;"> Dotykają nas negatywne opinie o sobie. Bardziej do siebie bierzemy jeden wyraz krytyki niż s …" "creation" => string(10) "1584548891" "uri" => string(28) "o-tym-jak-zabijaja-slowa-139" "category_id" => string(1) "7" "name" => string(28) "O tym, jak zabijają słowa " "seo_description" => string(0) "" "seo_keywords" => string(66) "koronawirus, korona, wirus, kielce, profesor, rokita, samobójstwo" "views" => string(1) "1" ) protected _related => array(1) ( "category" => object Model_Categories(34)
) }{ protected _table_name => string(15) "news_categories" protected _has_many => array(1) ( "post" => array(4) ( "model" => string(4) "news" "foreign_key" => string(11) "category_id" "through" => NULL "far_key" => string(7) "post_id" ) ) protected _has_one => array(0) protected _belongs_to => array(0) protected _load_with => array(0) protected _validation => NULL protected _object => array(3) ( "id" => string(1) "7" "name" => string(4) "wpis" "uri" => string(4) "wpis" ) protected _changed => array(0) protected _original_values => array(3) ( "id" => string(1) "7" "name" => string(4) "wpis" "uri" => string(4) "wpis" ) 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(10) "categories" protected _object_plural => string(12) "categorieses" protected _table_columns => array(3) ( "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" ) "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) "255" "collation_name" => string(15) "utf8_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "uri" => array(12) ( "type" => string(6) "string" "column_name" => string(3) "uri" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 3 "character_maximum_length" => string(3) "255" "collation_name" => string(15) "utf8_general_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 => string(1) "7" protected _table_names_plural => bool TRUE protected _reload_on_wakeup => bool TRUE protected _db => object Database_MySQL(6)
) 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(4) "news" protected _object_plural => string(4) "news" protected _table_columns => array(11) ( "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" ) "author" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(6) "author" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 2 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "title" => array(12) ( "type" => string(6) "string" "column_name" => string(5) "title" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 3 "character_maximum_length" => string(3) "255" "collation_name" => string(15) "utf8_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "content" => array(12) ( "type" => string(6) "string" "character_maximum_length" => string(5) "65535" "column_name" => string(7) "content" "column_default" => NULL "data_type" => string(4) "text" "is_nullable" => bool FALSE "ordinal_position" => integer 4 "collation_name" => string(15) "utf8_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "creation" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(8) "creation" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 5 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "uri" => array(12) ( "type" => string(6) "string" "column_name" => string(3) "uri" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 6 "character_maximum_length" => string(3) "255" "collation_name" => string(15) "utf8_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "category_id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(11) "category_id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 7 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "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 8 "character_maximum_length" => string(3) "255" "collation_name" => string(15) "utf8_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "seo_description" => array(12) ( "type" => string(6) "string" "column_name" => string(15) "seo_description" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool TRUE "ordinal_position" => integer 9 "character_maximum_length" => string(3) "255" "collation_name" => string(15) "utf8_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "seo_keywords" => array(12) ( "type" => string(6) "string" "column_name" => string(12) "seo_keywords" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool TRUE "ordinal_position" => integer 10 "character_maximum_length" => string(3) "255" "collation_name" => string(15) "utf8_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "views" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(5) "views" "column_default" => string(1) "1" "data_type" => string(3) "int" "is_nullable" => bool FALSE "ordinal_position" => integer 11 "display" => string(2) "11" "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(3) "139" protected _table_names_plural => bool TRUE protected _reload_on_wakeup => bool TRUE protected _db => object Database_MySQL(6){ protected _connection_id => string(40) "d75e51e54ea6062b0d463fb62184dc8814bcda1b" protected _identifier => string(1) "`" public last_query => string(107) "SELECT `comment`.* FROM `news_comments` AS `comment` WHERE `comment`.`post_id` = '139' ORDER BY `date` DESC" protected _instance => string(7) "default" protected _connection => resource(mysql link) protected _config => array(6) ( "type" => string(5) "mysql" "connection" => array(3) ( "hostname" => string(21) "sql.pauladuda.home.pl" "database" => string(10) "pauladuda1" "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(10) "categories" }{ protected _connection_id => string(40) "d75e51e54ea6062b0d463fb62184dc8814bcda1b" protected _identifier => string(1) "`" public last_query => string(107) "SELECT `comment`.* FROM `news_comments` AS `comment` WHERE `comment`.`post_id` = '139' ORDER BY `date` DESC" protected _instance => string(7) "default" protected _connection => resource(mysql link) protected _config => array(6) ( "type" => string(5) "mysql" "connection" => array(3) ( "hostname" => string(21) "sql.pauladuda.home.pl" "database" => string(10) "pauladuda1" "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(4) "news" }22 public function after() 23 { 24 $this->response->body(View::Factory($this->template) 25 ->set('vars', $this->vars) 26 ->set('menu', $this->menu) 27 ->set('body', $this->response->body($this->content)) 28 ->render()); 29 30 } 31 32 }
-
APPPATH/classes/controller/blog.php [ 23 ] » Controller_Page->after()
18 $this->vars['blog_categories'] = ORM::factory('categories')->find_all(); 19 } 20 21 public function after() 22 { 23 parent::after(); 24 } 25 26 public function action_index() 27 { 28 $pagination = Pagination::factory(array(
-
{PHP internal call} » Controller_Blog->after()
-
SYSPATH/classes/kohana/request/client/internal.php [ 121 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Blog(7)
{ public template => string(8) "template" public content => object View(2)
{ protected _file => string(42) "/framework/application/views/blog/read.php" protected _data => array(1) ( "data" => object Model_News(34)
public vars => array(7) ( "keywords" => string(66) "koronawirus, korona, wirus, kielce, profesor, rokita, samobójstwo" "description" => string(0) "" "google" => string(0) "" "title" => string(67) "O tym, jak zabijają słowa » wpis » Blog - Paula Duda" "blog_last" => object Database_MySQL_Result(7){ protected _table_name => string(4) "news" protected _has_many => array(1) ( "comment" => array(4) ( "model" => string(7) "comment" "foreign_key" => string(7) "post_id" "through" => NULL "far_key" => string(10) "comment_id" ) ) protected _belongs_to => array(2) ( "category" => array(2) ( "model" => string(10) "categories" "foreign_key" => string(11) "category_id" ) "user" => array(2) ( "model" => string(4) "user" "foreign_key" => string(6) "author" ) ) protected _has_one => array(0) protected _load_with => array(0) protected _validation => NULL protected _object => array(11) ( "id" => string(3) "139" "author" => string(1) "1" "title" => string(28) "O tym, jak zabijają słowa " "content" => string(6237) "<div style="text-align: justify;"> Dotykają nas negatywne opinie o sobie. Bardziej do siebie bierzemy jeden wyraz krytyki niż s …" "creation" => string(10) "1584548891" "uri" => string(28) "o-tym-jak-zabijaja-slowa-139" "category_id" => string(1) "7" "name" => string(28) "O tym, jak zabijają słowa " "seo_description" => string(0) "" "seo_keywords" => string(66) "koronawirus, korona, wirus, kielce, profesor, rokita, samobójstwo" "views" => string(1) "1" ) protected _changed => array(0) protected _original_values => array(11) ( "id" => string(3) "139" "author" => string(1) "1" "title" => string(28) "O tym, jak zabijają słowa " "content" => string(6237) "<div style="text-align: justify;"> Dotykają nas negatywne opinie o sobie. Bardziej do siebie bierzemy jeden wyraz krytyki niż s …" "creation" => string(10) "1584548891" "uri" => string(28) "o-tym-jak-zabijaja-slowa-139" "category_id" => string(1) "7" "name" => string(28) "O tym, jak zabijają słowa " "seo_description" => string(0) "" "seo_keywords" => string(66) "koronawirus, korona, wirus, kielce, profesor, rokita, samobójstwo" "views" => string(1) "1" ) protected _related => array(1) ( "category" => object Model_Categories(34)
) }{ protected _table_name => string(15) "news_categories" protected _has_many => array(1) ( "post" => array(4) ( "model" => string(4) "news" "foreign_key" => string(11) "category_id" "through" => NULL "far_key" => string(7) "post_id" ) ) protected _has_one => array(0) protected _belongs_to => array(0) protected _load_with => array(0) protected _validation => NULL protected _object => array(3) ( "id" => string(1) "7" "name" => string(4) "wpis" "uri" => string(4) "wpis" ) protected _changed => array(0) protected _original_values => array(3) ( "id" => string(1) "7" "name" => string(4) "wpis" "uri" => string(4) "wpis" ) 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(10) "categories" protected _object_plural => string(12) "categorieses" protected _table_columns => array(3) ( "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" ) "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) "255" "collation_name" => string(15) "utf8_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "uri" => array(12) ( "type" => string(6) "string" "column_name" => string(3) "uri" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 3 "character_maximum_length" => string(3) "255" "collation_name" => string(15) "utf8_general_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 => string(1) "7" protected _table_names_plural => bool TRUE protected _reload_on_wakeup => bool TRUE protected _db => object Database_MySQL(6)
) 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(4) "news" protected _object_plural => string(4) "news" protected _table_columns => array(11) ( "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" ) "author" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(6) "author" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 2 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "title" => array(12) ( "type" => string(6) "string" "column_name" => string(5) "title" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 3 "character_maximum_length" => string(3) "255" "collation_name" => string(15) "utf8_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "content" => array(12) ( "type" => string(6) "string" "character_maximum_length" => string(5) "65535" "column_name" => string(7) "content" "column_default" => NULL "data_type" => string(4) "text" "is_nullable" => bool FALSE "ordinal_position" => integer 4 "collation_name" => string(15) "utf8_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "creation" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(8) "creation" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 5 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "uri" => array(12) ( "type" => string(6) "string" "column_name" => string(3) "uri" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 6 "character_maximum_length" => string(3) "255" "collation_name" => string(15) "utf8_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "category_id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(11) "category_id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 7 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "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 8 "character_maximum_length" => string(3) "255" "collation_name" => string(15) "utf8_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "seo_description" => array(12) ( "type" => string(6) "string" "column_name" => string(15) "seo_description" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool TRUE "ordinal_position" => integer 9 "character_maximum_length" => string(3) "255" "collation_name" => string(15) "utf8_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "seo_keywords" => array(12) ( "type" => string(6) "string" "column_name" => string(12) "seo_keywords" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool TRUE "ordinal_position" => integer 10 "character_maximum_length" => string(3) "255" "collation_name" => string(15) "utf8_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "views" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(5) "views" "column_default" => string(1) "1" "data_type" => string(3) "int" "is_nullable" => bool FALSE "ordinal_position" => integer 11 "display" => string(2) "11" "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(3) "139" protected _table_names_plural => bool TRUE protected _reload_on_wakeup => bool TRUE protected _db => object Database_MySQL(6){ protected _connection_id => string(40) "d75e51e54ea6062b0d463fb62184dc8814bcda1b" protected _identifier => string(1) "`" public last_query => string(107) "SELECT `comment`.* FROM `news_comments` AS `comment` WHERE `comment`.`post_id` = '139' ORDER BY `date` DESC" protected _instance => string(7) "default" protected _connection => resource(mysql link) protected _config => array(6) ( "type" => string(5) "mysql" "connection" => array(3) ( "hostname" => string(21) "sql.pauladuda.home.pl" "database" => string(10) "pauladuda1" "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(10) "categories" }{ protected _connection_id => string(40) "d75e51e54ea6062b0d463fb62184dc8814bcda1b" protected _identifier => string(1) "`" public last_query => string(107) "SELECT `comment`.* FROM `news_comments` AS `comment` WHERE `comment`.`post_id` = '139' ORDER BY `date` DESC" protected _instance => string(7) "default" protected _connection => resource(mysql link) protected _config => array(6) ( "type" => string(5) "mysql" "connection" => array(3) ( "hostname" => string(21) "sql.pauladuda.home.pl" "database" => string(10) "pauladuda1" "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(4) "news" }{ protected _internal_row => integer 0 protected _query => string(64) "SELECT `news`.* FROM `news` AS `news` ORDER BY `id` ASC LIMIT 10" protected _result => resource(mysql result) protected _total_rows => integer 10 protected _current_row => integer 0 protected _as_object => string(10) "Model_News" protected _object_params => NULL }
"blog_topread" => object Database_MySQL_Result(7){ protected _internal_row => integer 0 protected _query => string(67) "SELECT `news`.* FROM `news` AS `news` ORDER BY `views` ASC LIMIT 10" protected _result => resource(mysql result) protected _total_rows => integer 10 protected _current_row => integer 0 protected _as_object => string(10) "Model_News" protected _object_params => NULL }
"blog_categories" => object Database_MySQL_Result(7){ protected _internal_row => integer 0 protected _query => string(60) "SELECT `categories`.* FROM `news_categories` AS `categories`" protected _result => resource(mysql result) protected _total_rows => integer 6 protected _current_row => integer 0 protected _as_object => string(16) "Model_Categories" protected _object_params => NULL }
) public menu => object Database_MySQL_Result(7){ protected _internal_row => integer 0 protected _query => string(77) "SELECT `navigation`.* FROM `navigations` AS `navigation` ORDER BY `order` ASC" protected _result => resource(mysql result) protected _total_rows => integer 3 protected _current_row => integer 0 protected _as_object => string(16) "Model_Navigation" protected _object_params => NULL }
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 FALSE protected _referrer => NULL protected _route => object Route(5)
public response => object Response(5){ protected _callback => NULL protected _uri => string(38) "blog(/<action>(/<id>(/<id2>(/<id3>))))" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(4) "blog" "action" => string(5) "index" ) protected _route_regex => string(120) "#^blog(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++)(?:/(?P<id2>[^/.,;?\n]++)(?:/(?P<id3>[^/.,;?\n]++))?)?)?)?$#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(0) "" protected _controller => string(4) "blog" protected _action => string(4) "read" protected _uri => string(43) "blog/read/wpis/o-tym-jak-zabijaja-slowa-139" protected _external => bool FALSE protected _params => array(2) ( "id" => string(4) "wpis" "id2" => string(28) "o-tym-jak-zabijaja-slowa-139" ) 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)
}{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }116 117 $method = $class->getMethod('action_'.$action); 118 $method->invoke($controller); 119 120 // Execute the "after action" method 121 $class->getMethod('after')->invoke($controller); 122 } 123 catch (Exception $e) 124 { 125 // Restore the previous request 126 if ($previous instanceof Request)
-
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 FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(38) "blog(/<action>(/<id>(/<id2>(/<id3>))))" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(4) "blog" "action" => string(5) "index" ) protected _route_regex => string(120) "#^blog(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++)(?:/(?P<id2>[^/.,;?\n]++)(?:/(?P<id3>[^/.,;?\n]++))?)?)?)?$#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(0) "" protected _controller => string(4) "blog" protected _action => string(4) "read" protected _uri => string(43) "blog/read/wpis/o-tym-jak-zabijaja-slowa-139" protected _external => bool FALSE protected _params => array(2) ( "id" => string(4) "wpis" "id2" => string(28) "o-tym-jak-zabijaja-slowa-139" ) 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 FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(38) "blog(/<action>(/<id>(/<id2>(/<id3>))))" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(4) "blog" "action" => string(5) "index" ) protected _route_regex => string(120) "#^blog(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++)(?:/(?P<id2>[^/.,;?\n]++)(?:/(?P<id3>[^/.,;?\n]++))?)?)?)?$#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(0) "" protected _controller => string(4) "blog" protected _action => string(4) "read" protected _uri => string(43) "blog/read/wpis/o-tym-jak-zabijaja-slowa-139" protected _external => bool FALSE protected _params => array(2) ( "id" => string(4) "wpis" "id2" => string(28) "o-tym-jak-zabijaja-slowa-139" ) 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.
-
/index.php [ 114 ] » Kohana_Request->execute()
109 110 //obsługa błędu 404 111 try 112 { 113 echo Request::factory() 114 ->execute() 115 ->send_headers() 116 ->body(); 117 } 118 catch(HTTP_Exception_404 $e) 119 {