Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
useAsset (string $type, string $name) | |
disableAsset (string $type, string $name) | |
isAssetActive (string $type, string $name) | |
getAssets (string $type, bool $sort=false) | |
Web Asset Manager Interface
disableAsset | ( | string | $type, |
string | $name | ||
) |
Deactivate an asset item, so it will not be attached to a Document
string | $type | Asset type, script or style etc |
string | $name | The asset name |
UnknownAssetException | When Asset cannot be found |
InvalidActionException | When the Manager already attached to a Document |
Implémenté dans WebAssetManager.
getAssets | ( | string | $type, |
bool | $sort = false |
||
) |
Get all assets that was enabled for given type
string | $type | Asset type, script or style etc |
bool | $sort | Whether need to sort the assets to follow the dependency Graph |
UnknownAssetException | When Asset cannot be found |
UnsatisfiedDependencyException | When Dependency cannot be found |
Implémenté dans WebAssetManager.
isAssetActive | ( | string | $type, |
string | $name | ||
) |
Check whether the asset are enabled
string | $type | Asset type, script or style etc |
string | $name | The asset name |
UnknownAssetException | When Asset cannot be found |
Implémenté dans WebAssetManager.
useAsset | ( | string | $type, |
string | $name | ||
) |
Enable an asset item to be attached to a Document
string | $type | Asset type, script or style etc |
string | $name | The asset name |
UnknownAssetException | When Asset cannot be found |
InvalidActionException | When the Manager already attached to a Document |
Implémenté dans WebAssetManager.