Class uri

Description

Class contains method for getting info about the uri string

Located in /lib/uri.php (line 17)


	
			
Variable Summary
static array $fragments
static $info
Method Summary
static string getControllerFrag (array $base_fragments)
static array getControllerPathAry (array $fragments)
static string getControllerPathStr (array $base_fragments)
static string getModuleBase (array $fragments)
static string getModuleBaseName (array $fragments)
static string getModuleFrag (array $base_fragments)
static string getModuleName (array $base_fragments)
static array getRequestUriAry ()
string|false fragment (string $key)
array getAllFragments ()
array getInfo ()
int numFragments ()
Variables
static array $fragments = array() (line 25)

fragements in a uri string

  • var: fragments
  • access: public
static $info = null (line 44)

array for holding info about the uri string

  • var: for holding info
  • access: public
Methods
static getControllerFrag (line 173)

method for getting the controllers fragement

  • return: last fragment of base_fragments
  • access: public
static string getControllerFrag (array $base_fragments)
  • array $base_fragments: the base fragements
static getControllerPathAry (line 121)

Method for getting fragments that makes up the controller We will only use char values, if an int is set we break the loop This is how we recognice a controller.

It is the part of the url string before any numeric values!

  • return: base fragments that makes up the controller.
  • todo: a little weird that we tell what is a controller with an int!
  • access: public
static array getControllerPathAry (array $fragments)
  • array $fragments: fragements to examine
static getControllerPathStr (line 199)

method for getting controllers path string

  • return: base_str controller as a path string
  • access: public
static string getControllerPathStr (array $base_fragments)
  • array $base_fragments: base_fragments
static getInstance (line 54)

method for returning an URI instance

  • return: instance
  • access: public
static object uri getInstance ()
static getModuleBase (line 142)

method for getting the base module if any

  • return: path to top level module.
  • access: public
static string getModuleBase (array $fragments)
  • array $fragments: fragments from which we find the base module
static getModuleBaseName (line 155)

method for getting the base module if any

  • return: path to top level module.
  • access: public
static string getModuleBaseName (array $fragments)
  • array $fragments: fragments from which we find the base module
static getModuleFrag (line 185)

method for getting the module fragement

  • return: last fragment of base_fragments
  • access: public
static string getModuleFrag (array $base_fragments)
  • array $base_fragments: base_fragments fragments that makes up controller
static getModuleName (line 218)

method for getting controllers path string

  • return: base_str controller as a path string
  • access: public
static string getModuleName (array $base_fragments)
  • array $base_fragments: base_fragments
static getRequestUriAry (line 93)

method for getting the request uri

  • return: all fragments in uri as an array
  • access: public
static array getRequestUriAry ()
fragment (line 235)

method for getting a exact uri fragment

  • return: return string or false if no such key
  • access: public
string|false fragment (string $key)
  • string $key: The uri key
getAllFragments (line 261)

method for getting all fragments as array

  • return: of fragements
  • access: public
array getAllFragments ()
getInfo (line 273)

method for getting all info about an URI instance

  • return: getting all info collected in constructor
  • access: public
array getInfo ()
numFragments (line 250)

method for getting number of fragements

  • return: number of fragements
  • access: public
int numFragments ()

Documentation generated on Fri, 17 Dec 2010 17:56:37 +0100 by phpDocumentor 1.4.3