Assetic\Asset\AssetCollectionInterface
An asset collection.
- Author: Kris Wallsmith <kris.wallsmith@gmail.com>
Synopsis
interface AssetCollectionInterface
extends AssetInterface, Traversable
{
- // methods
- public array all()
- public void add()
- public Boolean removeLeaf()
- public Boolean replaceLeaf()
- // Inherited methods from AssetInterface
- public void ensureFilter()
- public array getFilters()
- public void clearFilters()
- public void load()
- public string dump()
- public string getContent()
- public void setContent()
- public string|null getSourceRoot()
- public string|null getSourcePath()
- public string|null getTargetPath()
- public void setTargetPath()
- public integer|null getLastModified()
- public array getVars()
- public void setValues()
- public array getValues()
Hierarchy
Extends
Implemented by
Methods
public
- add() — Adds an asset to the current collection.
- all() — Returns all child assets.
- removeLeaf() — Removes a leaf.
- replaceLeaf() — Replaces an existing leaf with a new one.
Inherited from Assetic\Asset\AssetInterface
public
- clearFilters() — Clears all filters from the current asset.
- dump() — Applies dump filters and returns the asset as a string.
- ensureFilter() — Ensures the current asset includes the supplied filter.
- getContent() — Returns the loaded content of the current asset.
- getFilters() — Returns an array of filters currently applied.
- getLastModified() — Returns the time the current asset was last modified.
- getSourcePath() — Returns the relative path for the source asset.
- getSourceRoot() — Returns an absolute path or URL to the source asset's root directory.
- getTargetPath() — Returns the URL for the current asset.
- getValues() — Returns the current values for this asset.
- getVars() — Returns an array of variable names for this asset.
- load() — Loads the asset into memory and applies load filters.
- setContent() — Sets the content of the current asset.
- setTargetPath() — Sets the URL for the current asset.
- setValues() — Sets the values for the asset's variables.