Joomla CMS
3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
|
Fonctions membres publiques | |
__construct ($options=array()) | |
parse (&$uri) | |
build ($url) | |
getMode () | |
setMode ($mode) | |
setVar ($key, $value, $create=true) | |
setVars ($vars=array(), $merge=true) | |
getVar ($key) | |
getVars () | |
attachBuildRule ($callback, $stage=self::PROCESS_DURING) | |
attachParseRule ($callback, $stage=self::PROCESS_DURING) | |
Fonctions membres publiques statiques | |
static | getInstance ($client, $options=array()) |
Champs de données | |
const | PROCESS_BEFORE = 'preprocess' |
const | PROCESS_DURING = '' |
const | PROCESS_AFTER = 'postprocess' |
Fonctions membres protégées | |
_parseRawRoute (&$uri) | |
parseRawRoute (&$uri) | |
_parseSefRoute (&$uri) | |
parseSefRoute (&$uri) | |
_buildRawRoute (&$uri) | |
buildRawRoute (&$uri) | |
_buildSefRoute (&$uri) | |
buildSefRoute (&$uri) | |
_processParseRules (&$uri) | |
processParseRules (&$uri, $stage=self::PROCESS_DURING) | |
_processBuildRules (&$uri) | |
processBuildRules (&$uri, $stage=self::PROCESS_DURING) | |
_createUri ($url) | |
createUri ($url) | |
_encodeSegments ($segments) | |
encodeSegments ($segments) | |
_decodeSegments ($segments) | |
decodeSegments ($segments) | |
Attributs protégés | |
$mode = null | |
$_mode = null | |
$vars = array() | |
$_vars = array() | |
$rules | |
$_rules | |
$cache = array() | |
Attributs protégés statiques | |
static | $instances = array() |
Class to create and parse routes
__construct | ( | $options = array() | ) |
Class constructor
array | $options | Array of options |
Références $options, et JROUTER_MODE_RAW.
|
protected |
|
protected |
|
protected |
Create a uri based on a full or partial URL string
string | $url | The URI |
Références $url.
|
protected |
Decode route segments
array | $segments | An array of route segments |
|
protected |
Encode route segments
array | $segments | An array of route segments |
|
protected |
|
protected |
|
protected |
Process the build uri query data based on custom defined rules
\JUri | &$uri | The URI |
Références $uri.
|
protected |
Process the parsed router variables based on custom defined rules
\JUri | &$uri | The URI to parse |
Références $uri.
attachBuildRule | ( | $callback, | |
$stage = self::PROCESS_DURING |
|||
) |
Attach a build rule
callable | $callback | The function to be called |
string | $stage | The stage of the build process that this should be added to. Possible values: 'preprocess', '' for the main build process, 'postprocess' |
attachParseRule | ( | $callback, | |
$stage = self::PROCESS_DURING |
|||
) |
Attach a parse rule
callable | $callback | The function to be called. |
string | $stage | The stage of the parse process that this should be added to. Possible values: 'preprocess', '' for the main parse process, 'postprocess' |
build | ( | $url | ) |
Function to convert an internal URI to a route
string | $url | The internal URL or an associative array |
Références $key, $uri, $url, JROUTER_MODE_RAW, et JROUTER_MODE_SEF.
|
protected |
|
protected |
Function to build a sef route
\JUri | &$uri | The uri |
|
protected |
|
protected |
|
protected |
|
static |
Returns the global Router object, only creating it if it doesn't already exist.
string | $client | The name of the client |
array | $options | An associative array of options |
Références $client, $info, $options, $path, ApplicationHelper\getClientInfo(), et JLoader\register().
getMode | ( | ) |
getVar | ( | $key | ) |
getVars | ( | ) |
Get the router variable array
parse | ( | & | $uri | ) |
Function to convert a route to an internal URI
\JUri | &$uri | The uri. |
Références $uri, ComponentHelper\getParams(), JROUTER_MODE_RAW, et JROUTER_MODE_SEF.
|
protected |
Function to convert a raw route to an internal URI
\JUri | &$uri | The raw route |
|
protected |
Function to convert a sef route to an internal URI
\JUri | &$uri | The sef URI |
|
protected |
Process the build uri query data based on custom defined rules
\JUri | &$uri | The URI |
string | $stage | The stage that should be processed. Possible values: 'preprocess', 'postprocess' and '' for the main build stage |
Références $uri.
|
protected |
Process the parsed router variables based on custom defined rules
\JUri | &$uri | The URI to parse |
string | $stage | The stage that should be processed. Possible values: 'preprocess', 'postprocess' and '' for the main parse stage |
Références $uri.
setMode | ( | $mode | ) |
setVar | ( | $key, | |
$value, | |||
$create = true |
|||
) |
setVars | ( | $vars = array() , |
|
$merge = true |
|||
) |
Set the router variable array
array | $vars | An associative array with variables |
boolean | $merge | If True, the array will be merged instead of overwritten |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
const PROCESS_AFTER = 'postprocess' |
const PROCESS_BEFORE = 'preprocess' |
const PROCESS_DURING = '' |