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...
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) | |
has ($name) | |
getNames () | |
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, array, and Assetic\Factory\LazyAssetManager\setLoader().
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 | ) |
Definition at line 168 of file LazyAssetManager.php.
References $options, and Assetic\Factory\LazyAssetManager\load().
Assetic\Factory\LazyAssetManager::getFormula | ( | $name | ) |
Returns an asset's formula.
string | $name | An asset name |
Definition at line 117 of file LazyAssetManager.php.
References Assetic\Factory\LazyAssetManager\load().
Assetic\Factory\LazyAssetManager::getLastModified | ( | AssetInterface | $asset | ) |
Definition at line 206 of file LazyAssetManager.php.
Assetic\Factory\LazyAssetManager::getNames | ( | ) |
Definition at line 192 of file LazyAssetManager.php.
References Assetic\Factory\LazyAssetManager\load().
Assetic\Factory\LazyAssetManager::getResources | ( | ) |
Returns an array of resources.
Definition at line 82 of file LazyAssetManager.php.
References $r, Assetic\Factory\LazyAssetManager\$resources, and array.
Assetic\Factory\LazyAssetManager::has | ( | $name | ) |
Definition at line 183 of file LazyAssetManager.php.
References Assetic\Factory\LazyAssetManager\load().
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().
Assetic\Factory\LazyAssetManager::isDebug | ( | ) |
Definition at line 201 of file LazyAssetManager.php.
Assetic\Factory\LazyAssetManager::load | ( | ) |
Loads formulae from resources.
Definition at line 146 of file LazyAssetManager.php.
References $loader, and Assetic\Factory\LazyAssetManager\$resources.
Referenced by Assetic\Factory\LazyAssetManager\get(), Assetic\Factory\LazyAssetManager\getFormula(), Assetic\Factory\LazyAssetManager\getNames(), Assetic\Factory\LazyAssetManager\has(), and Assetic\Factory\LazyAssetManager\hasFormula().
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().
|
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().