FacturaScripts

AssetManager
in package

Asset Manager for easy add extra assets.

Tags
author

Carlos García Gómez [email protected]

Table of Contents

$list  : array<string|int, mixed>
add()  : mixed
Adds and asset to the list.
clear()  : mixed
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()  : mixed
Finds and sets the assets for this page.
dirname()  : string
fixCombineContent()  : string
init()  : mixed

Properties

Methods

add()

Adds and asset to the list.

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

clear()

Clears all asset lists.

public static clear() : mixed
Return values
mixed

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) : mixed
Parameters
$name : string
Return values
mixed

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() : mixed
Return values
mixed

Search results