Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__construct (array $links=[]) | |
getLinks () | |
getLinksByRel ($rel) | |
withLink (LinkInterface $link) | |
withoutLink (LinkInterface $link) | |
Attributs privés | |
$links = [] | |
__construct | ( | array | $links = [] | ) |
LinkInterface[] | $links |
Références $link, GenericLinkProvider\$links, et $this.
getLinks | ( | ) |
{Returns an iterable of LinkInterface objects.The iterable may be an array or any PHP object. If no links are available, an empty array or MUST be returned.
Implémente LinkProviderInterface.
getLinksByRel | ( | $rel | ) |
{Returns an iterable of LinkInterface objects that have a specific relationship.The iterable may be an array or any PHP object. If no links with that relationship are available, an empty array or MUST be returned.
Implémente LinkProviderInterface.
Références $link, GenericLinkProvider\$links, et $rel.
withLink | ( | LinkInterface | $link | ) |
{Returns an instance with the specified link included.If the specified link is already present, this method MUST return normally without errors. The link is present if $link is === identical to a link object already in the collection.
LinkInterface | $link | A link object that should be included in this collection. |
Implémente EvolvableLinkProviderInterface.
withoutLink | ( | LinkInterface | $link | ) |
{Returns an instance with the specifed link removed.If the specified link is not present, this method MUST return normally without errors. The link is present if $link is === identical to a link object already in the collection.
LinkInterface | $link | The link to remove. |
Implémente EvolvableLinkProviderInterface.
|
private |
Référencé par GenericLinkProvider\__construct(), et GenericLinkProvider\getLinksByRel().