Loader
Class Loader
Table of Contents
Methods
- __construct() : mixed
- Loader constructor.
- getFileUrl() : string
- Return loader file url.
- getString() : string
- Return loader string.
- getStringJs() : string
- Return loader js string.
- setCacheTtl() : $this
- Set cache ttl.
- setSkipMoving() : $this
- Set skip moving.
- setTagAttributes() : $this
- Set tag attributes.
Methods
__construct()
Loader constructor.
public
__construct(File $file) : mixed
Parameters
- $file : File
-
File output instance.
getFileUrl()
Return loader file url.
public
getFileUrl() : string
Return values
stringgetString()
Return loader string.
public
getString() : string
Return values
stringgetStringJs()
Return loader js string.
public
getStringJs() : string
Return values
stringsetCacheTtl()
Set cache ttl.
public
setCacheTtl(int $cacheTtl) : $this
Parameters
- $cacheTtl : int
-
Ttl in seconds.
Return values
$thissetSkipMoving()
Set skip moving.
public
setSkipMoving(bool $skip) : $this
Parameters
- $skip : bool
-
Skip moving.
Return values
$thissetTagAttributes()
Set tag attributes.
public
setTagAttributes([array<string|int, mixed> $tagAttributes = [] ]) : $this
Parameters
- $tagAttributes : array<string|int, mixed> = []
-
Tag attributes.