Asset
in package
implements
AssetInterface
Interfaces, Classes and Traits
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
__construct()
public
__construct(ManifestInterface $ownerManifest, LeanElement $manifestElement, FarahUrlPath $urlPath, AssetStrategies $strategies) : mixed
Parameters
- $ownerManifest : ManifestInterface
- $manifestElement : LeanElement
- $urlPath : FarahUrlPath
- $strategies : AssetStrategies
Return values
mixed —__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 —getAssetChildren()
Get all child assets.
public
getAssetChildren() : array<string|int, AssetInterface>
Return values
array<string|int, AssetInterface> —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> —getUrlPath()
Get the FarahUrlPath for this asset.
public
getUrlPath() : FarahUrlPath|null
Return values
FarahUrlPath|null —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 —lookupExecutable()
Create the executable for this asset, with the arguments supplied.
public
lookupExecutable([FarahUrlArguments $args = null ]) : ExecutableInterface
Parameters
- $args : FarahUrlArguments = null
Return values
ExecutableInterface —normalizeManifestElement()
Set any missing attributes according to the manifest's AssetBuilderStrategy.
public
normalizeManifestElement(LeanElement $child) : void
Parameters
- $child : LeanElement
Return values
void —traverseTo()
Traverse to a descendant asset.
public
traverseTo(string $path) : AssetInterface
Parameters
- $path : string