Bitrix API

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
string

getString()

Return loader string.

public getString() : string
Return values
string

getStringJs()

Return loader js string.

public getStringJs() : string
Return values
string

setCacheTtl()

Set cache ttl.

public setCacheTtl(int $cacheTtl) : $this
Parameters
$cacheTtl : int

Ttl in seconds.

Return values
$this

setSkipMoving()

Set skip moving.

public setSkipMoving(bool $skip) : $this
Parameters
$skip : bool

Skip moving.

Return values
$this

setTagAttributes()

Set tag attributes.

public setTagAttributes([array<string|int, mixed> $tagAttributes = [] ]) : $this
Parameters
$tagAttributes : array<string|int, mixed> = []

Tag attributes.

Return values
$this

        
On this page

Search results