Code Context
switch ($business->business_category['name']) {
case 'Lodging':
$business = object(App\Model\Entity\Business) {
'id' => (int) 1131,
'parent_business_id' => null,
'listing_type_id' => (int) 1,
'name' => 'Bear Creek Lake State Park',
'name_canonical' => 'Bear Creek Lake State Park',
'email' => 'bearcreek@dcr.virginia.gov',
'email_partner_account' => null,
'experience_vendor_description' => null,
'email_experiences' => null,
'logo_url' => '',
'phone_direct' => '804.492.4410',
'phone_toll_free' => '800.933.7275',
'description_long' => '<p><br></p>',
'description_short' => 'When you're ready to escape the pressures of city life, Bear Creek Lake is the perfect getaway. It offers camping and all the activities you could want. From hiking to fishing and everything in between, this state park is an outdoor enthusiast's paradise.',
'description_long_sonoma' => null,
'description_short_sonoma' => null,
'description_long_winecountry' => null,
'description_short_winecountry' => null,
'perks_description_text' => null,
'perks_main_html' => null,
'perks_secondary_html' => null,
'legacy_html' => '<p><br></p>',
'homepage_url' => '',
'priceline_id' => null,
'review_count' => null,
'review_rating' => null,
'address' => '929 Oak Hill Road, Cumberland near',
'city' => 'Richmond',
'state_id' => (int) 48,
'zip' => '23040',
'country_code' => 'US',
'latitude' => (float) 37.47736,
'longitude' => (float) -78.29599,
'placement_priority' => null,
'placement_priority_randomizer' => (float) 0,
'facebook_url' => '',
'twitter_url' => '',
'pinterest_handle' => '',
'yelp_id' => '',
'yelp_business_id' => '',
'yelp_url' => '',
'youtube_url' => '',
'tripadvisor_url' => '',
'business_rating_id' => (int) 0,
'business_venue_capacity_id' => null,
'is_handicap_access' => false,
'is_pet_friendly' => false,
'highlight_html' => '<p><br></p>',
'business_category_id' => null,
'reservation_url' => '',
'is_smoking_prohibited' => false,
'is_hot_tub' => false,
'is_sauna' => false,
'is_whirlpool_tub' => false,
'is_private_balcony' => false,
'is_views' => false,
'is_children_ok' => false,
'is_meeting_facilities' => null,
'is_wedding_facilities' => null,
'is_restaurant' => false,
'is_tennis' => false,
'is_hiking' => false,
'is_pool' => false,
'is_fireplaces' => false,
'is_spa_facilities' => false,
'is_senior_rates' => false,
'is_wine_reception' => false,
'is_air_conditioning' => false,
'business_price_id' => null,
'minimum_price' => null,
'is_open_breakfast' => false,
'is_open_dinner' => false,
'hours_open' => '',
'architect_name' => '',
'num_holes' => null,
'par' => null,
'green_fees' => '',
'yards_men' => null,
'yards_women' => null,
'usga_rating' => '',
'wine_club_url' => '',
'buy_wine_url' => '',
'status_text' => null,
'featured_html' => null,
'video_html' => null,
'video_caption' => null,
'experience_product_id' => null,
'onsite_business_ids' => null,
'onsite_deal_ids' => null,
'nearby_business_ids' => null,
'insider_tips_text' => null,
'amenities_description' => null,
'region_id' => null,
'is_moderated' => false,
'is_direct_link' => null,
'is_covet_pass_featured' => null,
'tock_name' => null,
'created' => object(Cake\I18n\FrozenTime) {},
'modified' => object(Cake\I18n\FrozenTime) {},
'media' => [
(int) 0 => object(App\Model\Entity\Media) {}
],
'deals' => [],
'tags' => [
(int) 0 => object(App\Model\Entity\Tag) {},
(int) 1 => object(App\Model\Entity\Tag) {},
(int) 2 => object(App\Model\Entity\Tag) {},
(int) 3 => object(App\Model\Entity\Tag) {}
],
'listing_type' => object(App\Model\Entity\ListingType) {},
'business_venue_capacity' => null,
'business_category' => null,
'business_price' => null,
'business_reviews' => [],
'business_rating' => null,
'state' => object(App\Model\Entity\State) {},
'parent_business' => null,
'is_premier' => false,
'[new]' => false,
'[accessible]' => [
'*' => true
],
'[dirty]' => [
'is_premier' => true
],
'[original]' => [],
'[virtual]' => [],
'[hasErrors]' => false,
'[errors]' => [],
'[invalid]' => [],
'[repository]' => 'Businesses'
}
$headers = []
$sections = []
$custom = []
$business_tag_names = [
(int) 0 => 'virginia',
(int) 1 => 'central-virginia',
(int) 2 => 'things-to-do-types',
(int) 3 => 'parks-and-nature'
]App\Model\Table\BusinessesTable::addHighlights() - APP/Model/Table/BusinessesTable.php, line 797
App\Controller\BusinessesController::view() - APP/Controller/BusinessesController.php, line 451
Cake\Controller\Controller::invokeAction() - CORE/src/Controller/Controller.php, line 606
Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 120
Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 94
Cake\Http\BaseApplication::__invoke() - CORE/src/Http/BaseApplication.php, line 256
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Http\Middleware\CsrfProtectionMiddleware::__invoke() - CORE/src/Http/Middleware/CsrfProtectionMiddleware.php, line 137
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Http\Runner::run() - CORE/src/Http/Runner.php, line 51
Cake\Routing\Middleware\RoutingMiddleware::__invoke() - CORE/src/Routing/Middleware/RoutingMiddleware.php, line 170
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Routing\Middleware\AssetMiddleware::__invoke() - CORE/src/Routing/Middleware/AssetMiddleware.php, line 88
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Error\Middleware\ErrorHandlerMiddleware::__invoke() - CORE/src/Error/Middleware/ErrorHandlerMiddleware.php, line 100
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65