API Joomla 1.5.26
Documentation des API du CMS Joomla en version 1.5
|
JRouter::__construct | ( | $ | options = array() | ) |
JRouter::_buildRawRoute | ( | &$ | uri | ) |
JRouter::_buildSefRoute | ( | &$ | uri | ) |
& JRouter::_createURI | ( | $ | url | ) |
JRouter::_decodeSegments | ( | $ | segments | ) |
JRouter::_encodeSegments | ( | $ | segments | ) |
JRouter::_parseRawRoute | ( | &$ | uri | ) |
JRouter::_parseSefRoute | ( | &$ | uri | ) |
JRouter::_processBuildRules | ( | &$ | uri | ) |
Process the build uri query data based on custom defined rules
protected
Réimplémentée dans JRouterSite.
Références $uri.
JRouter::_processParseRules | ( | &$ | uri | ) |
Process the parsed router variables based on custom defined rules
protected
Réimplémentée dans JRouterSite.
Références $uri.
JRouter::attachBuildRule | ( | $ | callback | ) |
Attach a build rule
public
callback | $callback | The function to be called. |
JRouter::attachParseRule | ( | $ | callback | ) |
Attach a parse rule
public
callback | $callback | The function to be called. |
& JRouter::build | ( | $ | url | ) |
Function to convert an internal URI to a route
string | $string | The internal URL |
Réimplémentée dans JRouterAdministrator, et JRouterSite.
& JRouter::getInstance | ( | $ | client, |
$ | options = array() |
||
) |
Returns a reference to the global JRouter object, only creating it if it doesn't already exist.
This method must be invoked as:
$menu = &JRouter::getInstance();
public
string | $client | The name of the client |
array | $options | An associative array of options |
Références $classname, $client, $error, $path, JApplicationHelper::getClientInfo(), et JError::raiseError().
Référencé par JApplication::getRouter().
JRouter::getMode | ( | ) |
Get the router mode
public
JRouter::getVar | ( | $ | key | ) |
Get a router variable
public
string | $key | The name of the variable $return mixed Value of the variable |
JRouter::getVars | ( | ) |
Get the router variable array
public
JRouter::parse | ( | &$ | uri | ) |
Function to convert a route to an internal URI
public
Réimplémentée dans JRouterSite.
Références $uri.
JRouter::setMode | ( | $ | mode | ) |
Get the router mode
public
JRouter::setVar | ( | $ | key, |
$ | value, | ||
$ | create = true |
||
) |
Set a router variable, creating it if it doesn't exist
public
string | $key | The name of the variable |
mixed | $value | The value of the variable |
boolean | $create | If True, the variable will be created if it doesn't exist yet |
JRouter::setVars | ( | $ | vars = array() , |
$ | merge = true |
||
) |
Set the router variable array
public
array | $vars | An associative array with variables |
boolean | $create | If True, the array will be merged instead of overwritten |
JRouter::$_mode = null |
JRouter::$_rules |
array( 'build' => array(), 'parse' => array() )
JRouter::$_vars = array() |