APPPATH/classes/model/catalog/product.php [ 110 ]
105 JOIN catalog_product_datas cpd ON cpd.catalog_product_id = cp.id";
106 $query .= " WHERE " . $where;
107 $query .= " ORDER BY price ASC LIMIT 1";
108 $pr = Database::instance()->query(Database::SELECT, $query, 'Model_catalog_product')->current();
109
110 $pm = $pr->measures();
111
112 $ret[] = [$pr->price, $pm['price']];
113
114
115 $query = "SELECT cp.*, cpd.* FROM catalog_products cp
-
APPPATH/classes/controller/catalog/filter.php [ 68 ] » Model_Catalog_Product->get_min_max_prices(arguments)
0
string(48) " published=1 AND cp.type='1' AND cp.tower IN(7)"
63 $p = new Model_catalog_product(); 64 $products = $p->get_products($where, "last_published ASC", $limit); 65 66 if($params['param1']){ 67 68 $minmax_price = $p->get_min_max_prices($where); 69 $subtitle .= '<span class="price"> от '. number_format($minmax_price[0][0], 0, ' ', ' ') .' до '. number_format($minmax_price[1][0], 0, ' ', ' '); 70 $subtitle .= $params['param1'] == 'rent' ? ' ₽ в месяц' : ' ₽ за м2'; 71 $subtitle .= '</span>'; 72 }else{ 73
-
{PHP internal call} » Controller_Catalog_Filter->action_index(arguments)
0
string(4) "rent"
1
string(8) "evraziya"
-
SYSPATH/classes/kohana/request.php [ 1111 ] » ReflectionMethod->invokeArgs(arguments)
0
object Controller_Catalog_Filter(5)
{ protected title_chunks => array(4) ( "param1" => array(2) ( "rent" => array(2) ( 0 => string(12) "Аренда" 1 => string(12) "аренды" ) "sale" => array(2) ( 0 => string(14) "Продажа" 1 => string(14) "продажи" ) ) "param2" => array(3) ( "apartamenty" => array(2) ( 0 => string(20) "Арартаметы" 1 => string(24) "Апартаментов" ) "ofisy" => array(2) ( 0 => string(10) "Офисы" 1 => string(10) "Офиса" ) "retail" => array(2) ( 0 => string(12) "Ритейл" 1 => string(14) "Ритейла" ) ) "param3" => array(12) ( "imperia" => string(14) "Империя" "federatciya" => string(18) "Федерация" "gorod-stolits" => string(23) "Город столиц" "oko" => string(6) "Око" "mercury" => string(16) "Меркурий" "severnaya-bashnya" => string(16) "Северная" "evraziya" => string(14) "Евразия" "na-naberazhnoy" => string(25) "на Набережной" "evolutsiya" => string(16) "Эволюция" "iq-quarter" => string(17) "IQ-квартал" "neva" => string(8) "Нева" "icity" => string(5) "ICity" ) "param4" => array(10) ( "0-50m" => string(0) "" "50-100m" => string(0) "" "100-150m" => string(0) "" "150-200m" => string(0) "" "200-250m" => string(0) "" "250-300m" => string(0) "" "300-350m" => string(0) "" "350-500m" => string(0) "" "500-1000m" => string(0) "" "1000-1000000m" => string(0) "" ) ) public template => object View(2)
{ protected _file => string(69) "/home/virtwww/w_xn7sbf0a_39234181/http/application/views/template.php" protected _data => array(2) ( "header" => object View(2)
public settings => object Model_Settings(34){ protected _file => string(74) "/home/virtwww/w_xn7sbf0a_39234181/http/application/views/common/header.php" protected _data => array(0) }
"footer" => object View(2){ protected _file => string(74) "/home/virtwww/w_xn7sbf0a_39234181/http/application/views/common/footer.php" protected _data => array(0) }
) }{ protected _has_one => array(0) protected _belongs_to => array(0) protected _has_many => array(0) protected _load_with => array(0) protected _validate => NULL protected _rules => array(0) protected _callbacks => array(0) protected _filters => array(0) protected _labels => array(0) protected _object => array(10) ( "id" => integer 1 "site_name" => NULL "phone" => NULL "phone2" => NULL "contact_email" => NULL "message_email" => NULL "from_email" => NULL "map_address" => NULL "contacts" => NULL "auto_alias" => NULL ) protected _changed => array(0) protected _related => array(0) protected _loaded => bool FALSE protected _saved => bool TRUE protected _sorting => array(1) ( "id" => string(3) "ASC" ) protected _foreign_key_suffix => string(3) "_id" protected _object_name => string(8) "settings" protected _object_plural => string(10) "settingses" protected _table_name => string(10) "settingses" protected _table_columns => array(10) ( "id" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(2) "id" "column_default" => string(1) "0" "data_type" => string(3) "int" "is_nullable" => bool FALSE "ordinal_position" => integer 1 "display" => string(2) "11" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "PRI" "privileges" => string(31) "select,insert,update,references" ) "site_name" => array(12) ( "type" => string(6) "string" "column_name" => string(9) "site_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" ) "phone" => array(12) ( "type" => string(6) "string" "column_name" => string(5) "phone" "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" ) "phone2" => array(12) ( "type" => string(6) "string" "column_name" => string(6) "phone2" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 4 "character_maximum_length" => string(2) "32" "collation_name" => string(15) "utf8_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "contact_email" => array(12) ( "type" => string(6) "string" "column_name" => string(13) "contact_email" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 5 "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" ) "message_email" => array(12) ( "type" => string(6) "string" "column_name" => string(13) "message_email" "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" ) "from_email" => array(12) ( "type" => string(6) "string" "column_name" => string(10) "from_email" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 7 "character_maximum_length" => string(2) "64" "collation_name" => string(15) "utf8_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "map_address" => array(12) ( "type" => string(6) "string" "column_name" => string(11) "map_address" "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" ) "contacts" => array(12) ( "type" => string(6) "string" "character_maximum_length" => string(5) "65535" "column_name" => string(8) "contacts" "column_default" => NULL "data_type" => string(4) "text" "is_nullable" => bool FALSE "ordinal_position" => integer 9 "collation_name" => string(15) "utf8_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "auto_alias" => array(13) ( "type" => string(3) "int" "min" => string(4) "-128" "max" => string(3) "127" "column_name" => string(10) "auto_alias" "column_default" => NULL "data_type" => string(7) "tinyint" "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" ) ) protected _ignored_columns => array(0) protected _updated_column => NULL protected _created_column => NULL protected _primary_key => string(2) "id" protected _primary_val => string(4) "name" protected _table_names_plural => bool TRUE protected _reload_on_wakeup => bool TRUE protected _db => object Database_MySQL(6)
public auto_render => bool TRUE public request => object Request(10){ protected _connection_id => string(40) "8b494e7d48c454336f82c4dbe873997ac6335add" protected _identifier => string(1) "`" public last_query => string(194) "SELECT cp.*, cpd.* FROM catalog_products cp JOIN catalog_product_datas cpd ON cpd.catalog_product_id = cp.id WHERE published …" protected _instance => string(7) "default" protected _connection => object mysqli(19)
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 _preload_data => array(0) }{ 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(6) ( "type" => string(5) "mysql" "connection" => array(3) ( "hostname" => string(14) "mysql83.1gb.ru" "database" => string(12) "gb_mocitymos" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE "profiling" => bool TRUE ) }{ public tree => object Model_tree(39)
}{ protected _has_one => array(1) ( "catalog_category" => array(2) ( "model" => string(16) "catalog_category" "foreign_key" => string(7) "tree_id" ) ) protected _left_column => string(3) "lft" protected _right_column => string(3) "rgt" protected _level_column => string(3) "lvl" protected _scope_column => string(5) "scope" protected _parent_column => string(9) "parent_id" protected _sorting => array(1) ( "lft" => string(3) "ASC" ) protected _belongs_to => array(0) protected _has_many => array(0) protected _load_with => array(0) protected _validate => NULL protected _rules => array(0) protected _callbacks => array(0) protected _filters => array(0) protected _labels => array(0) protected _object => array(19) ( "id" => NULL "lft" => NULL "rgt" => NULL "lvl" => NULL "scope" => NULL "parent_id" => NULL "alias" => NULL "title" => NULL "ext_title" => NULL "controller" => NULL "action" => NULL "modify_time" => NULL "head" => NULL "description" => NULL "keywords" => NULL "seo_text1" => NULL "seo_text2" => NULL "publish" => NULL "deleted" => NULL ) protected _changed => array(0) protected _related => array(0) protected _loaded => bool FALSE protected _saved => bool FALSE protected _foreign_key_suffix => string(3) "_id" protected _object_name => string(4) "tree" protected _object_plural => string(5) "trees" protected _table_name => string(5) "trees" protected _table_columns => array(19) ( "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" ) "lft" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(3) "lft" "column_default" => NULL "data_type" => string(3) "int" "is_nullable" => bool FALSE "ordinal_position" => integer 2 "display" => string(2) "11" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "rgt" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(3) "rgt" "column_default" => NULL "data_type" => string(3) "int" "is_nullable" => bool FALSE "ordinal_position" => integer 3 "display" => string(2) "11" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "lvl" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(3) "lvl" "column_default" => NULL "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" ) "scope" => array(13) ( "type" => string(3) "int" "min" => string(4) "-128" "max" => string(3) "127" "column_name" => string(5) "scope" "column_default" => NULL "data_type" => string(7) "tinyint" "is_nullable" => bool FALSE "ordinal_position" => integer 5 "display" => string(1) "4" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "parent_id" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(9) "parent_id" "column_default" => NULL "data_type" => string(3) "int" "is_nullable" => bool TRUE "ordinal_position" => integer 6 "display" => string(2) "11" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "alias" => array(12) ( "type" => string(6) "string" "column_name" => string(5) "alias" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 7 "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" ) "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 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" ) "ext_title" => array(12) ( "type" => string(6) "string" "column_name" => string(9) "ext_title" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 9 "character_maximum_length" => string(2) "64" "collation_name" => string(15) "utf8_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "controller" => array(12) ( "type" => string(6) "string" "column_name" => string(10) "controller" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 10 "character_maximum_length" => string(2) "32" "collation_name" => string(15) "utf8_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "action" => array(12) ( "type" => string(6) "string" "column_name" => string(6) "action" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 11 "character_maximum_length" => string(2) "32" "collation_name" => string(15) "utf8_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "modify_time" => array(12) ( "type" => string(6) "string" "column_name" => string(11) "modify_time" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 12 "character_maximum_length" => string(2) "16" "collation_name" => string(15) "utf8_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "head" => array(12) ( "type" => string(6) "string" "column_name" => string(4) "head" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 13 "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" ) "description" => array(12) ( "type" => string(6) "string" "column_name" => string(11) "description" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 14 "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" ) "keywords" => array(12) ( "type" => string(6) "string" "column_name" => string(8) "keywords" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 15 "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_text1" => array(12) ( "type" => string(6) "string" "character_maximum_length" => string(5) "65535" "column_name" => string(9) "seo_text1" "column_default" => NULL "data_type" => string(4) "text" "is_nullable" => bool FALSE "ordinal_position" => integer 16 "collation_name" => string(15) "utf8_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "seo_text2" => array(12) ( "type" => string(6) "string" "character_maximum_length" => string(5) "65535" "column_name" => string(9) "seo_text2" "column_default" => NULL "data_type" => string(4) "text" "is_nullable" => bool FALSE "ordinal_position" => integer 17 "collation_name" => string(15) "utf8_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "publish" => array(13) ( "type" => string(3) "int" "min" => string(4) "-128" "max" => string(3) "127" "column_name" => string(7) "publish" "column_default" => NULL "data_type" => string(7) "tinyint" "is_nullable" => bool FALSE "ordinal_position" => integer 18 "display" => string(1) "1" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "deleted" => array(13) ( "type" => string(3) "int" "min" => string(4) "-128" "max" => string(3) "127" "column_name" => string(7) "deleted" "column_default" => string(1) "0" "data_type" => string(7) "tinyint" "is_nullable" => bool FALSE "ordinal_position" => integer 19 "display" => string(1) "1" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) ) protected _ignored_columns => array(0) protected _updated_column => NULL protected _created_column => NULL protected _primary_key => string(2) "id" protected _primary_val => string(4) "name" protected _table_names_plural => bool TRUE protected _reload_on_wakeup => bool TRUE protected _db => object Database_MySQL(6)
public route => object Route(4){ protected _connection_id => string(40) "8b494e7d48c454336f82c4dbe873997ac6335add" protected _identifier => string(1) "`" public last_query => string(194) "SELECT cp.*, cpd.* FROM catalog_products cp JOIN catalog_product_datas cpd ON cpd.catalog_product_id = cp.id WHERE published …" protected _instance => string(7) "default" protected _connection => object mysqli(19)
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 _preload_data => array(0) }{ 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(6) ( "type" => string(5) "mysql" "connection" => array(3) ( ... ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE "profiling" => bool TRUE ) }{ protected _uri => string(49) "tower(/<param1>(/<param2>(/<param3>(/<param4>))))" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(14) "catalog_filter" "action" => string(5) "index" ) protected _route_regex => string(131) "#^tower(?:/(?P<param1>[^/.,;?\n]++)(?:/(?P<param2>[^/.,;?\n]++)(?:/(?P<param3>[^/.,;?\n]++)(?:/(?P<param4>[^/.,;?\n]++))?)?)?)?$ …" }
public status => integer 200 public response => string(0) "" public headers => array(1) ( "Content-Type" => string(24) "text/html; charset=utf-8" ) public directory => string(0) "" public controller => string(14) "catalog_filter" public action => string(5) "index" public uri => string(19) "tower/rent/evraziya" protected _params => array(2) ( "param1" => string(4) "rent" "param2" => string(8) "evraziya" ) }1
array(2) ( "param1" => string(4) "rent" "param2" => string(8) "evraziya" )
1106 1107 // Determine the action to use 1108 $action = empty($this->action) ? Route::$default_action : $this->action; 1109 1110 // Execute the main action with the parameters 1111 $class->getMethod('action_'.$action)->invokeArgs($controller, $this->_params); 1112 1113 // Execute the "after action" method 1114 $class->getMethod('after')->invoke($controller); 1115 } 1116 catch (Exception $e)
-
APPPATH/bootstrap.php [ 166 ] » Kohana_Request->execute()
161 /** 162 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 163 * If no source is specified, the URI will be automatically detected. 164 */ 165 echo Request::instance() 166 ->execute() 167 ->send_headers() 168 ->response; 169 /* 170 try 171 {
-
DOCROOT/index.php [ 102 ] » require(arguments)
0
string(64) "/home/virtwww/w_xn7sbf0a_39234181/http/application/bootstrap.php"
97 // Load empty core extension 98 require SYSPATH.'classes/kohana'.EXT; 99 } 100 101 // Bootstrap the application 102 require APPPATH.'bootstrap'.EXT;