Documentation

Assets extends Helper
in package

Assets class.

Table of Contents

$app  : App
__call()  : mixed
__construct()  : mixed
__get()  : mixed
__invoke()  : mixed
compile()  : string
Compile assets into one file
initialize()  : mixed
script()  : string
Compile scripts and return in a script tag
style()  : string
Compile styles and return in a link tag
style_and_script()  : void
Echo tags for scripts and styles

Properties

Methods

__call()

public __call(mixed $name, mixed $arguments) : mixed
Parameters
$name : mixed
$arguments : mixed
Return values
mixed

__construct()

public __construct(mixed $app) : mixed
Parameters
$app : mixed
Return values
mixed

__get()

public __get(mixed $name) : mixed
Parameters
$name : mixed
Return values
mixed

__invoke()

public __invoke(mixed $helper) : mixed
Parameters
$helper : mixed
Return values
mixed

compile()

Compile assets into one file

public compile(array<string|int, mixed> $assets, string $type) : string
Parameters
$assets : array<string|int, mixed>
$type : string

js or css

Return values
string

initialize()

public initialize() : mixed
Return values
mixed

script()

Compile scripts and return in a script tag

public script(array<string|int, mixed> $assets, string $name[, string $path = "" ], float $cache[, bool $version = false ]) : string
Parameters
$assets : array<string|int, mixed>
$name : string
$path : string = ""
$cache : float
$version : bool = false
Return values
string

style()

Compile styles and return in a link tag

public style(array<string|int, mixed> $assets, string $name[, string $path = "" ], float $cache[, bool $version = false ]) : string
Parameters
$assets : array<string|int, mixed>
$name : string
$path : string = ""
$cache : float
$version : bool = false
Return values
string

style_and_script()

Echo tags for scripts and styles

public style_and_script(array<string|int, mixed> $assets, string $name[, string $path = "" ], float $cache[, bool $version = false ]) : void
Parameters
$assets : array<string|int, mixed>
$name : string
$path : string = ""
$cache : float
$version : bool = false
Return values
void

Search results