![]() |
Joomla CMS
3.9.25 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.9.25 et du framework Joomla Platform intégré
|
Graphe d'héritage de Uri:Fonctions membres publiques | |
| setPath ($path) | |
| parse ($uri) | |
Fonctions membres publiques hérités de Uri | |
| setVar ($name, $value) | |
| delVar ($name) | |
| setQuery ($query) | |
| setScheme ($scheme) | |
| setUser ($user) | |
| setPass ($pass) | |
| setHost ($host) | |
| setPort ($port) | |
| setPath ($path) | |
| setFragment ($anchor) | |
Fonctions membres publiques hérités de AbstractUri | |
| __construct ($uri=null) | |
| __toString () | |
| toString (array $parts=array('scheme', 'user', 'pass', 'host', 'port', 'path', 'query', 'fragment')) | |
| render ($parts=self::ALL) | |
| hasVar ($name) | |
| getVar ($name, $default=null) | |
| getQuery ($toArray=false) | |
| getScheme () | |
| getUser () | |
| getPass () | |
| getHost () | |
| getPort () | |
| getPath () | |
| getFragment () | |
| isSsl () | |
Fonctions membres publiques statiques | |
| static | getInstance ($uri='SERVER') |
| static | base ($pathonly=false) |
| static | root ($pathonly=false, $path=null) |
| static | current () |
| static | reset () |
| static | isInternal ($url) |
| static | buildQuery (array $params) |
Fonctions membres protégées | |
| _cleanPath ($path) | |
Fonctions membres protégées hérités de AbstractUri | |
| parse ($uri) | |
| cleanPath ($path) | |
Attributs protégés statiques | |
| static | $instances = array() |
| static | $base = array() |
| static | $root = array() |
| static | $current |
Membres hérités additionnels | |
Champs de données hérités de UriInterface | |
| const | SCHEME = 1 |
| const | USER = 2 |
| const | PASS = 4 |
| const | HOST = 8 |
| const | PORT = 16 |
| const | PATH = 32 |
| const | QUERY = 64 |
| const | FRAGMENT = 128 |
| const | ALL = 255 |
Fonctions membres protégées statiques hérités de AbstractUri | |
| static | buildQuery (array $params) |
Attributs protégés hérités de AbstractUri | |
| $uri = null | |
| $scheme = null | |
| $host = null | |
| $port = null | |
| $user = null | |
| $pass = null | |
| $path = null | |
| $query = null | |
| $fragment = null | |
| $vars = array() | |
JUri Class
This class serves two purposes. First it parses a URI and provides a common interface for the Joomla Platform to access and manipulate a URI. Second it obtains the URI of the current executing script from the server regardless of server.
|
protected |
Resolves //, ../ and ./ from a path and returns the result. Eg:
/foo/bar/../boo.php => /foo/boo.php /foo/bar/../../boo.php => /boo.php /foo/bar/.././/boo.php => /foo/boo.php
| string | $path | The URI path to clean. |
Références AbstractUri\$path.
Référencé par Uri\setPath().
|
static |
Returns the base URI for the request.
| boolean | $pathonly | If false, prepend the scheme, host and port information. Default is false. |
Références $base, $config, AbstractUri\$uri, JPATH_ADMINISTRATOR, et JPATH_BASE.
Référencé par OpensearchDocument\__construct(), HtmlDocument\_fetchTemplate(), HtmlDocument\_loadTemplate(), DocumentRenderer\_relToAbs(), HTMLHelper\includeRelativeFiles(), et ErrorDocument\render().
|
static |
Build a query from an array (reverse of the PHP parse_str()).
| array | $params | The array of key => value pairs to return as a query string. |
Références $params.
|
static |
Returns the URL for the request, minus the query.
Références $current, et AbstractUri\$uri.
|
static |
Returns the global JUri object, only creating it if it doesn't already exist.
| string | $uri | The URI to parse. [optional: if null uses script URI] |
Références AbstractUri\$uri, et elseif.
Référencé par OpensearchDocument\__construct(), Factory\getUri(), Route\link(), ToolbarHelper\preferences(), RssRenderer\render(), et AtomRenderer\render().
|
static |
Checks if the supplied URL is internal
| string | $url | The URL to check. |
Références Uri\$base, AbstractUri\$host, AbstractUri\$uri, et $url.
| parse | ( | $uri | ) |
Parse a given URI and populate the class fields.
| string | $uri | The URI string to parse. |
Références AbstractUri\$uri.
|
static |
Returns the root URI for the request.
| boolean | $pathonly | If false, prepend the scheme, host and port information. Default is false. |
| string | $path | The path |
Références AbstractUri\$path, $root, et AbstractUri\$uri.
Référencé par AdministratorRouter\build(), HTMLHelper\includeRelativeFiles(), et PlgUserJoomla\onUserAfterSave().
| setPath | ( | $path | ) |
Set the URI path string. Note we keep this method here so it uses the old _cleanPath function
| string | $path | The URI path string. |
Références AbstractUri\$path, et Uri\_cleanPath().
|
staticprotected |
Référencé par Uri\isInternal().
|
staticprotected |
|
staticprotected |
|
staticprotected |