|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
An asset collection. More...
Inheritance diagram for Assetic\Asset\AssetCollectionInterface:
Collaboration diagram for Assetic\Asset\AssetCollectionInterface:Public Member Functions | |
| all () | |
| Returns all child assets. More... | |
| add (AssetInterface $asset) | |
| Adds an asset to the current collection. More... | |
| removeLeaf (AssetInterface $leaf, $graceful=false) | |
| Removes a leaf. More... | |
| replaceLeaf (AssetInterface $needle, AssetInterface $replacement, $graceful=false) | |
| Replaces an existing leaf with a new one. More... | |
Public Member Functions inherited from Assetic\Asset\AssetInterface | |
| ensureFilter (FilterInterface $filter) | |
| Ensures the current asset includes the supplied filter. More... | |
| getFilters () | |
| Returns an array of filters currently applied. More... | |
| clearFilters () | |
| Clears all filters from the current asset. More... | |
| load (FilterInterface $additionalFilter=null) | |
| Loads the asset into memory and applies load filters. More... | |
| dump (FilterInterface $additionalFilter=null) | |
| Applies dump filters and returns the asset as a string. More... | |
| getContent () | |
| Returns the loaded content of the current asset. More... | |
| setContent ($content) | |
| Sets the content of the current asset. More... | |
| getSourceRoot () | |
| Returns an absolute path or URL to the source asset's root directory. More... | |
| getSourcePath () | |
| Returns the relative path for the source asset. More... | |
| getSourceDirectory () | |
| Returns the asset's source directory. More... | |
| getTargetPath () | |
| Returns the URL for the current asset. More... | |
| setTargetPath ($targetPath) | |
| Sets the URL for the current asset. More... | |
| getLastModified () | |
| Returns the time the current asset was last modified. More... | |
| getVars () | |
| Returns an array of variable names for this asset. More... | |
| setValues (array $values) | |
| Sets the values for the asset's variables. More... | |
| getValues () | |
| Returns the current values for this asset. More... | |
An asset collection.
Definition at line 19 of file AssetCollectionInterface.php.
| Assetic\Asset\AssetCollectionInterface::add | ( | AssetInterface | $asset | ) |
Adds an asset to the current collection.
| AssetInterface | $asset | An asset |
Implemented in Assetic\Asset\AssetCollection.
| Assetic\Asset\AssetCollectionInterface::all | ( | ) |
Returns all child assets.
Implemented in Assetic\Asset\AssetCollection, and Assetic\Asset\GlobAsset.
Referenced by Assetic\Asset\Iterator\AssetCollectionIterator\__construct().
Here is the caller graph for this function:| Assetic\Asset\AssetCollectionInterface::removeLeaf | ( | AssetInterface | $leaf, |
$graceful = false |
|||
| ) |
Removes a leaf.
| AssetInterface | $leaf | The leaf to remove |
| Boolean | $graceful | Whether the failure should return false or throw an exception |
InvalidArgumentException If the asset cannot be found
Implemented in Assetic\Asset\AssetCollection.
Referenced by Assetic\Asset\AssetCollection\removeLeaf().
Here is the caller graph for this function:| Assetic\Asset\AssetCollectionInterface::replaceLeaf | ( | AssetInterface | $needle, |
| AssetInterface | $replacement, | ||
$graceful = false |
|||
| ) |
Replaces an existing leaf with a new one.
| AssetInterface | $needle | The current asset to replace |
| AssetInterface | $replacement | The new asset |
| Boolean | $graceful | Whether the failure should return false or throw an exception |
InvalidArgumentException If the asset cannot be found
Implemented in Assetic\Asset\AssetCollection.
Referenced by Assetic\Factory\AssetFactory\applyWorkers(), and Assetic\Asset\AssetCollection\replaceLeaf().
Here is the caller graph for this function: