MockManifest
in package
implements
ManifestInterface
Table of Contents
Interfaces
Methods
- createAsset() : AssetInterface
- createCacheFile() : SplFileInfo
- createDataFile() : SplFileInfo
- createManifestFile() : SplFileInfo
- Returns a handle for a file inside the asset directory of this manifest.
- createUrl() : FarahUrl
- Build a Farah URL for the given path, with this module's URL as base.
- getId() : string
- The Farah URL that represents this module.
- lookupAsset() : AssetInterface
- normalizeManifestElement() : void
- Set any missing attributes according to the AssetBuilderStrategy.
- normalizeManifestTree() : void
Methods
createAsset()
public
createAsset(LeanElement $element) : AssetInterface
Parameters
- $element : LeanElement
Return values
AssetInterfacecreateCacheFile()
public
createCacheFile(string $fileName[, mixed $path = null ][, mixed $args = null ][, mixed $fragment = null ]) : SplFileInfo
Parameters
- $fileName : string
- $path : mixed = null
- $args : mixed = null
- $fragment : mixed = null
Return values
SplFileInfocreateDataFile()
public
createDataFile(string $fileName[, mixed $path = null ][, mixed $args = null ][, mixed $fragment = null ]) : SplFileInfo
Parameters
- $fileName : string
- $path : mixed = null
- $args : mixed = null
- $fragment : mixed = null
Return values
SplFileInfocreateManifestFile()
Returns a handle for a file inside the asset directory of this manifest.
public
createManifestFile(string $fileName) : SplFileInfo
Parameters
- $fileName : string
Return values
SplFileInfocreateUrl()
Build a Farah URL for the given path, with this module's URL as base.
public
createUrl([mixed $path = null ][, mixed $args = null ][, mixed $fragment = null ]) : FarahUrl
Parameters
- $path : mixed = null
- $args : mixed = null
- $fragment : mixed = null
Return values
FarahUrlgetId()
The Farah URL that represents this module.
public
getId() : string
$this === Module::resolveToManifest($this->getId())
Return values
stringlookupAsset()
public
lookupAsset(mixed $path) : AssetInterface
Parameters
- $path : mixed
Return values
AssetInterfacenormalizeManifestElement()
Set any missing attributes according to the AssetBuilderStrategy.
public
normalizeManifestElement(LeanElement $parent, LeanElement $child) : void
Parameters
- $parent : LeanElement
- $child : LeanElement
normalizeManifestTree()
public
normalizeManifestTree(LeanElement $root) : void
Parameters
- $root : LeanElement