Assetic\Asset\AssetInterface
An asset has a mutable URL and content and can be loaded and dumped.
- Author: Kris Wallsmith <kris.wallsmith@gmail.com>
Synopsis
interface AssetInterface
{
- // methods
- 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
Extended by
Implemented by
Methods
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.