Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
withHref ($href) | |
withRel ($rel) | |
withoutRel ($rel) | |
withAttribute ($attribute, $value) | |
withoutAttribute ($attribute) | |
Fonctions membres publiques hérités de LinkInterface | |
getHref () | |
isTemplated () | |
getRels () | |
getAttributes () | |
An evolvable link value object.
withAttribute | ( | $attribute, | |
$value | |||
) |
Returns an instance with the specified attribute added.
If the specified attribute is already present, it will be overwritten with the new value.
string | $attribute | The attribute to include. |
string | $value | The value of the attribute to set. |
Implémenté dans Link.
withHref | ( | $href | ) |
Returns an instance with the specified href.
string | $href | The href value to include. It must be one of:
|
An implementing library SHOULD evaluate a passed object to a string immediately rather than waiting for it to be returned later.
Implémenté dans Link.
withoutAttribute | ( | $attribute | ) |
Returns an instance with the specified attribute excluded.
If the specified attribute is not present, this method MUST return normally without errors.
string | $attribute | The attribute to remove. |
Implémenté dans Link.
withoutRel | ( | $rel | ) |
Returns an instance with the specified relationship excluded.
If the specified rel is already not present, this method MUST return normally without errors.
string | $rel | The relationship value to exclude. |
Implémenté dans Link.
withRel | ( | $rel | ) |
Returns an instance with the specified relationship included.
If the specified rel is already present, this method MUST return normally without errors, but without adding the rel a second time.
string | $rel | The relationship value to add. |
Implémenté dans Link.