RedisException
MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error. RedisException thrown with message "MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error." Stacktrace: #13 RedisException in /home/deploy/EHungry-5-boyan/Web/classes/Cache.class.php:69 #12 Redis:setex in /home/deploy/EHungry-5-boyan/Web/classes/Cache.class.php:69 #11 Cache:Set in /home/deploy/EHungry-5-boyan/Web/classes/Cache.class.php:57 #10 Cache:SetArray in /home/deploy/EHungry-5-boyan/Web/classes/DbFields.php:53 #9 DbFields:getFields in /home/deploy/EHungry-5-boyan/Web/classes/BaseClass.class.php:474 #8 BaseClass:setAttribute in /home/deploy/EHungry-5-boyan/Web/classes/BaseClass.class.php:157 #7 BaseClass:__construct in /home/deploy/EHungry-5-boyan/PHP/vendor/illuminate/database/Eloquent/Model.php:1386 #6 Illuminate\Database\Eloquent\Model:__callStatic in /home/deploy/EHungry-5-boyan/Web/marketplace/services/data.php:66 #5 Marketplace\DataService:getStates in /home/deploy/EHungry-5-boyan/Web/marketplace/routes/restaurant_list.php:103 #4 Marketplace\RestaurantListRoute:getStateAndCityIfRestaurantsAvailable in /home/deploy/EHungry-5-boyan/Web/marketplace/routes/restaurant_list.php:85 #3 Marketplace\RestaurantListRoute:restaurantsByStateAndCity in /home/deploy/EHungry-5-boyan/Web/Services/Router.php:47 #2 eHungry\Services\Router:handle in /home/deploy/EHungry-5-boyan/Web/marketplace/router.php:27 #1 include in /home/deploy/EHungry-5-boyan/Web/controllers/marketplace.php:2 #0 require in /home/deploy/EHungry-5-boyan/Web/index.php:30
Stack frames (14)
13
RedisException
/
home
/
deploy
/
EHungry-5-boyan
/
Web
/
classes
/
Cache.class.php
69
12
Redis
setex
/
home
/
deploy
/
EHungry-5-boyan
/
Web
/
classes
/
Cache.class.php
69
11
Cache
Set
/
home
/
deploy
/
EHungry-5-boyan
/
Web
/
classes
/
Cache.class.php
57
10
Cache
SetArray
/
home
/
deploy
/
EHungry-5-boyan
/
Web
/
classes
/
DbFields.php
53
9
DbFields
getFields
/
home
/
deploy
/
EHungry-5-boyan
/
Web
/
classes
/
BaseClass.class.php
474
8
BaseClass
setAttribute
/
home
/
deploy
/
EHungry-5-boyan
/
Web
/
classes
/
BaseClass.class.php
157
7
BaseClass
__construct
/
vendor
/
illuminate
/
database
/
Eloquent
/
Model.php
1386
6
Illuminate
\
Database
\
Eloquent
\
Model
__callStatic
/
home
/
deploy
/
EHungry-5-boyan
/
Web
/
marketplace
/
services
/
data.php
66
5
Marketplace
\
DataService
getStates
/
home
/
deploy
/
EHungry-5-boyan
/
Web
/
marketplace
/
routes
/
restaurant_list.php
103
4
Marketplace
\
RestaurantListRoute
getStateAndCityIfRestaurantsAvailable
/
home
/
deploy
/
EHungry-5-boyan
/
Web
/
marketplace
/
routes
/
restaurant_list.php
85
3
Marketplace
\
RestaurantListRoute
restaurantsByStateAndCity
/
home
/
deploy
/
EHungry-5-boyan
/
Web
/
Services
/
Router.php
47
2
eHungry
\
Services
\
Router
handle
/
home
/
deploy
/
EHungry-5-boyan
/
Web
/
marketplace
/
router.php
27
1
include
/
home
/
deploy
/
EHungry-5-boyan
/
Web
/
controllers
/
marketplace.php
2
0
require
/
home
/
deploy
/
EHungry-5-boyan
/
Web
/
index.php
30
/
home
/
deploy
/
EHungry-5-boyan
/
Web
/
classes
/
Cache.class.php
    }
 
    public static function SetObject($key, $var, $expire = 86400) {
        return static::Set($key, serialize($var), $expire);
    }
 
    public static function SetArray($key, $var, $expire = 86400) {
        return static::Set($key, serialize($var), $expire);
    }
 
    public static function SetBoolean($key, $var, $expire = 86400) {
        return static::Set($key, serialize($var), $expire);
    }
 
    public static function Set($key, $var, $expire = 86400) {
        App::debugbarLog('debug', "Cache set: $key");
        if ($i = static::getInstance()) {
            $var = static::beforeSet($var);
            return $expire > 0?
                $i->setEx($key, $expire, $var) :
                $i->set($key, $var);
        }
        return null;
    }
 
    public static function Exists(...$key):?bool {
        if ($i = static::getInstance()) {
            return $i->exists($key);
        }
        return null;
    }
 
    public static function Expire($key, $ttl) {
        if ($i = static::getInstance()) {
            return $i->expire($key, $ttl);
        }
        return false;
    }
 
    /**
Arguments
  1. "MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error."
    
/
home
/
deploy
/
EHungry-5-boyan
/
Web
/
classes
/
Cache.class.php
    }
 
    public static function SetObject($key, $var, $expire = 86400) {
        return static::Set($key, serialize($var), $expire);
    }
 
    public static function SetArray($key, $var, $expire = 86400) {
        return static::Set($key, serialize($var), $expire);
    }
 
    public static function SetBoolean($key, $var, $expire = 86400) {
        return static::Set($key, serialize($var), $expire);
    }
 
    public static function Set($key, $var, $expire = 86400) {
        App::debugbarLog('debug', "Cache set: $key");
        if ($i = static::getInstance()) {
            $var = static::beforeSet($var);
            return $expire > 0?
                $i->setEx($key, $expire, $var) :
                $i->set($key, $var);
        }
        return null;
    }
 
    public static function Exists(...$key):?bool {
        if ($i = static::getInstance()) {
            return $i->exists($key);
        }
        return null;
    }
 
    public static function Expire($key, $ttl) {
        if ($i = static::getInstance()) {
            return $i->expire($key, $ttl);
        }
        return false;
    }
 
    /**
Arguments
  1. "describe_restaurant_1"
    
  2. 86400
    
  3. "a:306:{s:2:"id";s:1:"N";s:10:"account_id";s:1:"N";s:11:"monday_open";s:1:"T";s:12:"tuesday_open";s:1:"T";s:14:"wednesday_open";s:1:"T";s:13:"thursday_open";s:1:"T";s:11:"friday_open";s:1:"T";s:13:"saturday_open";s:1:"T";s:11:"sunday_open";s:1:"T";s:13:"monday_closed";s:1:"T";s:14:"tuesday_closed";s:1:"T";s:16:"wednesday_closed";s:1:"T";s:15:"thursday_closed";s:1:"T";s:13:"friday_closed";s:1:"T";s:15:"saturday_closed";s:1:"T";s:13:"sunday_closed";s:1:"T";s:13:"monday_open_2";s:1:"T";s:14:"tuesday_open_2";s:1:"T";s:16:"wednesday_open_2";s:1:"T";s:15:"thursday_open_2";s:1:"T";s:13:"friday_open_2";s:1:"T";s:15:"saturday_open_2";s:1:"T";s:13:"sunday_open_2";s:1:"T";s:15:"monday_closed_2";s:1:"T";s:16:"tuesday_closed_2";s:1:"T";s:18:"wednesday_closed_2";s:1:"T";s:17:"thursday_closed_2";s:1:"T";s:15:"friday_closed_2";s:1:"T";s:17:"saturday_closed_2";s:1:"T";s:15:"sunday_closed_2";s:1:"T";s:20:"delivery_monday_open";s:1:"T";s:21:"delivery_tuesday_open";s:1:"T";s:23:"delivery_wednesday_open";s:1:"T";s:22:"delivery_thursday_open";s:1:"T";s:20:"delivery_friday_open";s:1:"T";s:22:"delivery_saturday_open";s:1:"T";s:20:"delivery_sunday_open";s:1:"T";s:22:"delivery_monday_closed";s:1:"T";s:23:"delivery_tuesday_closed";s:1:"T";s:25:"delivery_wednesday_closed";s:1:"T";s:24:"delivery_thursday_closed";s:1:"T";s:22:"delivery_friday_closed";s:1:"T";s:24:"delivery_saturday_closed";s:1:"T";s:22:"delivery_sunday_closed";s:1:"T";s:22:"delivery_monday_open_2";s:1:"T";s:23:"delivery_tuesday_open_2";s:1:"T";s:25:"delivery_wednesday_open_2";s:1:"T";s:24:"delivery_thursday_open_2";s:1:"T";s:22:"delivery_friday_open_2";s:1:"T";s:24:"delivery_saturday_open_2";s:1:"T";s:22:"delivery_sunday_open_2";s:1:"T";s:24:"delivery_monday_closed_2";s:1:"T";s:25:"delivery_tuesday_closed_2";s:1:"T";s:27:"delivery_wednesday_closed_2";s:1:"T";s:26:"delivery_thursday_closed_2";s:1:"T";s:24:"delivery_friday_closed_2";s:1:"T";s:26:"delivery_saturday_closed_2";s:1:"T";s:24:"delivery_sunday_closed_2";s:1:"T";s:13:"two_hour_sets";s:1:"B";s:23:"separate_delivery_hours";s:1:"B";s:8:"timezone";s:1:"N";s:10:"tax_rate_2";s:1:"F";s:8:"tax_rate";s:1:"F";s:16:"tax_rate_label_2";s:1:"S";s:14:"tax_rate_label";s:1:"S";s:19:"is_tax_2_cumulative";s:1:"B";s:12:"has_delivery";s:1:"B";s:11:"has_dine_in";s:1:"B";s:10:"has_pickup";s:1:"B";s:10:"allow_tips";s:1:"B";s:19:"show_tip_calculator";s:1:"B";s:16:"closed_on_monday";s:1:"B";s:17:"closed_on_tuesday";s:1:"B";s:19:"closed_on_wednesday";s:1:"B";s:18:"closed_on_thursday";s:1:"B";s:16:"closed_on_friday";s:1:"B";s:18:"closed_on_saturday";s:1:"B";s:16:"closed_on_sunday";s:1:"B";s:25:"delivery_closed_on_monday";s:1:"B";s:26:"delivery_closed_on_tuesday";s:1:"B";s:28:"delivery_closed_on_wednesday";s:1:"B";s:27:"delivery_closed_on_thursday";s:1:"B";s:25:"delivery_closed_on_friday";s:1:"B";s:27:"delivery_closed_on_saturday";s:1:"B";s:25:"delivery_closed_on_sunday";s:1:"B";s:16:"order_delay_type";s:1:"N";s:18:"delay_under_amount";s:1:"N";s:16:"amount_per_delay";s:1:"N";s:18:"delay_time_minutes";s:1:"N";s:13:"pay_at_pickup";s:1:"B";s:22:"pay_with_house_account";s:1:"B";s:15:"pay_with_credit";s:1:"N";s:23:"send_orders_immediately";s:1:"B";s:12:"display_name";s:1:"S";s:23:"inherited_restaurant_id";s:1:"N";s:9:"is_locked";s:1:"B";s:10:"created_on";s:2:"DT";s:11:"modified_at";s:2:"DT";s:7:"street1";s:1:"S";s:7:"street2";s:1:"S";s:4:"city";s:1:"S";s:5:"state";s:1:"S";s:3:"zip";s:1:"S";s:5:"suite";s:1:"S";s:13:"primary_phone";s:1:"S";s:12:"second_phone";s:1:"S";s:11:"primary_fax";s:1:"S";s:5:"email";s:1:"S";s:18:"notification_email";s:1:"S";s:14:"accepted_cards";s:1:"S";s:18:"ordering_is_closed";s:1:"B";s:28:"public_ordering_closed_until";s:2:"DT";s:19:"delay_under_minutes";s:1:"N";s:18:"delay_over_minutes";s:1:"N";s:25:"delivery_order_delay_type";s:1:"N";s:27:"delivery_delay_under_amount";s:1:"N";s:25:"delivery_amount_per_delay";s:1:"N";s:27:"delivery_delay_time_minutes";s:1:"N";s:28:"delivery_delay_under_minutes";s:1:"N";s:27:"delivery_delay_over_minutes";s:1:"N";s:16:"delivery_minimum";s:1:"N";s:13:"order_minimum";s:1:"N";s:18:"order_minimum_card";s:1:"N";s:21:"order_sending_methods";s:1:"N";s:18:"order_sending_type";s:1:"N";s:14:"sms_is_enabled";s:1:"B";s:17:"sms_require_click";s:1:"B";s:23:"sms_click_failure_retry";s:1:"B";s:23:"sms_click_failure_phone";s:1:"B";s:18:"phone_notification";s:1:"B";s:25:"phone_notification_number";s:1:"S";s:27:"phone_notification_throttle";s:1:"N";s:10:"is_deleted";s:1:"B";s:15:"delivery_charge";s:1:"F";s:20:"delivery_charge_type";s:1:"N";s:23:"minimum_delivery_charge";s:1:"N";s:13:"mobile_number";s:1:"S";s:8:"latitude";s:1:"N";s:9:"longitude";s:1:"N";s:15:"manual_position";s:1:"B";s:13:"pdf_menu_file";s:1:"B";s:19:"checkout_return_url";s:1:"S";s:16:"show_pickup_time";s:1:"B";s:14:"pickup_message";s:1:"S";s:16:"delivery_message";s:1:"S";s:14:"dinein_message";s:1:"S";s:29:"additional_order_time_message";s:1:"S";s:29:"select_menu_from_current_time";s:1:"B";s:23:"pizza_option_percentage";s:1:"F";s:10:"custom_url";s:1:"S";s:18:"delivery_zip_codes";s:1:"S";s:15:"delivery_radius";s:1:"N";s:32:"encoded_delivery_radius_polyline";s:1:"S";s:9:"url_alias";s:1:"S";s:34:"remote_web_service_notification_id";s:1:"N";s:18:"external_vendor_id";s:1:"N";s:15:"has_no_ordering";s:1:"B";s:12:"option_label";s:1:"S";s:13:"topping_label";s:1:"S";s:11:"extra_label";s:1:"S";s:18:"option_description";s:1:"S";s:17:"extra_description";s:1:"S";s:19:"topping_description";s:1:"S";s:24:"instructions_description";s:1:"S";s:19:"per_order_surcharge";s:1:"F";s:24:"per_order_surcharge_type";s:1:"N";s:24:"per_order_surcharge_name";s:1:"S";s:30:"per_order_surcharge_order_type";s:1:"S";s:26:"voice_notification_message";s:1:"S";s:22:"require_phone_keypress";s:1:"N";s:18:"phone_wait_minutes";s:1:"N";s:16:"phone_call_tries";s:1:"N";s:11:"amd_enabled";s:1:"B";s:21:"sms_upon_call_failure";s:1:"B";s:17:"is_directory_only";s:1:"B";s:15:"hide_all_prices";s:1:"B";s:32:"custom_pickup_order_confirmation";s:1:"S";s:34:"custom_delivery_order_confirmation";s:1:"S";s:23:"custom_rejection_markup";s:1:"S";s:25:"custom_order_time_snippet";s:1:"S";s:23:"disallow_multiple_menus";s:1:"B";s:27:"permit_time_error_overrides";s:1:"B";s:12:"freepos_tax1";s:1:"N";s:12:"freepos_tax2";s:1:"N";s:12:"freepos_tax3";s:1:"N";s:23:"payment_processor_txkey";s:1:"S";s:25:"payment_processor_loginid";s:1:"S";s:28:"payment_processor_public_key";s:1:"S";s:10:"dress_code";s:1:"S";s:7:"parking";s:1:"S";s:13:"entertainment";s:1:"S";s:21:"custom_credit_message";s:1:"S";s:28:"custom_delivery_zone_message";s:1:"S";s:21:"has_store_hour_ranges";s:1:"B";s:21:"has_no_default_prices";s:1:"B";s:28:"custom_time_rejection_markup";s:1:"S";s:16:"max_advance_days";s:1:"N";s:30:"group_order_delivery_lead_time";s:1:"N";s:28:"group_order_pickup_lead_time";s:1:"N";s:14:"hide_asap_time";s:1:"B";s:31:"alternate_delivery_destinations";s:1:"S";s:16:"has_group_orders";s:1:"B";s:20:"default_payment_type";s:1:"N";s:18:"default_order_type";s:1:"S";s:8:"is_store";s:1:"B";s:25:"require_prep_time_opening";s:1:"B";s:16:"price_sort_order";s:1:"S";s:32:"permit_admin_time_error_override";s:1:"B";s:17:"delivery_map_file";s:1:"S";s:26:"delivery_charge_is_taxable";s:1:"B";s:29:"delivery_allowed_till_closing";s:1:"B";s:12:"cvv_required";s:1:"B";s:24:"billing_address_required";s:1:"B";s:15:"billing_options";s:1:"N";s:18:"use_driving_radius";s:1:"B";s:25:"show_future_order_minutes";s:1:"N";s:17:"no_cc_at_delivery";s:1:"B";s:23:"send_end_of_day_summary";s:1:"B";s:6:"cc_fee";s:1:"S";s:16:"asap_orders_only";s:1:"B";s:12:"asap_no_time";s:1:"B";s:17:"delivery_fee_name";s:1:"S";s:22:"additional_fee_taxable";s:1:"B";s:7:"url_tag";s:1:"S";s:8:"position";s:1:"N";s:34:"label_instead_special_instructions";s:1:"S";s:12:"cuisine_type";s:1:"S";s:20:"same_day_orders_only";s:1:"B";s:18:"hours_text_enabled";s:1:"B";s:10:"hours_text";s:1:"S";s:14:"hours_text_url";s:1:"S";s:17:"order_button_text";s:1:"S";s:25:"hide_special_instructions";s:1:"B";s:29:"special_instructions_required";s:1:"B";s:28:"special_instructions_details";s:1:"S";s:23:"throttle_period_minutes";s:1:"N";s:13:"throttle_rate";s:1:"N";s:22:"delivery_throttle_rate";s:1:"N";s:34:"show_future_order_delivery_minutes";s:1:"N";s:32:"show_future_order_pickup_minutes";s:1:"N";s:22:"default_tip_percentage";s:1:"N";s:22:"combined_throttle_rate";s:1:"N";s:22:"prep_time_message_type";s:1:"S";s:24:"prep_time_message_pickup";s:1:"S";s:26:"prep_time_message_delivery";s:1:"S";s:24:"prep_time_message_dinein";s:1:"S";s:30:"coupon_global_terms_conditions";s:1:"S";s:19:"allow_tip_at_pickup";s:1:"B";s:11:"default_tip";s:1:"S";s:12:"allow_no_tip";s:1:"B";s:25:"hide_0_tip_on_order_sheet";s:1:"B";s:15:"pay_with_paypal";s:1:"N";s:15:"cc_fee_includes";s:1:"S";s:10:"image_file";s:1:"S";s:21:"show_cutlery_checkbox";s:1:"B";s:22:"cutlery_checkbox_label";s:1:"S";s:21:"show_napkins_checkbox";s:1:"B";s:22:"napkins_checkbox_label";s:1:"S";s:33:"items_special_instructions_length";s:1:"N";s:16:"bag_fees_enabled";s:1:"B";s:18:"is_bag_fee_taxable";s:1:"B";s:20:"bags_formula_enabled";s:1:"B";s:28:"bags_formula_count_per_price";s:1:"N";s:18:"bags_formula_price";s:1:"N";s:21:"hold_calls_until_open";s:1:"B";s:25:"min_online_payment_amount";s:1:"N";s:18:"time_slots_enabled";s:1:"B";s:15:"time_slots_view";s:1:"N";s:32:"time_slots_delivery_orders_limit";s:1:"N";s:30:"time_slots_pickup_orders_limit";s:1:"N";s:32:"time_slots_combined_orders_limit";s:1:"N";s:25:"custom_time_slots_enabled";s:1:"B";s:6:"pos_id";s:1:"S";s:12:"pos_password";s:1:"S";s:11:"cc_fee_name";s:1:"S";s:28:"order_status_webhook_enabled";s:1:"B";s:24:"order_status_webhook_url";s:1:"S";s:22:"supermenu_sync_enabled";s:1:"B";s:16:"tip_display_name";s:1:"S";s:21:"tip_highlight_enabled";s:1:"B";s:28:"pickup_ordering_closed_until";s:2:"DT";s:30:"delivery_ordering_closed_until";s:2:"DT";s:28:"dinein_ordering_closed_until";s:2:"DT";s:17:"delivery_tax_code";s:1:"S";s:23:"additional_fee_tax_code";s:1:"S";s:26:"third_party_restaurant_fee";s:1:"N";s:24:"third_party_customer_fee";s:1:"N";s:25:"checkout_message_location";s:1:"B";s:16:"checkout_message";s:1:"S";s:29:"shipday_auto_dispatch_enabled";s:1:"B";s:31:"third_party_delivery_radius_min";s:1:"F";s:31:"third_party_delivery_radius_max";s:1:"F";s:36:"third_party_optimal_delivery_enabled";s:1:"B";s:17:"hide_driver_notes";s:1:"N";s:19:"driver_notes_length";s:1:"N";s:35:"third_party_delivery_radius_enabled";s:1:"B";s:14:"is_best_seller";s:1:"B";s:14:"rating_average";s:1:"F";s:12:"rating_count";s:1:"N";s:15:"price_range_min";s:1:"N";s:15:"price_range_max";s:1:"N";s:16:"is_on_springroll";s:1:"B";s:13:"google_rating";s:1:"F";s:18:"google_price_level";s:1:"N";s:35:"third_party_restaurant_distance_fee";s:1:"N";s:33:"third_party_customer_distance_fee";s:1:"N";}"
    
/
home
/
deploy
/
EHungry-5-boyan
/
Web
/
classes
/
Cache.class.php
                if (!@static::$redisObj->connect(static::$host, (int)static::$port)) {
                    static::$redisObj = false;
                    Splunk::log(Splunk::LOG_REDIS_CONN, ['error' => 'Error connecting']);
                } else {
                    static::$redisObj->select(static::$db);
                }
            } catch (RedisException $e) {
                static::$redisObj = false;
                Splunk::log(Splunk::LOG_REDIS_CONN, ['error' => 'Error connecting: '.$e->getMessage()]);
            }
        }
        return static::$redisObj;
    }
 
    public static function SetObject($key, $var, $expire = 86400) {
        return static::Set($key, serialize($var), $expire);
    }
 
    public static function SetArray($key, $var, $expire = 86400) {
        return static::Set($key, serialize($var), $expire);
    }
 
    public static function SetBoolean($key, $var, $expire = 86400) {
        return static::Set($key, serialize($var), $expire);
    }
 
    public static function Set($key, $var, $expire = 86400) {
        App::debugbarLog('debug', "Cache set: $key");
        if ($i = static::getInstance()) {
            $var = static::beforeSet($var);
            return $expire > 0?
                $i->setEx($key, $expire, $var) :
                $i->set($key, $var);
        }
        return null;
    }
 
    public static function Exists(...$key):?bool {
        if ($i = static::getInstance()) {
            return $i->exists($key);
Arguments
  1. "describe_restaurant_1"
    
  2. "a:306:{s:2:"id";s:1:"N";s:10:"account_id";s:1:"N";s:11:"monday_open";s:1:"T";s:12:"tuesday_open";s:1:"T";s:14:"wednesday_open";s:1:"T";s:13:"thursday_open";s:1:"T";s:11:"friday_open";s:1:"T";s:13:"saturday_open";s:1:"T";s:11:"sunday_open";s:1:"T";s:13:"monday_closed";s:1:"T";s:14:"tuesday_closed";s:1:"T";s:16:"wednesday_closed";s:1:"T";s:15:"thursday_closed";s:1:"T";s:13:"friday_closed";s:1:"T";s:15:"saturday_closed";s:1:"T";s:13:"sunday_closed";s:1:"T";s:13:"monday_open_2";s:1:"T";s:14:"tuesday_open_2";s:1:"T";s:16:"wednesday_open_2";s:1:"T";s:15:"thursday_open_2";s:1:"T";s:13:"friday_open_2";s:1:"T";s:15:"saturday_open_2";s:1:"T";s:13:"sunday_open_2";s:1:"T";s:15:"monday_closed_2";s:1:"T";s:16:"tuesday_closed_2";s:1:"T";s:18:"wednesday_closed_2";s:1:"T";s:17:"thursday_closed_2";s:1:"T";s:15:"friday_closed_2";s:1:"T";s:17:"saturday_closed_2";s:1:"T";s:15:"sunday_closed_2";s:1:"T";s:20:"delivery_monday_open";s:1:"T";s:21:"delivery_tuesday_open";s:1:"T";s:23:"delivery_wednesday_open";s:1:"T";s:22:"delivery_thursday_open";s:1:"T";s:20:"delivery_friday_open";s:1:"T";s:22:"delivery_saturday_open";s:1:"T";s:20:"delivery_sunday_open";s:1:"T";s:22:"delivery_monday_closed";s:1:"T";s:23:"delivery_tuesday_closed";s:1:"T";s:25:"delivery_wednesday_closed";s:1:"T";s:24:"delivery_thursday_closed";s:1:"T";s:22:"delivery_friday_closed";s:1:"T";s:24:"delivery_saturday_closed";s:1:"T";s:22:"delivery_sunday_closed";s:1:"T";s:22:"delivery_monday_open_2";s:1:"T";s:23:"delivery_tuesday_open_2";s:1:"T";s:25:"delivery_wednesday_open_2";s:1:"T";s:24:"delivery_thursday_open_2";s:1:"T";s:22:"delivery_friday_open_2";s:1:"T";s:24:"delivery_saturday_open_2";s:1:"T";s:22:"delivery_sunday_open_2";s:1:"T";s:24:"delivery_monday_closed_2";s:1:"T";s:25:"delivery_tuesday_closed_2";s:1:"T";s:27:"delivery_wednesday_closed_2";s:1:"T";s:26:"delivery_thursday_closed_2";s:1:"T";s:24:"delivery_friday_closed_2";s:1:"T";s:26:"delivery_saturday_closed_2";s:1:"T";s:24:"delivery_sunday_closed_2";s:1:"T";s:13:"two_hour_sets";s:1:"B";s:23:"separate_delivery_hours";s:1:"B";s:8:"timezone";s:1:"N";s:10:"tax_rate_2";s:1:"F";s:8:"tax_rate";s:1:"F";s:16:"tax_rate_label_2";s:1:"S";s:14:"tax_rate_label";s:1:"S";s:19:"is_tax_2_cumulative";s:1:"B";s:12:"has_delivery";s:1:"B";s:11:"has_dine_in";s:1:"B";s:10:"has_pickup";s:1:"B";s:10:"allow_tips";s:1:"B";s:19:"show_tip_calculator";s:1:"B";s:16:"closed_on_monday";s:1:"B";s:17:"closed_on_tuesday";s:1:"B";s:19:"closed_on_wednesday";s:1:"B";s:18:"closed_on_thursday";s:1:"B";s:16:"closed_on_friday";s:1:"B";s:18:"closed_on_saturday";s:1:"B";s:16:"closed_on_sunday";s:1:"B";s:25:"delivery_closed_on_monday";s:1:"B";s:26:"delivery_closed_on_tuesday";s:1:"B";s:28:"delivery_closed_on_wednesday";s:1:"B";s:27:"delivery_closed_on_thursday";s:1:"B";s:25:"delivery_closed_on_friday";s:1:"B";s:27:"delivery_closed_on_saturday";s:1:"B";s:25:"delivery_closed_on_sunday";s:1:"B";s:16:"order_delay_type";s:1:"N";s:18:"delay_under_amount";s:1:"N";s:16:"amount_per_delay";s:1:"N";s:18:"delay_time_minutes";s:1:"N";s:13:"pay_at_pickup";s:1:"B";s:22:"pay_with_house_account";s:1:"B";s:15:"pay_with_credit";s:1:"N";s:23:"send_orders_immediately";s:1:"B";s:12:"display_name";s:1:"S";s:23:"inherited_restaurant_id";s:1:"N";s:9:"is_locked";s:1:"B";s:10:"created_on";s:2:"DT";s:11:"modified_at";s:2:"DT";s:7:"street1";s:1:"S";s:7:"street2";s:1:"S";s:4:"city";s:1:"S";s:5:"state";s:1:"S";s:3:"zip";s:1:"S";s:5:"suite";s:1:"S";s:13:"primary_phone";s:1:"S";s:12:"second_phone";s:1:"S";s:11:"primary_fax";s:1:"S";s:5:"email";s:1:"S";s:18:"notification_email";s:1:"S";s:14:"accepted_cards";s:1:"S";s:18:"ordering_is_closed";s:1:"B";s:28:"public_ordering_closed_until";s:2:"DT";s:19:"delay_under_minutes";s:1:"N";s:18:"delay_over_minutes";s:1:"N";s:25:"delivery_order_delay_type";s:1:"N";s:27:"delivery_delay_under_amount";s:1:"N";s:25:"delivery_amount_per_delay";s:1:"N";s:27:"delivery_delay_time_minutes";s:1:"N";s:28:"delivery_delay_under_minutes";s:1:"N";s:27:"delivery_delay_over_minutes";s:1:"N";s:16:"delivery_minimum";s:1:"N";s:13:"order_minimum";s:1:"N";s:18:"order_minimum_card";s:1:"N";s:21:"order_sending_methods";s:1:"N";s:18:"order_sending_type";s:1:"N";s:14:"sms_is_enabled";s:1:"B";s:17:"sms_require_click";s:1:"B";s:23:"sms_click_failure_retry";s:1:"B";s:23:"sms_click_failure_phone";s:1:"B";s:18:"phone_notification";s:1:"B";s:25:"phone_notification_number";s:1:"S";s:27:"phone_notification_throttle";s:1:"N";s:10:"is_deleted";s:1:"B";s:15:"delivery_charge";s:1:"F";s:20:"delivery_charge_type";s:1:"N";s:23:"minimum_delivery_charge";s:1:"N";s:13:"mobile_number";s:1:"S";s:8:"latitude";s:1:"N";s:9:"longitude";s:1:"N";s:15:"manual_position";s:1:"B";s:13:"pdf_menu_file";s:1:"B";s:19:"checkout_return_url";s:1:"S";s:16:"show_pickup_time";s:1:"B";s:14:"pickup_message";s:1:"S";s:16:"delivery_message";s:1:"S";s:14:"dinein_message";s:1:"S";s:29:"additional_order_time_message";s:1:"S";s:29:"select_menu_from_current_time";s:1:"B";s:23:"pizza_option_percentage";s:1:"F";s:10:"custom_url";s:1:"S";s:18:"delivery_zip_codes";s:1:"S";s:15:"delivery_radius";s:1:"N";s:32:"encoded_delivery_radius_polyline";s:1:"S";s:9:"url_alias";s:1:"S";s:34:"remote_web_service_notification_id";s:1:"N";s:18:"external_vendor_id";s:1:"N";s:15:"has_no_ordering";s:1:"B";s:12:"option_label";s:1:"S";s:13:"topping_label";s:1:"S";s:11:"extra_label";s:1:"S";s:18:"option_description";s:1:"S";s:17:"extra_description";s:1:"S";s:19:"topping_description";s:1:"S";s:24:"instructions_description";s:1:"S";s:19:"per_order_surcharge";s:1:"F";s:24:"per_order_surcharge_type";s:1:"N";s:24:"per_order_surcharge_name";s:1:"S";s:30:"per_order_surcharge_order_type";s:1:"S";s:26:"voice_notification_message";s:1:"S";s:22:"require_phone_keypress";s:1:"N";s:18:"phone_wait_minutes";s:1:"N";s:16:"phone_call_tries";s:1:"N";s:11:"amd_enabled";s:1:"B";s:21:"sms_upon_call_failure";s:1:"B";s:17:"is_directory_only";s:1:"B";s:15:"hide_all_prices";s:1:"B";s:32:"custom_pickup_order_confirmation";s:1:"S";s:34:"custom_delivery_order_confirmation";s:1:"S";s:23:"custom_rejection_markup";s:1:"S";s:25:"custom_order_time_snippet";s:1:"S";s:23:"disallow_multiple_menus";s:1:"B";s:27:"permit_time_error_overrides";s:1:"B";s:12:"freepos_tax1";s:1:"N";s:12:"freepos_tax2";s:1:"N";s:12:"freepos_tax3";s:1:"N";s:23:"payment_processor_txkey";s:1:"S";s:25:"payment_processor_loginid";s:1:"S";s:28:"payment_processor_public_key";s:1:"S";s:10:"dress_code";s:1:"S";s:7:"parking";s:1:"S";s:13:"entertainment";s:1:"S";s:21:"custom_credit_message";s:1:"S";s:28:"custom_delivery_zone_message";s:1:"S";s:21:"has_store_hour_ranges";s:1:"B";s:21:"has_no_default_prices";s:1:"B";s:28:"custom_time_rejection_markup";s:1:"S";s:16:"max_advance_days";s:1:"N";s:30:"group_order_delivery_lead_time";s:1:"N";s:28:"group_order_pickup_lead_time";s:1:"N";s:14:"hide_asap_time";s:1:"B";s:31:"alternate_delivery_destinations";s:1:"S";s:16:"has_group_orders";s:1:"B";s:20:"default_payment_type";s:1:"N";s:18:"default_order_type";s:1:"S";s:8:"is_store";s:1:"B";s:25:"require_prep_time_opening";s:1:"B";s:16:"price_sort_order";s:1:"S";s:32:"permit_admin_time_error_override";s:1:"B";s:17:"delivery_map_file";s:1:"S";s:26:"delivery_charge_is_taxable";s:1:"B";s:29:"delivery_allowed_till_closing";s:1:"B";s:12:"cvv_required";s:1:"B";s:24:"billing_address_required";s:1:"B";s:15:"billing_options";s:1:"N";s:18:"use_driving_radius";s:1:"B";s:25:"show_future_order_minutes";s:1:"N";s:17:"no_cc_at_delivery";s:1:"B";s:23:"send_end_of_day_summary";s:1:"B";s:6:"cc_fee";s:1:"S";s:16:"asap_orders_only";s:1:"B";s:12:"asap_no_time";s:1:"B";s:17:"delivery_fee_name";s:1:"S";s:22:"additional_fee_taxable";s:1:"B";s:7:"url_tag";s:1:"S";s:8:"position";s:1:"N";s:34:"label_instead_special_instructions";s:1:"S";s:12:"cuisine_type";s:1:"S";s:20:"same_day_orders_only";s:1:"B";s:18:"hours_text_enabled";s:1:"B";s:10:"hours_text";s:1:"S";s:14:"hours_text_url";s:1:"S";s:17:"order_button_text";s:1:"S";s:25:"hide_special_instructions";s:1:"B";s:29:"special_instructions_required";s:1:"B";s:28:"special_instructions_details";s:1:"S";s:23:"throttle_period_minutes";s:1:"N";s:13:"throttle_rate";s:1:"N";s:22:"delivery_throttle_rate";s:1:"N";s:34:"show_future_order_delivery_minutes";s:1:"N";s:32:"show_future_order_pickup_minutes";s:1:"N";s:22:"default_tip_percentage";s:1:"N";s:22:"combined_throttle_rate";s:1:"N";s:22:"prep_time_message_type";s:1:"S";s:24:"prep_time_message_pickup";s:1:"S";s:26:"prep_time_message_delivery";s:1:"S";s:24:"prep_time_message_dinein";s:1:"S";s:30:"coupon_global_terms_conditions";s:1:"S";s:19:"allow_tip_at_pickup";s:1:"B";s:11:"default_tip";s:1:"S";s:12:"allow_no_tip";s:1:"B";s:25:"hide_0_tip_on_order_sheet";s:1:"B";s:15:"pay_with_paypal";s:1:"N";s:15:"cc_fee_includes";s:1:"S";s:10:"image_file";s:1:"S";s:21:"show_cutlery_checkbox";s:1:"B";s:22:"cutlery_checkbox_label";s:1:"S";s:21:"show_napkins_checkbox";s:1:"B";s:22:"napkins_checkbox_label";s:1:"S";s:33:"items_special_instructions_length";s:1:"N";s:16:"bag_fees_enabled";s:1:"B";s:18:"is_bag_fee_taxable";s:1:"B";s:20:"bags_formula_enabled";s:1:"B";s:28:"bags_formula_count_per_price";s:1:"N";s:18:"bags_formula_price";s:1:"N";s:21:"hold_calls_until_open";s:1:"B";s:25:"min_online_payment_amount";s:1:"N";s:18:"time_slots_enabled";s:1:"B";s:15:"time_slots_view";s:1:"N";s:32:"time_slots_delivery_orders_limit";s:1:"N";s:30:"time_slots_pickup_orders_limit";s:1:"N";s:32:"time_slots_combined_orders_limit";s:1:"N";s:25:"custom_time_slots_enabled";s:1:"B";s:6:"pos_id";s:1:"S";s:12:"pos_password";s:1:"S";s:11:"cc_fee_name";s:1:"S";s:28:"order_status_webhook_enabled";s:1:"B";s:24:"order_status_webhook_url";s:1:"S";s:22:"supermenu_sync_enabled";s:1:"B";s:16:"tip_display_name";s:1:"S";s:21:"tip_highlight_enabled";s:1:"B";s:28:"pickup_ordering_closed_until";s:2:"DT";s:30:"delivery_ordering_closed_until";s:2:"DT";s:28:"dinein_ordering_closed_until";s:2:"DT";s:17:"delivery_tax_code";s:1:"S";s:23:"additional_fee_tax_code";s:1:"S";s:26:"third_party_restaurant_fee";s:1:"N";s:24:"third_party_customer_fee";s:1:"N";s:25:"checkout_message_location";s:1:"B";s:16:"checkout_message";s:1:"S";s:29:"shipday_auto_dispatch_enabled";s:1:"B";s:31:"third_party_delivery_radius_min";s:1:"F";s:31:"third_party_delivery_radius_max";s:1:"F";s:36:"third_party_optimal_delivery_enabled";s:1:"B";s:17:"hide_driver_notes";s:1:"N";s:19:"driver_notes_length";s:1:"N";s:35:"third_party_delivery_radius_enabled";s:1:"B";s:14:"is_best_seller";s:1:"B";s:14:"rating_average";s:1:"F";s:12:"rating_count";s:1:"N";s:15:"price_range_min";s:1:"N";s:15:"price_range_max";s:1:"N";s:16:"is_on_springroll";s:1:"B";s:13:"google_rating";s:1:"F";s:18:"google_price_level";s:1:"N";s:35:"third_party_restaurant_distance_fee";s:1:"N";s:33:"third_party_customer_distance_fee";s:1:"N";}"
    
  3. 86400
    
/
home
/
deploy
/
EHungry-5-boyan
/
Web
/
classes
/
DbFields.php
        $this->table = $table;
    }
 
    public function getFields($withTypes = false):array {
        //FIXME: workaround for BaseClass objects that are not present in the database. check BaseClass::NO_TABLE
        if (!$this->table) {
            return [];
        }
        if (!$this->typesCache) { //not in the local cache, let's fetch it
            $cacheKey = "describe_{$this->table}_1"; //this "1" meant "include ID" in the old code
 
            //TODO: replace with Cache::Remember
            $this->typesCache = Cache::GetArray($cacheKey);
            if (!$this->typesCache || self::SKIP_CACHE) { //not in the cache either, let's generate it
                $this->typesCache = collect(DB::select("DESCRIBE $this->table"))
                                        ->pluck('Type', 'Field')
                                        ->transform(['DbFields','simplifyType'])
                                        ->all();
 
                Cache::SetArray($cacheKey, $this->typesCache);
            }
        }
 
        if (!$this->fieldsCache && !$withTypes) {
            $this->fieldsCache = array_keys($this->typesCache);
        }
 
        return $withTypes? $this->typesCache : $this->fieldsCache;
    }
 
    /**
     * Separates all attributes into custom and pure fields (those present on the database table).
     * @param array $values
     * @return array 0 => custom fields, 1 => pure fields
     */
    public function splitCustom(array $values) {
        $tableFields = array_flip($this->getFields());
        $customFields = array_diff_key($values, $tableFields);
        $pureFields = array_intersect_key($values, $tableFields);
 
Arguments
  1. "describe_restaurant_1"
    
  2. array:306 [
      "id" => "N"
      "account_id" => "N"
      "monday_open" => "T"
      "tuesday_open" => "T"
      "wednesday_open" => "T"
      "thursday_open" => "T"
      "friday_open" => "T"
      "saturday_open" => "T"
      "sunday_open" => "T"
      "monday_closed" => "T"
      "tuesday_closed" => "T"
      "wednesday_closed" => "T"
      "thursday_closed" => "T"
      "friday_closed" => "T"
      "saturday_closed" => "T"
      "sunday_closed" => "T"
      "monday_open_2" => "T"
      "tuesday_open_2" => "T"
      "wednesday_open_2" => "T"
      "thursday_open_2" => "T"
      "friday_open_2" => "T"
      "saturday_open_2" => "T"
      "sunday_open_2" => "T"
      "monday_closed_2" => "T"
      "tuesday_closed_2" => "T"
      "wednesday_closed_2" => "T"
      "thursday_closed_2" => "T"
      "friday_closed_2" => "T"
      "saturday_closed_2" => "T"
      "sunday_closed_2" => "T"
      "delivery_monday_open" => "T"
      "delivery_tuesday_open" => "T"
      "delivery_wednesday_open" => "T"
      "delivery_thursday_open" => "T"
      "delivery_friday_open" => "T"
      "delivery_saturday_open" => "T"
      "delivery_sunday_open" => "T"
      "delivery_monday_closed" => "T"
      "delivery_tuesday_closed" => "T"
      "delivery_wednesday_closed" => "T"
      "delivery_thursday_closed" => "T"
      "delivery_friday_closed" => "T"
      "delivery_saturday_closed" => "T"
      "delivery_sunday_closed" => "T"
      "delivery_monday_open_2" => "T"
      "delivery_tuesday_open_2" => "T"
      "delivery_wednesday_open_2" => "T"
      "delivery_thursday_open_2" => "T"
      "delivery_friday_open_2" => "T"
      "delivery_saturday_open_2" => "T"
      "delivery_sunday_open_2" => "T"
      "delivery_monday_closed_2" => "T"
      "delivery_tuesday_closed_2" => "T"
      "delivery_wednesday_closed_2" => "T"
      "delivery_thursday_closed_2" => "T"
      "delivery_friday_closed_2" => "T"
      "delivery_saturday_closed_2" => "T"
      "delivery_sunday_closed_2" => "T"
      "two_hour_sets" => "B"
      "separate_delivery_hours" => "B"
      "timezone" => "N"
      "tax_rate_2" => "F"
      "tax_rate" => "F"
      "tax_rate_label_2" => "S"
      "tax_rate_label" => "S"
      "is_tax_2_cumulative" => "B"
      "has_delivery" => "B"
      "has_dine_in" => "B"
      "has_pickup" => "B"
      "allow_tips" => "B"
      "show_tip_calculator" => "B"
      "closed_on_monday" => "B"
      "closed_on_tuesday" => "B"
      "closed_on_wednesday" => "B"
      "closed_on_thursday" => "B"
      "closed_on_friday" => "B"
      "closed_on_saturday" => "B"
      "closed_on_sunday" => "B"
      "delivery_closed_on_monday" => "B"
      "delivery_closed_on_tuesday" => "B"
      "delivery_closed_on_wednesday" => "B"
      "delivery_closed_on_thursday" => "B"
      "delivery_closed_on_friday" => "B"
      "delivery_closed_on_saturday" => "B"
      "delivery_closed_on_sunday" => "B"
      "order_delay_type" => "N"
      "delay_under_amount" => "N"
      "amount_per_delay" => "N"
      "delay_time_minutes" => "N"
      "pay_at_pickup" => "B"
      "pay_with_house_account" => "B"
      "pay_with_credit" => "N"
      "send_orders_immediately" => "B"
      "display_name" => "S"
      "inherited_restaurant_id" => "N"
      "is_locked" => "B"
      "created_on" => "DT"
      "modified_at" => "DT"
      "street1" => "S"
      "street2" => "S"
      "city" => "S"
      "state" => "S"
      "zip" => "S"
      "suite" => "S"
      "primary_phone" => "S"
      "second_phone" => "S"
      "primary_fax" => "S"
      "email" => "S"
      "notification_email" => "S"
      "accepted_cards" => "S"
      "ordering_is_closed" => "B"
      "public_ordering_closed_until" => "DT"
      "delay_under_minutes" => "N"
      "delay_over_minutes" => "N"
      "delivery_order_delay_type" => "N"
      "delivery_delay_under_amount" => "N"
      "delivery_amount_per_delay" => "N"
      "delivery_delay_time_minutes" => "N"
      "delivery_delay_under_minutes" => "N"
      "delivery_delay_over_minutes" => "N"
      "delivery_minimum" => "N"
      "order_minimum" => "N"
      "order_minimum_card" => "N"
      "order_sending_methods" => "N"
      "order_sending_type" => "N"
      "sms_is_enabled" => "B"
      "sms_require_click" => "B"
      "sms_click_failure_retry" => "B"
      "sms_click_failure_phone" => "B"
      "phone_notification" => "B"
      "phone_notification_number" => "S"
      "phone_notification_throttle" => "N"
      "is_deleted" => "B"
      "delivery_charge" => "F"
      "delivery_charge_type" => "N"
      "minimum_delivery_charge" => "N"
      "mobile_number" => "S"
      "latitude" => "N"
      "longitude" => "N"
      "manual_position" => "B"
      "pdf_menu_file" => "B"
      "checkout_return_url" => "S"
      "show_pickup_time" => "B"
      "pickup_message" => "S"
      "delivery_message" => "S"
      "dinein_message" => "S"
      "additional_order_time_message" => "S"
      "select_menu_from_current_time" => "B"
      "pizza_option_percentage" => "F"
      "custom_url" => "S"
      "delivery_zip_codes" => "S"
      "delivery_radius" => "N"
      "encoded_delivery_radius_polyline" => "S"
      "url_alias" => "S"
      "remote_web_service_notification_id" => "N"
      "external_vendor_id" => "N"
      "has_no_ordering" => "B"
      "option_label" => "S"
      "topping_label" => "S"
      "extra_label" => "S"
      "option_description" => "S"
      "extra_description" => "S"
      "topping_description" => "S"
      "instructions_description" => "S"
      "per_order_surcharge" => "F"
      "per_order_surcharge_type" => "N"
      "per_order_surcharge_name" => "S"
      "per_order_surcharge_order_type" => "S"
      "voice_notification_message" => "S"
      "require_phone_keypress" => "N"
      "phone_wait_minutes" => "N"
      "phone_call_tries" => "N"
      "amd_enabled" => "B"
      "sms_upon_call_failure" => "B"
      "is_directory_only" => "B"
      "hide_all_prices" => "B"
      "custom_pickup_order_confirmation" => "S"
      "custom_delivery_order_confirmation" => "S"
      "custom_rejection_markup" => "S"
      "custom_order_time_snippet" => "S"
      "disallow_multiple_menus" => "B"
      "permit_time_error_overrides" => "B"
      "freepos_tax1" => "N"
      "freepos_tax2" => "N"
      "freepos_tax3" => "N"
      "payment_processor_txkey" => "S"
      "payment_processor_loginid" => "S"
      "payment_processor_public_key" => "S"
      "dress_code" => "S"
      "parking" => "S"
      "entertainment" => "S"
      "custom_credit_message" => "S"
      "custom_delivery_zone_message" => "S"
      "has_store_hour_ranges" => "B"
      "has_no_default_prices" => "B"
      "custom_time_rejection_markup" => "S"
      "max_advance_days" => "N"
      "group_order_delivery_lead_time" => "N"
      "group_order_pickup_lead_time" => "N"
      "hide_asap_time" => "B"
      "alternate_delivery_destinations" => "S"
      "has_group_orders" => "B"
      "default_payment_type" => "N"
      "default_order_type" => "S"
      "is_store" => "B"
      "require_prep_time_opening" => "B"
      "price_sort_order" => "S"
      "permit_admin_time_error_override" => "B"
      "delivery_map_file" => "S"
      "delivery_charge_is_taxable" => "B"
      "delivery_allowed_till_closing" => "B"
      "cvv_required" => "B"
      "billing_address_required" => "B"
      "billing_options" => "N"
      "use_driving_radius" => "B"
      "show_future_order_minutes" => "N"
      "no_cc_at_delivery" => "B"
      "send_end_of_day_summary" => "B"
      "cc_fee" => "S"
      "asap_orders_only" => "B"
      "asap_no_time" => "B"
      "delivery_fee_name" => "S"
      "additional_fee_taxable" => "B"
      "url_tag" => "S"
      "position" => "N"
      "label_instead_special_instructions" => "S"
      "cuisine_type" => "S"
      "same_day_orders_only" => "B"
      "hours_text_enabled" => "B"
      "hours_text" => "S"
      "hours_text_url" => "S"
      "order_button_text" => "S"
      "hide_special_instructions" => "B"
      "special_instructions_required" => "B"
      "special_instructions_details" => "S"
      "throttle_period_minutes" => "N"
      "throttle_rate" => "N"
      "delivery_throttle_rate" => "N"
      "show_future_order_delivery_minutes" => "N"
      "show_future_order_pickup_minutes" => "N"
      "default_tip_percentage" => "N"
      "combined_throttle_rate" => "N"
      "prep_time_message_type" => "S"
      "prep_time_message_pickup" => "S"
      "prep_time_message_delivery" => "S"
      "prep_time_message_dinein" => "S"
      "coupon_global_terms_conditions" => "S"
      "allow_tip_at_pickup" => "B"
      "default_tip" => "S"
      "allow_no_tip" => "B"
      "hide_0_tip_on_order_sheet" => "B"
      "pay_with_paypal" => "N"
      "cc_fee_includes" => "S"
      "image_file" => "S"
      "show_cutlery_checkbox" => "B"
      "cutlery_checkbox_label" => "S"
      "show_napkins_checkbox" => "B"
      "napkins_checkbox_label" => "S"
      "items_special_instructions_length" => "N"
      "bag_fees_enabled" => "B"
      "is_bag_fee_taxable" => "B"
      "bags_formula_enabled" => "B"
      "bags_formula_count_per_price" => "N"
      "bags_formula_price" => "N"
      "hold_calls_until_open" => "B"
      "min_online_payment_amount" => "N"
      "time_slots_enabled" => "B"
      "time_slots_view" => "N"
      "time_slots_delivery_orders_limit" => "N"
      "time_slots_pickup_orders_limit" => "N"
      "time_slots_combined_orders_limit" => "N"
      "custom_time_slots_enabled" => "B"
      "pos_id" => "S"
      "pos_password" => "S"
      "cc_fee_name" => "S"
      "order_status_webhook_enabled" => "B"
      "order_status_webhook_url" => "S"
      "supermenu_sync_enabled" => "B"
      "tip_display_name" => "S"
      "tip_highlight_enabled" => "B"
      "pickup_ordering_closed_until" => "DT"
      "delivery_ordering_closed_until" => "DT"
      "dinein_ordering_closed_until" => "DT"
      "delivery_tax_code" => "S"
      "additional_fee_tax_code" => "S"
      "third_party_restaurant_fee" => "N"
      "third_party_customer_fee" => "N"
      "checkout_message_location" => "B"
      "checkout_message" => "S"
      "shipday_auto_dispatch_enabled" => "B"
      "third_party_delivery_radius_min" => "F"
      "third_party_delivery_radius_max" => "F"
      "third_party_optimal_delivery_enabled" => "B"
      "hide_driver_notes" => "N"
      "driver_notes_length" => "N"
      "third_party_delivery_radius_enabled" => "B"
      "is_best_seller" => "B"
      "rating_average" => "F"
      "rating_count" => "N"
      "price_range_min" => "N"
      "price_range_max" => "N"
      "is_on_springroll" => "B"
      "google_rating" => "F"
      "google_price_level" => "N"
      "third_party_restaurant_distance_fee" => "N"
      "third_party_customer_distance_fee" => "N"
    ]
    
/
home
/
deploy
/
EHungry-5-boyan
/
Web
/
classes
/
BaseClass.class.php
     * Checks for either legacy or Laravel-style getters (getField() or getFieldAttribute()).
     * @param string $key
     * @return string
     */
    private function findAnyGetMutator($key):string {
        return $this->findAnyMutator('get', $key);
    }
 
    public function setAttribute($key, $value) {
        if ($key == 'key_name' && in_array($key, $this->fields()->getFields())) {
            //TODO: another special case, there's a field with the same name as the setter for the Eloquent PK at TemplateAccountSettings
            return parent::setAttribute($key, $value);
        }
 
        //first we check for the mutated setters
        if ($setter = $this->findAnySetMutator($key)) {
            return $this->$setter($value);
        }
 
        if (in_array($key, $this->fields()->getFields()) || array_key_exists($key, $this->attributes)) {
            //this is an existing database field, so let's set it as an attribute
            return parent::setAttribute($key, $value);
        } elseif (property_exists($this, $key)) {
            //support for legacy setter of custom props
            return $this->$key = $value;
        } else {
            //probably a custom prop (sometimes used in legacy code), so let's set it directly on the object as usual
            if (DevLevel > 0) {
                trigger_error('Custom property set at '.static::class.": $key", E_USER_NOTICE);
            }
            return $this->$key = $value;
        }
    }
 
    /**
     * Sets the "created_at" field, similarly to {@link HasTimestamps::setCreatedAt()}.
     *
     * We had to override this method because of the legacy setters, as follows: Eloquent is based on setXyzAttribute()
     * setters, but we also allow setXyz() for legacy reasons, and this happens at {@link setAttribute()}. When
     * {@link updateTimestamps()} is called, it calls setUpdateAt() (which works fine because our configured field is
/
home
/
deploy
/
EHungry-5-boyan
/
Web
/
classes
/
BaseClass.class.php
     */
    protected static $restaurantDates = [];
 
    /**
     * @param int|array|ParameterHandler $idOrAttr An ID, so the entry is loaded from the database, or a list of attributes to be pre-filled into a new entry.
     */
    public function __construct($idOrAttr = null) {
        if (is_numeric($idOrAttr)) {
            //legacy behavior
            if ($entry = static::find($idOrAttr)) {
                //TODO: find a way to have default attributes respected in the same way Eloquent does - probably a mix of array_merge() and array_filter() (so we clear empty values from the found entry), or maybe we'll need a custom merger so the final attribute array doesn't miss any field
                $this->setRawAttributes($entry->attributes, true);
                $this->exists = true;
            }
            $this->setAttribute('id', $idOrAttr);
            parent::__construct();
        } elseif (is_array($idOrAttr) || $idOrAttr instanceof ParameterHandler) {
            parent::__construct($idOrAttr); //default Eloquent behavior + our custom fill()
        } else {
            $this->setAttribute('id', -1); //FIXME: legacy behavior as well... can we ditch this someday please????
            parent::__construct();
        }
    }
 
    /**
     * We've overwritten the original query builder to include extra methods :)
     * @param \Illuminate\Database\Query\Builder $query
     * @return Builder|EloquentModel|eHungry\Illuminate\Database\Eloquent\Builder
     */
    public function newEloquentBuilder($query) {
        return new eHungry\Illuminate\Database\Eloquent\Builder($query);
    }
 
    protected static function boot() {
        parent::boot();
 
        //Registering events in a better way - https://laravel.com/docs/5.7/eloquent#events
        //Based on the Ardent implementation (https://goo.gl/ieFB59), taken from Yii/Rails models
        $eventTypes = ['sav', 'creat', 'updat', 'delet', 'restor', 'retriev'];
        $tenses = ['ing', 'ed']; //There's NO retrieving event! a check was not placed here for performance
Arguments
  1. "id"
    
  2. -1
    
/
home
/
deploy
/
EHungry-5-boyan
/
PHP
/
vendor
/
illuminate
/
database
/
Eloquent
/
Model.php
     */
    public function __call($method, $parameters)
    {
        if (in_array($method, ['increment', 'decrement'])) {
            return $this->$method(...$parameters);
        }
 
        return $this->newQuery()->$method(...$parameters);
    }
 
    /**
     * Handle dynamic static method calls into the method.
     *
     * @param  string  $method
     * @param  array  $parameters
     * @return mixed
     */
    public static function __callStatic($method, $parameters)
    {
        return (new static)->$method(...$parameters);
    }
 
    /**
     * Convert the model to its string representation.
     *
     * @return string
     */
    public function __toString()
    {
        return $this->toJson();
    }
 
    /**
     * When a model is being unserialized, check if it needs to be booted.
     *
     * @return void
     */
    public function __wakeup()
    {
        $this->bootIfNotBooted();
/
home
/
deploy
/
EHungry-5-boyan
/
Web
/
marketplace
/
services
/
data.php
            $restaurants[] = $restaurant;
        }
 
        return $restaurants;
    }
 
    // TODO: Use real data
    public static function getPromotions() {
        return [
            ['title' => 'Try our Chef\'s Special of the Week', 'description' => 'Truffle Chicken Fried Rice', 'url' => 'https://www.example.com', 'image' => 'https://placehold.co/420x230', 'alt' => 'Try our Chef\'s Special of the Week', 'start_date' => '2024-04-16 (Tue)'],
            ['title' => 'Discover our Summer Delights Menu', 'description' => 'Available for a Limited Time!', 'url' => 'https://www.example.com', 'image' => 'https://placehold.co/420x230', 'alt' => 'Discover our Summer Delights Menu', 'start_date' => '2024-04-16 (Sat)', 'end_date' => '2024-04-20'],
            ['title' => 'Try our Chef\'s Special of the Week', 'description' => 'Truffle Chicken Fried Rice', 'url' => 'https://www.example.com', 'image' => 'https://placehold.co/420x230', 'alt' => 'Try our Chef\'s Special of the Week', 'start_date' => '2024-04-16 (Tue)'],
            ['title' => 'Discover our Summer Delights Menu', 'description' => 'Available for a Limited Time!', 'url' => 'https://www.example.com', 'image' => 'https://placehold.co/420x230', 'alt' => 'Discover our Summer Delights Menu', 'start_date' => '2024-04-16 (Sat)', 'end_date' => '2024-04-20'],
        ];
    }
 
    private static $states_cache = null;
    public static function getStates() {
        if (!static::$states_cache) {
            $results = \Restaurant::select(['state', 'city'])->where('is_on_springroll', 1)->distinct()->get()->all();
            $states = [];
            foreach ($results as $result) {
                $stateName = getStateFullName($result->state);
                $states[$stateName][] = $result->city;
            }
            static::$states_cache = array_sort_recursive($states);
        }
 
        return static::$states_cache;
    }
}
 
