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
Return values
array<string|int, mixed> —localize()
public
localize() : mixed
Return values
mixed —register()
public
register() : mixed
Tags
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