Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__construct (EvolvableLinkProviderInterface $linkProvider=null) | |
getLinkProvider () | |
setLinkProvider (EvolvableLinkProviderInterface $linkProvider) | |
preload (string $uri, array $attributes=[]) | |
dnsPrefetch (string $uri, array $attributes=[]) | |
preconnect (string $uri, array $attributes=[]) | |
prefetch (string $uri, array $attributes=[]) | |
prerender (string $uri, array $attributes=[]) | |
Attributs protégés | |
$linkProvider | |
Fonctions membres privées | |
link (string $uri, string $rel, array $attributes=[]) | |
Joomla! Preload Manager
__construct | ( | EvolvableLinkProviderInterface | $linkProvider = null | ) |
PreloadManager constructor
EvolvableLinkProviderInterface | $linkProvider | The link provider |
dnsPrefetch | ( | string | $uri, |
array | $attributes = [] |
||
) |
Resolves a resource origin as early as possible.
string | $uri | A public path |
array | $attributes | The attributes of this link (e.g. "array('as' => true)", "array('pr' => 0.5)") |
Implémente PreloadManagerInterface.
Références $attributes, et $uri.
getLinkProvider | ( | ) |
Get the link provider
Implémente PreloadManagerInterface.
|
private |
Adds a "Link" HTTP header.
string | $uri | The relation URI |
string | $rel | The relation type (e.g. "preload", "prefetch", "prerender" or "dns-prefetch") |
array | $attributes | The attributes of this link (e.g. "array('as' => true)", "array('pr' => 0.5)") |
Références $attributes, $key, Document\$link, $rel, $uri, $value, et Fig\Link\withLink().
preconnect | ( | string | $uri, |
array | $attributes = [] |
||
) |
Initiates an early connection to a resource (DNS resolution, TCP handshake, TLS negotiation).
string | $uri | A public path |
array | $attributes | The attributes of this link (e.g. "array('as' => true)", "array('pr' => 0.5)") |
Implémente PreloadManagerInterface.
Références $attributes, et $uri.
prefetch | ( | string | $uri, |
array | $attributes = [] |
||
) |
Indicates to the client that it should prefetch this resource.
string | $uri | A public path |
array | $attributes | The attributes of this link (e.g. "array('as' => true)", "array('pr' => 0.5)") |
Implémente PreloadManagerInterface.
Références $attributes, et $uri.
preload | ( | string | $uri, |
array | $attributes = [] |
||
) |
Preloads a resource.
string | $uri | A public path |
array | $attributes | The attributes of this link (e.g. "array('as' => true)", "array('crossorigin' => 'use-credentials')") |
Implémente PreloadManagerInterface.
Références $attributes, et $uri.
prerender | ( | string | $uri, |
array | $attributes = [] |
||
) |
Indicates to the client that it should prerender this resource.
string | $uri | A public path |
array | $attributes | The attributes of this link (e.g. "array('as' => true)", "array('pr' => 0.5)") |
Implémente PreloadManagerInterface.
Références $attributes, et $uri.
setLinkProvider | ( | EvolvableLinkProviderInterface | $linkProvider | ) |
Set the link provider
EvolvableLinkProviderInterface | $linkProvider | The link provider |
Implémente PreloadManagerInterface.
Références $this.
|
protected |