|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
A lazy asset manager is a composition of a factory and many formula loaders. More...
Inheritance diagram for Assetic\Factory\LazyAssetManager:
Collaboration diagram for Assetic\Factory\LazyAssetManager:Public Member Functions | |
| __construct (AssetFactory $factory, $loaders=array()) | |
| Constructor. More... | |
| setLoader ($alias, FormulaLoaderInterface $loader) | |
| Adds a loader to the asset manager. More... | |
| addResource (ResourceInterface $resource, $loader) | |
| Adds a resource to the asset manager. More... | |
| getResources () | |
| Returns an array of resources. More... | |
| hasFormula ($name) | |
| Checks for an asset formula. More... | |
| getFormula ($name) | |
| Returns an asset's formula. More... | |
| setFormula ($name, array $formula) | |
| Sets a formula on the asset manager. More... | |
| load () | |
| Loads formulae from resources. More... | |
| get ($name) | |
| Gets an asset by name. More... | |
| has ($name) | |
| Checks if the current asset manager has a certain asset. More... | |
| getNames () | |
| Returns an array of asset names. More... | |
| isDebug () | |
| getLastModified (AssetInterface $asset) | |
Public Member Functions inherited from Assetic\AssetManager | |
| 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 | |
| $factory | |
| $loaders | |
| $resources | |
| $formulae | |
| $loaded | |
| $loading | |
A lazy asset manager is a composition of a factory and many formula loaders.
Definition at line 24 of file LazyAssetManager.php.
| Assetic\Factory\LazyAssetManager::__construct | ( | AssetFactory | $factory, |
$loaders = array() |
|||
| ) |
Constructor.
| AssetFactory | $factory | The asset factory |
| array | $loaders | An array of loaders indexed by alias |
Definition at line 39 of file LazyAssetManager.php.
References Assetic\Factory\LazyAssetManager\$factory, $loader, Assetic\Factory\LazyAssetManager\$loaders, and Assetic\Factory\LazyAssetManager\setLoader().
Here is the call graph for this function:| Assetic\Factory\LazyAssetManager::addResource | ( | ResourceInterface | $resource, |
| $loader | |||
| ) |
Adds a resource to the asset manager.
| ResourceInterface | $resource | A resource |
| string | $loader | The loader alias for this resource |
Definition at line 71 of file LazyAssetManager.php.
References $loader.
| Assetic\Factory\LazyAssetManager::get | ( | $name | ) |
Gets an asset by name.
| string | $name | The asset name |
InvalidArgumentException If there is no asset by that name
Reimplemented from Assetic\AssetManager.
Definition at line 168 of file LazyAssetManager.php.
References $options, Assetic\Cache\get(), and Assetic\Factory\LazyAssetManager\load().
Here is the call graph for this function:| Assetic\Factory\LazyAssetManager::getFormula | ( | $name | ) |
Returns an asset's formula.
| string | $name | An asset name |
InvalidArgumentException If there is no formula by that name
Definition at line 117 of file LazyAssetManager.php.
References Assetic\Factory\LazyAssetManager\load(), and sprintf.
Here is the call graph for this function:| Assetic\Factory\LazyAssetManager::getLastModified | ( | AssetInterface | $asset | ) |
Definition at line 206 of file LazyAssetManager.php.
| Assetic\Factory\LazyAssetManager::getNames | ( | ) |
Returns an array of asset names.
Reimplemented from Assetic\AssetManager.
Definition at line 192 of file LazyAssetManager.php.
References Assetic\Factory\LazyAssetManager\load().
Here is the call graph for this function:| Assetic\Factory\LazyAssetManager::getResources | ( | ) |
Returns an array of resources.
Definition at line 82 of file LazyAssetManager.php.
References $r, and Assetic\Factory\LazyAssetManager\$resources.
| Assetic\Factory\LazyAssetManager::has | ( | $name | ) |
Checks if the current asset manager has a certain asset.
| string | $name | an asset name |
Reimplemented from Assetic\AssetManager.
Definition at line 183 of file LazyAssetManager.php.
References Assetic\Factory\LazyAssetManager\load().
Here is the call graph for this function:| Assetic\Factory\LazyAssetManager::hasFormula | ( | $name | ) |
Checks for an asset formula.
| string | $name | An asset name |
Definition at line 99 of file LazyAssetManager.php.
References Assetic\Factory\LazyAssetManager\load().
Here is the call graph for this function:| Assetic\Factory\LazyAssetManager::isDebug | ( | ) |
Definition at line 201 of file LazyAssetManager.php.
| Assetic\Factory\LazyAssetManager::load | ( | ) |
Loads formulae from resources.
LogicException If a resource has been added to an invalid loader
Definition at line 146 of file LazyAssetManager.php.
References $loader, Assetic\Factory\LazyAssetManager\$resources, and Assetic\Factory\LazyAssetManager\load().
Referenced by Assetic\Factory\LazyAssetManager\get(), Assetic\Factory\LazyAssetManager\getFormula(), Assetic\Factory\LazyAssetManager\getNames(), Assetic\Factory\LazyAssetManager\has(), Assetic\Factory\LazyAssetManager\hasFormula(), and Assetic\Factory\LazyAssetManager\load().
Here is the call graph for this function:
Here is the caller graph for this function:| Assetic\Factory\LazyAssetManager::setFormula | ( | $name, | |
| array | $formula | ||
| ) |
Sets a formula on the asset manager.
| string | $name | An asset name |
| array | $formula | A formula |
Definition at line 136 of file LazyAssetManager.php.
| Assetic\Factory\LazyAssetManager::setLoader | ( | $alias, | |
| FormulaLoaderInterface | $loader | ||
| ) |
Adds a loader to the asset manager.
| string | $alias | An alias for the loader |
| FormulaLoaderInterface | $loader | A loader |
Definition at line 59 of file LazyAssetManager.php.
References $loader.
Referenced by Assetic\Factory\LazyAssetManager\__construct().
Here is the caller graph for this function:
|
private |
Definition at line 26 of file LazyAssetManager.php.
Referenced by Assetic\Factory\LazyAssetManager\__construct().
|
private |
Definition at line 29 of file LazyAssetManager.php.
|
private |
Definition at line 30 of file LazyAssetManager.php.
|
private |
Definition at line 27 of file LazyAssetManager.php.
Referenced by Assetic\Factory\LazyAssetManager\__construct().
|
private |
Definition at line 31 of file LazyAssetManager.php.
|
private |
Definition at line 28 of file LazyAssetManager.php.
Referenced by Assetic\Factory\LazyAssetManager\getResources(), and Assetic\Factory\LazyAssetManager\load().