Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
getName () | |
getVersion () | |
getDependencies () | |
getUri ($resolvePath=true) | |
getOption (string $key, $default=null) | |
setOption (string $key, $value=null) | |
getOptions () | |
getAttribute (string $key, $default=null) | |
setAttribute (string $key, $value=null) | |
getAttributes () | |
Web Asset Item interface
Asset Item are "read only" object, all properties must be set through class constructor. Only properties allowed to be edited is an attributes and an options. Changing an uri or a dependencies are not allowed, prefer to create a new asset instance.
getAttribute | ( | string | $key, |
$default = null |
|||
) |
Get the attribute
string | $key | An attributes key |
string | $default | A default value |
Implémenté dans WebAssetItem.
getAttributes | ( | ) |
getDependencies | ( | ) |
getName | ( | ) |
Return Asset name
Implémenté dans WebAssetItem.
Référencé par WebAssetManager\__call(), et WebAssetRegistry\add().
getOption | ( | string | $key, |
$default = null |
|||
) |
Get the option
string | $key | An option key |
string | $default | A default value |
Implémenté dans WebAssetItem.
getOptions | ( | ) |
getUri | ( | $resolvePath = true | ) |
Get the URI of the asset
boolean | $resolvePath | Whether need to search for a real paths |
Implémenté dans WebAssetItem.
getVersion | ( | ) |
setAttribute | ( | string | $key, |
$value = null |
|||
) |
Set the attribute
string | $key | An attribute key |
string | $value | An attribute value |
Implémenté dans WebAssetItem.
setOption | ( | string | $key, |
$value = null |
|||
) |
Set the option
string | $key | An option key |
string | $value | An option value |
Implémenté dans WebAssetItem.