\FML\Script\FeaturesPreload

Script Feature for Image Preloading

Summary

Methods
Properties
Constants
collect()
prepare()
__construct()
getImageUrls()
addImageUrl()
setImageUrls()
removeAllImageUrls()
No public properties found
No constants found
getScriptText()
$imageUrls
N/A
No private methods found
No private properties found
N/A

Properties

$imageUrls

$imageUrls : array<mixed,string>

Type

array<mixed,string> — Image urls

Methods

collect()

collect() : array<mixed,\FML\Script\Features\ScriptFeature>

Collect the Script Features of the given objects

Returns

array<mixed,\FML\Script\Features\ScriptFeature>

prepare()

prepare(\FML\Script\Script  $script) : static

Prepare the given Script for rendering by adding the needed Labels, etc.

Parameters

\FML\Script\Script $script

Script to prepare

Returns

static

__construct()

__construct(array<mixed,string>  $imageUrls = null) 

Construct a new Preload

Parameters

array<mixed,string> $imageUrls

(optional) Image urls

getImageUrls()

getImageUrls() : array<mixed,string>

Get Image Urls to preload

Returns

array<mixed,string>

addImageUrl()

addImageUrl(string  $imageUrl) : static

Add an Image Url to preload

Parameters

string $imageUrl

Image Url

Returns

static

setImageUrls()

setImageUrls(array<mixed,string>  $imageUrls = array()) : static

Set Image Urls to preload

Parameters

array<mixed,string> $imageUrls

Image Urls

Returns

static

removeAllImageUrls()

removeAllImageUrls() : static

Remove all Image Urls

Returns

static

getScriptText()

getScriptText() : string

Get the script text

Returns

string