Restaurant_Information implements Component
Handles the display of basic restaurant information (address, opening times, etc).
Tags
Interfaces, Classes and Traits
- Component
- Represents a restaurant menu component that can be rendered.
Table of Contents
- $availability : Availability_Options
- $restaurant_info : Information_Options
- $template_loader : mixed
- __construct() : mixed
- render() : string
- Renders the component. HTML is returned, not echoed.
- render_js_templates() : mixed
- are_opening_hours_valid() : mixed
- can_render_template() : mixed
- get_image_folder_url() : mixed
- get_template_args() : mixed
- load_js_template() : mixed
Properties
$availability
protected
Availability_Options
$availability
The restaurant availability options.
Tags
$restaurant_info
protected
Information_Options
$restaurant_info
The basic restaurant information.
Tags
$template_loader
private
mixed
$template_loader
Tags
Methods
__construct()
public
__construct(Information_Options $restaurant_info, Availability_Options $availability) : mixed
Parameters
- $restaurant_info : Information_Options
- $availability : Availability_Options
Tags
Return values
mixed —render()
Renders the component. HTML is returned, not echoed.
public
render() : string
Tags
Return values
string —The component output.
render_js_templates()
public
render_js_templates() : mixed
Tags
Return values
mixed —are_opening_hours_valid()
private
are_opening_hours_valid() : mixed
Tags
Return values
mixed —can_render_template()
private
can_render_template(mixed $template_args) : mixed
Parameters
- $template_args : mixed
Tags
Return values
mixed —get_image_folder_url()
private
get_image_folder_url() : mixed
Tags
Return values
mixed —get_template_args()
private
get_template_args() : mixed
Tags
Return values
mixed —load_js_template()
private
load_js_template() : mixed