Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
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 ($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 () | |
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) |
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 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 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.
|
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, $uri, Factory\getContainer(), JPATH_ADMINISTRATOR, JPATH_API, et JPATH_BASE.
Référencé par InstallationApplication\__construct(), OpensearchDocument\__construct(), ApiApplication\__construct(), AdministratorApplication\__construct(), HtmlView\__construct(), HtmlDocument\_fetchTemplate(), PopupButton\_getCommand(), DocumentRenderer\_relToAbs(), ContactController\_sendEmail(), RegistrationModel\activate(), DisplayController\cancel(), ConfigController\cancel(), TemplatesController\cancel(), ModulesController\cancel(), UserController\cancel(), ModuleController\cancel(), ComponentController\cancel(), Joomlaupdate\getCoreUpdateNotification(), RandomImageHelper\getFolder(), ArticleController\getReturnPage(), ContactController\getReturnPage(), ApiRouter\getRoutePath(), UserHelper\getShortHashedUserAgent(), Authentication\getSiteIcon(), AdministratorApplication\login(), SiteApplication\login(), CoreAssetItem\onAttachCallback(), Joomla\Plugin\Editors\TinyMCE\PluginTraits\onDisplay(), SiteRouter\parseInit(), SiteApplication\route(), CMSApplication\route(), UserController\save(), ItemModel\save(), et Email\sendCode().
|
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.
Référencé par ItemController\setType().
|
static |
Returns the URL for the request, minus the query.
Références $uri.
Référencé par SiteApplication\dispatch().
|
static |
Returns the global Uri object, only creating it if it doesn't already exist.
string | $uri | The URI to parse. [optional: if null uses script URI] |
Référencé par OpensearchDocument\__construct(), SiteApplication\authorise(), CssMenu\check(), Icon\create(), OpensearchView\display(), DisplayController\display(), HtmlView\display(), JsonapiView\displayList(), Icon\edit(), UrlFilter\filter(), RouteHelper\getAdvancedRoute(), Credentials\getAvatar(), Authentication\getAvatar(), Cache\getCacheKey(), HtmlView\getFields(), FinderHelper\getGetFields(), LanguagesHelper\getList(), LoginHelper\getReturnUri(), LoginHelper\getReturnUrl(), ApiRouter\getRoutePath(), RouteHelper\getSearchRoute(), Authentication\getWebauthnServer(), Cache\isExcluded(), Route\link(), CssMenu\load(), WebApplication\loadSystemUris(), Joomla\Plugin\System\Webauthn\PluginTraits\mustDisplayButton(), PlgSystemLanguageFilter\onAfterDispatch(), ApiRouter\parseApiRoute(), ConsoleApplication\populateHttpHost(), ToolbarHelper\preferences(), HtmlView\prepareDocument(), RssRenderer\render(), AtomRenderer\render(), SiteApplication\render(), AdministratorApplication\route(), SiteApplication\route(), CMSApplication\route(), ApplicationModel\save(), ItemModel\save(), Query\toUri(), et Yubikey\validateYubikeyOtp().
|
static |
Checks if the supplied URL is internal
string | $url | The URL to check. |
Références $base, $uri, et $url.
Référencé par UserController\cancel(), ModuleController\cancel(), ComponentController\cancel(), FormController\cancel(), BaseController\checkToken(), ArticleController\getReturnPage(), ContactController\getReturnPage(), LoginModel\loadFormData(), UserController\login(), DisplayController\login(), DisplayController\logout(), UserController\logout(), LoginModel\populateState(), UserController\save(), FormController\save(), et ArticleController\vote().
parse | ( | $uri | ) |
Parse a given URI and populate the class fields.
string | $uri | The URI string to parse. |
Références $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 $path, $root, et $uri.
Référencé par InstallationApplication\__construct(), ApiApplication\__construct(), AdministratorApplication\__construct(), HtmlView\addToolbar(), Tag\ajaxfield(), AdministratorRouter\build(), SiteRouter\buildBase(), ContentSerializer\category(), ContactSerializer\category(), NewsfeedSerializer\category(), Email\cloak(), MailHelper\convertRelativeToAbsoluteUrls(), HTMLHelper\convertToRelativePath(), ContentSerializer\createdBy(), ContactSerializer\createdBy(), NewsfeedSerializer\createdBy(), UrlFilter\filter(), LanguageStringsCollector\getAssets(), InfoCollector\getAssets(), LanguageErrorsCollector\getAssets(), LanguageFilesCollector\getAssets(), QueryCollector\getAssets(), TemplateModel\getFont(), TemplateModel\getImage(), Authentication\getKnownAuthenticators(), LocalAdapter\getUrl(), Users\image(), Joomla\Plugin\Editors\TinyMCE\PluginTraits\includeRelativeFiles(), ContentSerializer\languageAssociations(), ContactSerializer\languageAssociations(), NewsfeedSerializer\languageAssociations(), UserController\logout(), UserController\menulogout(), ContentSerializer\modifiedBy(), ContactSerializer\modifiedBy(), NewsfeedSerializer\modifiedBy(), CoreAssetItem\onAttachCallback(), Joomla\Plugin\Editors\TinyMCE\PluginTraits\onDisplay(), RegistrationModel\register(), ContentHelper\resolve(), Joomla\Plugin\Editors\TinyMCE\PluginTraits\resolveFileUrl(), ApplicationModel\save(), Templates\thumb(), Templates\thumbModal(), et ContactSerializer\userId().
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |