Documentation

Asset
in package
implements AssetInterface

Interfaces, Classes and Traits

AssetInterface

Table of Contents

__construct()  : mixed
__toString()  : string
createUrl()  : FarahUrl
Create a FarahUrl for this asset, with arguments and stream set as supplied.
getAssetChildren()  : array<string|int, AssetInterface>
Get all child assets.
getFileInfo()  : FarahUrlPath|null
Get the filesystem entry for this asset.
getManifestElement()  : LeanElement
getSuppliedParameters()  : iteratable<string|int, mixed>
Get the parameters supplied by this assets's ParameterSupplierStrategy.
getUrlPath()  : FarahUrlPath|null
Get the FarahUrlPath for this asset.
isImportChildrenInstruction()  : bool
isImportSelfInstruction()  : bool
isLinkModuleInstruction()  : bool
isLinkScriptInstruction()  : bool
isLinkStylesheetInstruction()  : bool
isParameterSupplierInstruction()  : bool
isUseDocumentInstruction()  : bool
isUseManifestInstruction()  : bool
isUseTemplateInstruction()  : bool
lookupExecutable()  : ExecutableInterface
Create the executable for this asset, with the arguments supplied.
normalizeManifestElement()  : void
Set any missing attributes according to the manifest's AssetBuilderStrategy.
traverseTo()  : AssetInterface
Traverse to a descendant asset.

Methods

__toString()

public __toString() : string
Return values
string

createUrl()

Create a FarahUrl for this asset, with arguments and stream set as supplied.

public createUrl([mixed $args = null ][, mixed $fragment = null ]) : FarahUrl
Parameters
$args : mixed = null
$fragment : mixed = null
Return values
FarahUrl

getFileInfo()

Get the filesystem entry for this asset.

public getFileInfo() : FarahUrlPath|null

This might be a file, a directory, or it might not physically exist.

Return values
FarahUrlPath|null

getManifestElement()

public getManifestElement() : LeanElement
Return values
LeanElement

getSuppliedParameters()

Get the parameters supplied by this assets's ParameterSupplierStrategy.

public getSuppliedParameters() : iteratable<string|int, mixed>
Return values
iteratable<string|int, mixed>

isImportChildrenInstruction()

public isImportChildrenInstruction() : bool
Return values
bool

isImportSelfInstruction()

public isImportSelfInstruction() : bool
Return values
bool

isLinkModuleInstruction()

public isLinkModuleInstruction() : bool
Return values
bool

isLinkScriptInstruction()

public isLinkScriptInstruction() : bool
Return values
bool

isLinkStylesheetInstruction()

public isLinkStylesheetInstruction() : bool
Return values
bool

isParameterSupplierInstruction()

public isParameterSupplierInstruction() : bool
Return values
bool

isUseDocumentInstruction()

public isUseDocumentInstruction() : bool
Return values
bool

isUseManifestInstruction()

public isUseManifestInstruction() : bool
Return values
bool

isUseTemplateInstruction()

public isUseTemplateInstruction() : bool
Return values
bool

normalizeManifestElement()

Set any missing attributes according to the manifest's AssetBuilderStrategy.

public normalizeManifestElement(LeanElement $child) : void
Parameters
$child : LeanElement
Return values
void

Search results