PublicScriptManager extends ScriptManager
in package

Table of Contents

$isScriptDebug  : bool
$scriptDependencies  : array<string|int, string>
$styleDependencies  : array<string|int, mixed>
$checkoutData  : mixed
$gatewaysData  : array<string|int, mixed>
$roomTypeIds  : array<string|int, int>
__construct()  : mixed
addCheckoutData()  : mixed
addDependency()  : mixed
addGatewayData()  : mixed
addRoomTypeData()  : mixed
addStyleDependency()  : mixed
enqueue()  : mixed
enqueueBlockEditor()  : mixed
getLocalizeData()  : array<string|int, mixed>
localize()  : mixed
register()  : mixed
registerRoomsForVisualEditor()  : mixed
scriptUrl()  : mixed
getDatepickerLocale()  : string
locateDatepickFile()  : string|false
registerDatepickerLocalization()  : mixed
registerDatepickTheme()  : mixed
registerStyles()  : mixed
enqueueStyles()  : mixed

Properties

$isScriptDebug

protected bool $isScriptDebug = false

$scriptDependencies

protected array<string|int, string> $scriptDependencies = array('jquery')

$styleDependencies

protected array<string|int, mixed> $styleDependencies = array()

$checkoutData

private mixed $checkoutData

$gatewaysData

private array<string|int, mixed> $gatewaysData = array()

$roomTypeIds

private array<string|int, int> $roomTypeIds = array()

Methods

__construct()

public __construct() : mixed
Return values
mixed

addCheckoutData()

public addCheckoutData(array<string|int, mixed> $data) : mixed
Parameters
$data : array<string|int, mixed>
Return values
mixed

addDependency()

public addDependency(mixed $dependency) : mixed
Parameters
$dependency : mixed
Return values
mixed

addGatewayData()

public addGatewayData(string $gatewayId, array<string|int, mixed> $data) : mixed
Parameters
$gatewayId : string
$data : array<string|int, mixed>
Return values
mixed

addRoomTypeData()

public addRoomTypeData(mixed $roomTypeId) : mixed
Parameters
$roomTypeId : mixed
Return values
mixed

addStyleDependency()

public addStyleDependency(mixed $dependency) : mixed
Parameters
$dependency : mixed
Return values
mixed

enqueue()

public enqueue() : mixed
Return values
mixed

enqueueBlockEditor()

public enqueueBlockEditor() : mixed
Return values
mixed

getLocalizeData()

public getLocalizeData() : array<string|int, mixed>
Tags
since
3.7

added new filters: "mphb_custom_front_nonces", "mphb_public_room_type_data" and "mphb_public_booking_rules_data".

since
3.8

added new filter - "mphb_public_js_data".

Return values
array<string|int, mixed>

localize()

public localize() : mixed
Return values
mixed

register()

public register() : mixed
Tags
since
3.6.0

removed the script "mphb-vendor-stripe-checkout".

since
3.6.0

added new script - "mphb-vendor-stripe-library".

Return values
mixed

registerRoomsForVisualEditor()

public registerRoomsForVisualEditor() : mixed
Return values
mixed

scriptUrl()

public scriptUrl(mixed $relativePath) : mixed
Parameters
$relativePath : mixed
Return values
mixed

getDatepickerLocale()

protected getDatepickerLocale([string $locale = null ]) : string
Parameters
$locale : string = null

Optional.

Return values
string

locateDatepickFile()

protected locateDatepickFile(string $theme) : string|false
Parameters
$theme : string
Return values
string|false

registerDatepickerLocalization()

protected registerDatepickerLocalization() : mixed
Return values
mixed

registerDatepickTheme()

protected registerDatepickTheme() : mixed
Return values
mixed

registerStyles()

protected registerStyles() : mixed
Return values
mixed

enqueueStyles()

private enqueueStyles() : mixed
Return values
mixed

Search results