Arguments
  1. "select"
    
  2. array:1 [
      0 => array:2 [
        0 => "state"
        1 => "city"
      ]
    ]
    
/
home
/
deploy
/
EHungry-5-boyan
/
Web
/
marketplace
/
routes
/
restaurant_list.php
        $city = \EDS\undasherize($params['city']);
        $request = array_merge($request, static::getStateAndCityIfRestaurantsAvailable($state, $city));
 
        $address = "$city, $state";
        $request['search'] = $address;
 
        $geocode_data = \ZipCode::getGeoLocation($address);
        if ($geocode_data) {
            $request['lat'] = $geocode_data[0];
            $request['lng'] = $geocode_data[1];
        }
 
        return static::restaurantList($request);
    }
    
    private static function getStateAndCityIfRestaurantsAvailable(?string $state_or_abbr, ?string $city) {
        $state_or_abbr = trim($state_or_abbr ?: '');
        $city = trim($city ?: '');
 
        $states = DataService::getStates();
        $state_name = (
            $state_or_abbr && array_key_exists($state_or_abbr, $states)
                ? $state_or_abbr
                : (getStateFullName($state_or_abbr) && array_key_exists(getStateFullName($state_or_abbr), $states)
                    ? getStateFullName($state_or_abbr)
                    : null)
        );
        $city_name = $state_name && in_array($city, $states[$state_name]) ? $city : null;
 
        return ['state' => $state_name, 'city' => $city_name];
    }
 
    // Components
    private static function restaurantList(array $attrs) {
        $limit = 50;
 
        $cart = \eHungry\Services\Cart::getCart();
        $filters = [
            'open_now' => null,
            'coupons' => null,
/
home
/
deploy
/
EHungry-5-boyan
/
Web
/
marketplace
/
routes
/
restaurant_list.php
    // Actions
    public static function restaurants(array $params, array $request) {
        // check for city/state request
        [$city, $state_or_abbr] = preg_split('/[^\w\s]/', $request['search'] ?? '');
        $request = array_merge($request, static::getStateAndCityIfRestaurantsAvailable($state_or_abbr, $city));
 
        // check for the 'near-me' ajax request hidden form variable (which will be included in the form in all but the initial request)
        if (!empty($request['near-me']) && empty($request['city']) && empty($request['state'])) {
            return static::restaurantsNearMe($params, $request);
        } else {
            unset($request['near-me']);
        }
 
        return static::restaurantList($request);
    }
 
    public static function restaurantsByStateAndCity(array $params, array $request) {
        $state = \EDS\undasherize($params['state']);
        $city = \EDS\undasherize($params['city']);
        $request = array_merge($request, static::getStateAndCityIfRestaurantsAvailable($state, $city));
 
        $address = "$city, $state";
        $request['search'] = $address;
 
        $geocode_data = \ZipCode::getGeoLocation($address);
        if ($geocode_data) {
            $request['lat'] = $geocode_data[0];
            $request['lng'] = $geocode_data[1];
        }
 
        return static::restaurantList($request);
    }
    
    private static function getStateAndCityIfRestaurantsAvailable(?string $state_or_abbr, ?string $city) {
        $state_or_abbr = trim($state_or_abbr ?: '');
        $city = trim($city ?: '');
 
        $states = DataService::getStates();
        $state_name = (
            $state_or_abbr && array_key_exists($state_or_abbr, $states)
Arguments
  1. "Pennsylvania"
    
  2. "Murrysville"
    
/
home
/
deploy
/
EHungry-5-boyan
/
Web
/
Services
/
Router.php
     * ```
     *
     * @return mixed
     */
    public static function handle(string $method, string $url, array $request, array $route_classes) {
        $_REQUEST['_VERSION'] = 4; // Important for some methods that rely on the version
 
        $account_id_string = Account::getAccountIdString();
        $decoded_url = urldecode($url); // Handle encoded characters like `%20`
        $unprefixed_url = $account_id_string
            ? preg_replace("/^\/$account_id_string/", '', $decoded_url)
            : $decoded_url;
 
        foreach ($route_classes as $route_class) {
            $routes = $route_class::ROUTES;
            foreach ($routes as $path => $handler) {
                $params = [];
 
                if (preg_match("/^$path\/?$/i", "$method $unprefixed_url", $params)) {
                    return $route_class::$handler($params, $request);
                }
            }
        }
 
        http_response_code(404);
        return '<div class="px-4 py-3">' . \EDS\Alert(['variant' => 'danger'], 'Not Found') . '</div>';
    }
}
 
Arguments
  1. array:5 [
      0 => "GET /restaurants/pennsylvania/murrysville"
      "state" => "pennsylvania"
      1 => "pennsylvania"
      "city" => "murrysville"
      2 => "murrysville"
    ]
    
  2. array:4 [
      "aid" => "restaurants/pennsylvania/murrysville"
      "status" => []
      "controller" => "marketplace"
      "form" => "home"
    ]
    
/
home
/
deploy
/
EHungry-5-boyan
/
Web
/
marketplace
/
router.php
require_once(CORE_PATH . 'auth/forgotpassword.php');
require_once(CORE_PATH . 'auth/login.php');
require_once(CORE_PATH . 'auth/register.php');
 
require_once(CORE_PATH . 'marketplace/assets/assets.php');
 
require_once(__DIR__ . '/routes/landing.php');
require_once(__DIR__ . '/routes/campaigns.php');
require_once(__DIR__ . '/routes/product.php');
require_once(__DIR__ . '/routes/restaurant_list.php');
require_once(__DIR__ . '/routes/restaurant_details.php');
require_once(__DIR__ . '/routes/support.php');
require_once(__DIR__ . '/routes/generatedfilesroute.php');
 
$handler_output = \eHungry\Services\Router::handle(
    $_SERVER['REQUEST_METHOD'],
    parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH),
    $_REQUEST,
    [
        \AccountSettings\ProfileInfoRoutes::class,
        \AccountSettings\BasicInformationRoutes::class,
        \AccountSettings\ChangePasswordRoutes::class,
        \AccountSettings\AddressRoutes::class,
        \AccountSettings\PaymentMethodRoutes::class,
        \AccountSettings\CommunicationRoutes::class,
        \AccountSettings\CampaignsRoutes::class,
        \AccountSettings\AccountRoutes::class,
        \AccountSettings\OrderRoutes::class,
        \AccountSettings\CouponRoutes::class,
 
        \Auth\ForgotPasswordRoutes::class,
        \Auth\LoginRoutes::class,
        \Auth\RegisterRoutes::class,
 
        LandingRoute::class,
        CampaignsRoute::class,
        ProductRoute::class,
        RestaurantListRoute::class,
        RestaurantPageRoute::class,
        SupportRoutes::class,
Arguments
  1. "GET"
    
  2. "/restaurants/pennsylvania/murrysville"
    
  3. array:4 [
      "aid" => "restaurants/pennsylvania/murrysville"
      "status" => []
      "controller" => "marketplace"
      "form" => "home"
    ]
    
  4. array:20 [
      0 => "AccountSettings\ProfileInfoRoutes"
      1 => "AccountSettings\BasicInformationRoutes"
      2 => "AccountSettings\ChangePasswordRoutes"
      3 => "AccountSettings\AddressRoutes"
      4 => "AccountSettings\PaymentMethodRoutes"
      5 => "AccountSettings\CommunicationRoutes"
      6 => "AccountSettings\CampaignsRoutes"
      7 => "AccountSettings\AccountRoutes"
      8 => "AccountSettings\OrderRoutes"
      9 => "AccountSettings\CouponRoutes"
      10 => "Auth\ForgotPasswordRoutes"
      11 => "Auth\LoginRoutes"
      12 => "Auth\RegisterRoutes"
      13 => "Marketplace\LandingRoute"
      14 => "Marketplace\CampaignsRoute"
      15 => "Marketplace\ProductRoute"
      16 => "Marketplace\RestaurantListRoute"
      17 => "Marketplace\RestaurantPageRoute"
      18 => "Marketplace\SupportRoutes"
      19 => "Marketplace\GeneratedFilesRoute"
    ]
    
/
home
/
deploy
/
EHungry-5-boyan
/
Web
/
controllers
/
marketplace.php
<?
include(CORE_PATH . 'marketplace/router.php');
 
Arguments
  1. "/home/deploy/EHungry-5-boyan/Web/marketplace/router.php"
    
/
home
/
deploy
/
EHungry-5-boyan
/
Web
/
index.php
App::startTime();
 
ErrorHandlers::register();
 
// Global.php is the core setup file for the application
App::debugbarTime('Global.php');
require(dirname(__DIR__) . '/PHP/Global.php');
App::debugbarTime('Global.php');
/** @var string $controller The main controller - defined at /PHP/Global.php */
 
App::debugbarTime('Sentry - controller');
ErrorHandlers::sentryInit($controller); //doesn't always do much - not every controller has a Sentry project
App::debugbarTime('Sentry - controller');
 
App::debugbarTime("controller: $controller");
apache_note('AppController', $controller);
if (file_exists(CORE_PATH."lib/helpers/$controller.php")) {
    require CORE_PATH."lib/helpers/$controller.php";
}
require CORE_PATH."controllers/$controller.php";
App::debugbarTime("controller: $controller");
 
Arguments
  1. "/home/deploy/EHungry-5-boyan/Web/controllers/marketplace.php"
    

Environment & details:

Key Value
aid
"restaurants/pennsylvania/murrysville"
empty
empty
Key Value
PHPSESSID
"eqrrp5uqp6ol8kg6u4om2g3f23"
Key Value
loc
"en_US"
Key Value
UNIQUE_ID
"aTSvC03ywIbM62O7XKROkwAAAAY"
SCRIPT_URL
"/restaurants/pennsylvania/murrysville"
SCRIPT_URI
"http://www.springroll.com.5.boyan.ehungry.net/restaurants/pennsylvania/murrysville"
HTTP_HOST
"www.springroll.com.5.boyan.ehungry.net"
HTTP_X_REAL_IP
"216.73.216.186"
HTTP_X_FORWARDED_FOR
"216.73.216.186"
HTTP_X_CONFKEY
"Main_Domain:6462"
HTTP_SCHEME
"https"
HTTP_EHENV
"TODO"
HTTP_CONNECTION
"close"
HTTP_ACCEPT
"*/*"
HTTP_USER_AGENT
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
HTTP_ACCEPT_ENCODING
"gzip, br, zstd, deflate"
HTTP_COOKIE
"PHPSESSID=eqrrp5uqp6ol8kg6u4om2g3f23"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"
SERVER_SIGNATURE
""
SERVER_SOFTWARE
"Apache/2.4.62 () mod_wsgi/4.6.5 Python/3.7 PHP/7.2.34"
SERVER_NAME
"www.springroll.com.5.boyan.ehungry.net"
SERVER_ADDR
"127.0.0.1"
SERVER_PORT
"80"
REMOTE_ADDR
"127.0.0.1"
DOCUMENT_ROOT
"/home/deploy/EHungry-5-boyan/Web"
REQUEST_SCHEME
"http"
CONTEXT_PREFIX
""
CONTEXT_DOCUMENT_ROOT
"/home/deploy/EHungry-5-boyan/Web"
SERVER_ADMIN
"root@localhost"
SCRIPT_FILENAME
"/home/deploy/EHungry-5-boyan/Web/index.php"
REMOTE_PORT
"49478"
GATEWAY_INTERFACE
"CGI/1.1"
SERVER_PROTOCOL
"HTTP/1.0"
REQUEST_METHOD
"GET"
QUERY_STRING
"aid=restaurants/pennsylvania/murrysville"
REQUEST_URI
"/restaurants/pennsylvania/murrysville"
SCRIPT_NAME
"/restaurants/pennsylvania/murrysville"
PHP_SELF
"/restaurants/pennsylvania/murrysville"
REQUEST_TIME_FLOAT
1765060363.084
REQUEST_TIME
1765060363
empty
0. Whoops\Handler\PrettyPageHandler

Fatal error: Uncaught RedisException: MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error. in [no active file]:0 Stack trace: #0 {main} thrown in [no active file] on line 0