\midcom_core_service_implementation_urlparsertopic

URL name parser that uses the topic structure

Summary

Methods
Properties
Constants
tokenize()
parse()
get_current_object()
get_inherited_style()
get_object()
get_variable()
get_url()
get_objects()
$argv
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$argv_original
$current_object
$url
$objects
N/A

Properties

$argv

$argv : 

Type

$argv_original

$argv_original : 

Type

$current_object

$current_object : 

Type

$url

$url : 

Type

$objects

$objects : 

Type

Methods

tokenize()

tokenize(  $url) 

Tokenize URL path to an argument vector array

Parameters

$url

parse()

parse(  $argv) 

Set the URL path to be parsed

Parameters

$argv

get_current_object()

get_current_object() 

Return current object pointed to by the parse URL

get_inherited_style()

get_inherited_style() 

Returns inherited style (if any)

get_object()

get_object() 

Return next object in URL path

get_variable()

get_variable(string  $namespace) : array

Try to fetch a URL variable.

Try to decode an -- pair at the current URL position. Namespace must be a valid MidCOM Path, Key must match the RegEx [a-zA-Z0-9]* and value must not contain a "/".

On success it returns an associative array containing the key and value which hold that have been parsed. $this->argv[0] will be dropped.

On failure it returns false.

Parameters

string $namespace

The namespace for which to search a variable

Returns

array —

The key and value pair of the URL parameter, or false on failure.

get_url()

get_url() 

Return full URL that was given to the parser

get_objects()

get_objects() 

Return parsed objects