RoomRatesShortcode
extends AbstractShortcode
in package
Table of Contents
- $name : mixed
- $roomTypeId : mixed
- __construct() : mixed
- addActions() : mixed
- generateShortcode() : string
- getName() : mixed
- register() : mixed
- render() : string
- renderAfterItem() : mixed
- renderAfterLoop() : mixed
- renderBeforeItem() : mixed
- renderBeforeLoop() : mixed
- buildOrderQuery() : array<string|int, mixed>
- mainLoop() : mixed
- renderRate() : mixed
- showNotFoundMessage() : mixed
Properties
$name
protected
mixed
$name
= 'mphb_rates'
$roomTypeId
private
mixed
$roomTypeId
Methods
__construct()
public
__construct() : mixed
Return values
mixed —addActions()
public
addActions() : mixed
Return values
mixed —generateShortcode()
public
generateShortcode([array<string|int, mixed> $attrs = array() ]) : string
Parameters
- $attrs : array<string|int, mixed> = array()
-
Attributes of shortcode
Return values
string —getName()
public
getName() : mixed
Return values
mixed —register()
public
register() : mixed
Return values
mixed —render()
public
render(array<string|int, mixed> $atts, string $content, string $shortcodeName) : string
Parameters
- $atts : array<string|int, mixed>
- $content : string
-
Optional.
- $shortcodeName : string
Return values
string —renderAfterItem()
public
static renderAfterItem() : mixed
Return values
mixed —renderAfterLoop()
public
static renderAfterLoop() : mixed
Return values
mixed —renderBeforeItem()
public
static renderBeforeItem() : mixed
Return values
mixed —renderBeforeLoop()
public
static renderBeforeLoop() : mixed
Return values
mixed —buildOrderQuery()
protected
buildOrderQuery(array<string|int, mixed> $atts, array<string|int, mixed> $defaults) : array<string|int, mixed>
Parameters
- $atts : array<string|int, mixed>
-
Shortcode attributes.
- $defaults : array<string|int, mixed>
-
Default values of "orderby" and "order" attributes.
Tags
Return values
array<string|int, mixed> —mainLoop()
private
mainLoop() : mixed
Return values
mixed —renderRate()
private
renderRate(Rate $rate) : mixed
Parameters
- $rate : Rate
Return values
mixed —showNotFoundMessage()
private
showNotFoundMessage() : mixed