Information_Options

Stores basic restaurant information (the address, opening hours, etc).

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Table of Contents

$args  : array<string|int, mixed>
__construct()  : mixed
Constructor.
get_defaults()  : array<string|int, mixed>
Get the availability default options.
get_delivery_notice()  : string
Get the delivery/collection notice for this restaurant.
get_options()  : array<string|int, mixed>
Get the full list of information options as an array.
get_restaurant_address()  : string
Get the restaurant address.
get_restaurant_name()  : string
Get the restaurant name.
get_settings()  : array<string|int, mixed>
Get the plugin settings related to restaurant information. If no settings are stored, the default value from get_defaults is returned.
parse_args()  : array<string|int, mixed>

Properties

$args

protected array<string|int, mixed> $args

The args array used to create the options object.

Methods

__construct()

Constructor.

public __construct([array<string|int, mixed> $args = [] ][, bool $load_settings = true ]) : mixed
Parameters
$args : array<string|int, mixed> = []
$load_settings : bool = true
Return values
mixed

get_defaults()

Get the availability default options.

public static get_defaults() : array<string|int, mixed>
Return values
array<string|int, mixed>

The defaults

get_delivery_notice()

Get the delivery/collection notice for this restaurant.

public get_delivery_notice() : string
Return values
string

The delivery notice

get_options()

Get the full list of information options as an array.

public get_options() : array<string|int, mixed>
Return values
array<string|int, mixed>

The information options

get_restaurant_address()

Get the restaurant address.

public get_restaurant_address() : string
Return values
string

The restaurant address

get_restaurant_name()

Get the restaurant name.

public get_restaurant_name() : string
Return values
string

The restaurant name

get_settings()

Get the plugin settings related to restaurant information. If no settings are stored, the default value from get_defaults is returned.

protected get_settings() : array<string|int, mixed>
Tags
see
get_defaults
Return values
array<string|int, mixed>

The settings

parse_args()

private parse_args(array<string|int, mixed> $args) : array<string|int, mixed>
Parameters
$args : array<string|int, mixed>
Return values
array<string|int, mixed>

Search results