JRouter
Class to create and parse routes
Located in /joomla/application/router.php (line 32)
JObject (Subpackage Base)
![]()
JRouter (Subpackage Application)
integer
$_mode
= null (line 40)
The rewrite mode
array
$_rules
= array('build' => array(),'parse'=>array()) (line 56)
An array of rules
array
$_vars
= array() (line 48)
An array of variables
Inherited Variables
Inherited from JObject
JObject::$_errors
Class constructor
- $options
- JObject::__construct()
- Class constructor, overridden in descendant classes.
Attach a build rule
- callback $callback: The function to be called.
Attach a parse rule
- callback $callback: The function to be called.
Function to convert an internal URI to a route
- string $string: The internal URL
- $url
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();
- string $client: The name of the client
- array $options: An associative array of options
Get a router variable
- string $key: The name of the variable $return mixed Value of the variable
Set a router variable, creating it if it doesn't exist
- 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
Set the router variable array
- array $vars: An associative array with variables
- boolean $create: If True, the array will be merged instead of overwritten
- $merge
Create a uri based on a full or partial url string
- $url
Decode route segments
- array $segments: An array of route segments
Encode route segments
- array $segments: An array of route segments
Function to convert a raw route to an internal URI
- &$uri
Function to convert a sef route to an internal URI
- &$uri
Process the build uri query data based on custom defined rules
- &$uri
Process the parsed router variables based on custom defined rules
- &$uri
Inherited Methods
Inherited From JObject
JObject::JObject()
JObject::__construct()
JObject::get()
JObject::getError()
JObject::getErrors()
JObject::getProperties()
JObject::getPublicProperties()
JObject::set()
JObject::setError()
JObject::setProperties()
JObject::toString()
Documentation generated on Sat, 14 Nov 2009 11:18:33 +0000 by phpDocumentor 1.3.1




JRouter (Subpackage Application)