|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Manages assets. More...
Inheritance diagram for Assetic\AssetManager:
Collaboration diagram for Assetic\AssetManager:Public Member Functions | |
| get ($name) | |
| Gets an asset by name. More... | |
| has ($name) | |
| Checks if the current asset manager has a certain asset. More... | |
| set ($name, AssetInterface $asset) | |
| Registers an asset to the current asset manager. More... | |
| getNames () | |
| Returns an array of asset names. More... | |
| clear () | |
| Clears all assets. More... | |
Private Attributes | |
| $assets = array() | |
Manages assets.
Definition at line 21 of file AssetManager.php.
| Assetic\AssetManager::clear | ( | ) |
Clears all assets.
Definition at line 85 of file AssetManager.php.
| Assetic\AssetManager::get | ( | $name | ) |
Gets an asset by name.
| string | $name | The asset name |
InvalidArgumentException If there is no asset by that name
Reimplemented in Assetic\Factory\LazyAssetManager.
Definition at line 34 of file AssetManager.php.
References sprintf.
Referenced by Assetic\AssetWriter\writeManagerAssets().
Here is the caller graph for this function:| Assetic\AssetManager::getNames | ( | ) |
Returns an array of asset names.
Reimplemented in Assetic\Factory\LazyAssetManager.
Definition at line 77 of file AssetManager.php.
Referenced by Assetic\AssetWriter\writeManagerAssets().
Here is the caller graph for this function:| Assetic\AssetManager::has | ( | $name | ) |
Checks if the current asset manager has a certain asset.
| string | $name | an asset name |
Reimplemented in Assetic\Factory\LazyAssetManager.
Definition at line 50 of file AssetManager.php.
| Assetic\AssetManager::set | ( | $name, | |
| AssetInterface | $asset | ||
| ) |
Registers an asset to the current asset manager.
| string | $name | The asset name |
| AssetInterface | $asset | The asset |
InvalidArgumentException If the asset name is invalid
Definition at line 63 of file AssetManager.php.
References sprintf.
|
private |
Definition at line 23 of file AssetManager.php.