Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
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 ($parts=['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 () | |
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 hérités de AbstractUri | |
parse ($uri) | |
cleanPath ($path) | |
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 | |
$scheme | |
$host | |
$port | |
$user | |
$pass | |
$path | |
$query | |
$fragment | |
$vars = [] | |
Uri Class
This class parses a URI and provides a common interface for the Joomla Framework to access and manipulate a URI.
delVar | ( | $name | ) |
setFragment | ( | $anchor | ) |
setHost | ( | $host | ) |
Set the URI host
string | $host | The URI host. |
Références AbstractUri\$host, et $this.
setPass | ( | $pass | ) |
Set the URI password
string | $pass | The URI password. |
Références AbstractUri\$pass, et $this.
setPath | ( | $path | ) |
Set the URI path string
string | $path | The URI path string. |
Références AbstractUri\$path, $this, AbstractUri\cleanPath(), et path.
setPort | ( | $port | ) |
Set the URI port
integer | $port | The URI port number. |
Références AbstractUri\$port, et $this.
setQuery | ( | $query | ) |
Sets the query to a supplied string in format foo=bar&x=y
array | string | $query | The query string or array. |
Références AbstractUri\$query, et null.
setScheme | ( | $scheme | ) |
Set the URI scheme (protocol)
string | $scheme | The URI scheme. |
Références AbstractUri\$scheme, et $this.
setUser | ( | $user | ) |
Set the URI username
string | $user | The URI username. |
Références $this, et AbstractUri\$user.
setVar | ( | $name, | |
$value | |||
) |
Adds a query variable and value, replacing the value if it already exists and returning the old value
string | $name | Name of the query variable to set. |
string | $value | Value of the query variable. |