AdminScriptManager extends ScriptManager
in package

Table of Contents

$isScriptDebug  : bool
$scriptDependencies  : array<string|int, string>
$styleDependencies  : array<string|int, mixed>
$roomIds  : mixed
__construct()  : mixed
addDependency()  : mixed
addRoomData()  : mixed
addStyleDependency()  : mixed
enqueue()  : mixed
getLocalizeData()  : array<string|int, mixed>
localize()  : mixed
register()  : mixed
scriptUrl()  : mixed
getDatepickerLocale()  : string
locateDatepickFile()  : string|false
registerDatepickerLocalization()  : mixed
registerDatepickTheme()  : mixed
registerStyles()  : mixed

Properties

$isScriptDebug

protected bool $isScriptDebug = false

$scriptDependencies

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

$styleDependencies

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

$roomIds

private mixed $roomIds = array()

Methods

__construct()

public __construct() : mixed
Return values
mixed

addDependency()

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

addRoomData()

public addRoomData(mixed $roomId) : mixed
Parameters
$roomId : mixed
Return values
mixed

addStyleDependency()

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

enqueue()

public enqueue() : mixed
Return values
mixed

getLocalizeData()

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

added new filter - "mphb_custom_admin_nonces".

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
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

Search results