FacturaScripts

AssetManager extends AssetManager
in package

Class created by Core/Base/PluginDeploy

Tags
author

FacturaScripts [email protected]

Table of Contents

$list  : array<string|int, mixed>
add()  : void
Adds and asset to the list.
addCss()  : void
addJs()  : void
clear()  : void
Clears all asset lists.
combine()  : string
Combine and returns the content of the selected type.
get()  : array<string|int, mixed>
Gets the list of assets.
setAssetsForPage()  : void
Finds and sets the assets for this page.
dirname()  : string
fixCombineContent()  : string
init()  : void

Properties

Methods

add()

Adds and asset to the list.

public static add(string $type, string $asset[, int $priority = 1 ]) : void
Parameters
$type : string
$asset : string
$priority : int = 1
Return values
void

addCss()

public static addCss(string $asset[, int $priority = 1 ]) : void
Parameters
$asset : string
$priority : int = 1
Return values
void

addJs()

public static addJs(string $asset[, int $priority = 1 ]) : void
Parameters
$asset : string
$priority : int = 1
Return values
void

clear()

Clears all asset lists.

public static clear() : void
Return values
void

combine()

Combine and returns the content of the selected type.

public static combine(string $type) : string
Parameters
$type : string
Return values
string

get()

Gets the list of assets.

public static get(string $type) : array<string|int, mixed>
Parameters
$type : string
Return values
array<string|int, mixed>

setAssetsForPage()

Finds and sets the assets for this page.

public static setAssetsForPage(string $name) : void
Parameters
$name : string
Return values
void

dirname()

protected static dirname(string $path[, int $levels = 1 ]) : string
Parameters
$path : string
$levels : int = 1
Return values
string

fixCombineContent()

protected static fixCombineContent(string $data, string $url) : string
Parameters
$data : string
$url : string
Return values
string

init()

protected static init() : void
Return values
void

Search results