Class: VRoute

Source Location: /libraries/vwp/ui/route.php

Class Overview [line 42]

VType
   |
   --VObject
      |
      --VRoute

Virtual Web Platform - SEF URL Routing

Author(s):

Version:

Copyright:

  • (c) Ralph Ritoch - All Rights Reserved

Variables

Constants

Methods


Inherited Variables

Inherited Constants

Inherited Methods

Class: VObject

VObject::__construct()
Class Constructor
VObject::bind()
Bind values to this object
VObject::delete()
Delete Object
VObject::get()
Get value
VObject::getAll()
Get all object values
VObject::getError()
Get error message
VObject::getErrors()
Get errors
VObject::getMethods()
Get object methods
VObject::getProperties()
Get object properties
VObject::save()
Save Object
VObject::set()
Set a value
VObject::setError()
Set error value
VObject::setProperties()
Set property values
VObject::setProperty()
Set property value
VObject::toString()
Convert object to string
VObject::__destruct()
Class Destructor
VObject::__get()
VObject::__isset()
VObject::__set()
VObject::__toString()
Return object as a string
VObject::__unset()


Class Details

Virtual Web Platform - SEF URL Routing

This file provides the URL Routing

Tags:

[ Top ]


Class Variables

static $_app_routers = array()

[line 70]

App Routers

Type: mixed

Overrides:

[ Top ]

static $_current_uri

[line 82]

Current URI

Type: mixed

Overrides:

[ Top ]

static $_vfile

[line 64]

File object

Tags:

  • var - File object

Type: object

Overrides:

[ Top ]

static $_widget_routers = array()

[line 76]

Widget Routers

Type: mixed

Overrides:

[ Top ]


Class Methods

static getCurrentURI

static void getCurrentURI( )

[line 385]

Tags:

  • access - public

Parameters:

[ Top ]

static getInstance

static VRoute &getInstance( [string $app = null], [string $widget = null])

[line 321]

Get router

Tags:

  • return - Router
  • access - public

Parameters:

  • string $app - Application ID
  • string $widget - Widget ID

[ Top ]

static setCurrentURI

static void setCurrentURI( $uri)

[line 389]

Tags:

  • access - public

Parameters:

  • $uri -

[ Top ]

static unmapUrl

static string unmapUrl( string $mappedUrl, array $vars)

[line 295]

Unmap URL

Tags:

  • return - Unmapped URL
  • access - public

Parameters:

  • string $mappedUrl -
  • array $vars -

[ Top ]

static _init

static void _init( )

[line 400]

Initialize Router

Tags:

  • access - public

Parameters:

[ Top ]

decode

array decode( &$segments, array $segments)

[line 220]

Decode Route

Tags:

  • return - Query
  • access - public

Parameters:

  • array $segments - Path segments (will be destructed)
  • &$segments -

[ Top ]

encode

string encode( &$uri, string $uri)

[line 97]

Encode route

Child routers should override this class taking an array of variables by refrence as an argument and returning an array of segments, removing any variables which no longer need to be in the query string.

Tags:

  • return - Uri
  • access - public

Parameters:

  • string $uri - URI (not destructed but must be in a variable)
  • &$uri -

[ Top ]


Class Constants


Documentation generated on Sun, 06 Mar 2011 02:22:18 -0600 by phpDocumentor 1.4.3