ReservedRoomsTemplater extends AbstractTemplater
in package

Table of Contents

$booking  : Booking
$tags  : mixed
$reservedRoom  : ReservedRoom
$reservedRoomNumber  : int
__construct()  : mixed
addTag()  : mixed
getDeprecatedTags()  : array<string|int, mixed>
Retrieve names array of deprecated tags.
getTagsDescription()  : string
hasTag()  : bool
process()  : mixed
replaceTag()  : string
replaceTags()  : string
setupTags()  : mixed
_generateTagsFindString()  : string

Properties

$booking

protected Booking $booking

$tags

protected mixed $tags = array()

$reservedRoom

private ReservedRoom $reservedRoom

$reservedRoomNumber

private int $reservedRoomNumber

Methods

__construct()

public __construct() : mixed
Return values
mixed

addTag()

public addTag(string $name, string $description[, array<string|int, mixed> $atts = array() ]) : mixed
Parameters
$name : string
$description : string
$atts : array<string|int, mixed> = array()
Return values
mixed

getDeprecatedTags()

Retrieve names array of deprecated tags.

public getDeprecatedTags() : array<string|int, mixed>
Tags
note

this method works correct after plugins_loaded hook only

Return values
array<string|int, mixed>

getTagsDescription()

public getTagsDescription() : string
Return values
string

hasTag()

public hasTag(string $tag) : bool
Parameters
$tag : string
Tags
since
3.8.4
Return values
bool

process()

public process(Booking $booking) : mixed
Parameters
$booking : Booking
Return values
mixed

replaceTag()

public replaceTag(array<string|int, mixed> $match) : string
Parameters
$match : array<string|int, mixed>
Tags
since
3.6.1

added new macros - %guest_name%.

Return values
string

replaceTags()

public replaceTags(string $content) : string
Parameters
$content : string
Return values
string

setupTags()

public setupTags() : mixed
Return values
mixed

_generateTagsFindString()

protected _generateTagsFindString(array<string|int, mixed> $tags) : string
Parameters
$tags : array<string|int, mixed>
Return values
string

Search results