![]() |
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 AbstractUri:Fonctions membres publiques | |
| __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 protégées | |
| parse ($uri) | |
| cleanPath ($path) | |
Fonctions membres protégées statiques | |
| static | buildQuery (array $params) |
Attributs protégés | |
| $uri = null | |
| $scheme = null | |
| $host = null | |
| $port = null | |
| $user = null | |
| $pass = null | |
| $path = null | |
| $query = null | |
| $fragment = null | |
| $vars = array() | |
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 |
Uri Class
Abstract base for out uri classes.
This class should be considered an implementation detail. Typehint against UriInterface.
| __construct | ( | $uri = null | ) |
Constructor. You can pass a URI string to the constructor to initialise a specific URI.
| string | $uri | The optional URI string |
Références AbstractUri\$uri, et AbstractUri\parse().
| __toString | ( | ) |
Magic method to get the string representation of the URI object.
Implémente UriInterface.
Références AbstractUri\toString().
|
staticprotected |
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.
|
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 $i, $n, AbstractUri\$path, et elseif.
Référencé par Uri\setPath().
| getFragment | ( | ) |
Get the URI anchor string Everything after the "#".
Implémente UriInterface.
Références AbstractUri\$fragment.
| getHost | ( | ) |
Get URI host Returns the hostname/ip or null if no hostname/ip was specified.
Implémente UriInterface.
Références AbstractUri\$host.
| getPass | ( | ) |
Get URI password Returns the password, or null if no password was specified.
Implémente UriInterface.
Références AbstractUri\$pass.
| getPath | ( | ) |
Gets the URI path string.
Implémente UriInterface.
Références AbstractUri\$path.
| getPort | ( | ) |
Get URI port Returns the port number, or null if no port was specified.
Implémente UriInterface.
Références null.
| getQuery | ( | $toArray = false | ) |
Returns flat query string.
| boolean | $toArray | True to return the query as a key => value pair array. |
Implémente UriInterface.
Références AbstractUri\$query, et AbstractUri\$vars.
Référencé par AbstractUri\render().
| getScheme | ( | ) |
Get URI scheme (protocol) ie. http, https, ftp, etc...
Implémente UriInterface.
Références AbstractUri\$scheme.
Référencé par AbstractUri\isSsl().
| getUser | ( | ) |
Get URI username Returns the username, or null if no username was specified.
Implémente UriInterface.
Références AbstractUri\$user.
| getVar | ( | $name, | |
$default = null |
|||
| ) |
Returns a query variable by name.
| string | $name | Name of the query variable to get. |
| string | $default | Default value to return if the variable is not set. |
Implémente UriInterface.
| hasVar | ( | $name | ) |
Checks if variable exists.
| string | $name | Name of the query variable to check. |
Implémente UriInterface.
Références $name.
| isSsl | ( | ) |
Checks whether the current URI is using HTTPS.
Implémente UriInterface.
Références AbstractUri\getScheme(), et true.
|
protected |
Parse a given URI and populate the class fields.
| string | $uri | The URI string to parse. |
Références $parts, AbstractUri\$uri, null, et UriHelper\parse_url().
Référencé par AbstractUri\__construct().
| render | ( | $parts = self::ALL | ) |
Returns full uri string.
| integer | $parts | A bitmask specifying the parts to render. |
Références $parts, AbstractUri\$query, AbstractUri\$uri, et AbstractUri\getQuery().
Référencé par AbstractUri\toString().
| toString | ( | array | $parts = array('scheme', 'user', 'pass', 'host', 'port', 'path', 'query', 'fragment') | ) |
Returns full uri string.
| array | $parts | An array of strings specifying the parts to render. |
Implémente UriInterface.
Références $parts, et AbstractUri\render().
Référencé par AbstractUri\__toString().
|
protected |
Référencé par AbstractUri\getFragment().
|
protected |
Référencé par AbstractUri\getHost(), Uri\isInternal(), et Uri\setHost().
|
protected |
Référencé par AbstractUri\getPass(), et Uri\setPass().
|
protected |
Référencé par Uri\_cleanPath(), AbstractUri\cleanPath(), AbstractUri\getPath(), Uri\root(), et Uri\setPath().
|
protected |
Référencé par Uri\setPort().
|
protected |
Référencé par AbstractUri\getQuery(), AbstractUri\render(), et Uri\setQuery().
|
protected |
Référencé par AbstractUri\getScheme(), et Uri\setScheme().
|
protected |
|
protected |
Référencé par AbstractUri\getUser(), et Uri\setUser().
|
protected |
Référencé par AbstractUri\getQuery().