Path

ez components / documentation / api reference / 2008.2.3 / mvctools


eZ Components 2008.2.3

MvcTools: ezcMvcRoutingInformation

[ Tutorial ] [ Class tree ] [ Element index ] [ ChangeLog ] [ Credits ]

Class: ezcMvcRoutingInformation

This struct contains information from the router that belongs to the matched route. [source]

Parents

ezcBaseStruct
   |
   --ezcMvcRoutingInformation

Member Variables

public string $action
Contains the action that the controller should run.
public string $controllerClass
Contains the class name of the controller that should be instantiated for this route.
public string $matchedRoute
Contains the pattern of the matched route, to be used for view matching and filter chain selection.

Method Summary

public ezcMvcRoutingInformation __construct( [$matchedRoute = ''], [$controllerClass = ''], [$action = ''] )
Constructs a new ezcMvcRoutingInformation.
public static ezcMvcRoutingInformation __set_state( $array )
Returns a new instance of this class with the data specified by $array.

Methods

__construct

ezcMvcRoutingInformation __construct( [string $matchedRoute = ''], [string $controllerClass = ''], [string $action = ''] )
Constructs a new ezcMvcRoutingInformation.

Parameters

Name Type Description
$matchedRoute string  
$controllerClass string  
$action string  

__set_state

ezcMvcRoutingInformation __set_state( $array )
Returns a new instance of this class with the data specified by $array.
$array contains all the data members of this class in the form: array('member_name'=>value).
__set_state makes this class exportable with var_export. var_export() generates code, that calls this method when it is parsed with PHP.

Parameters

Name Type Description
$array array(string=>mixed)  

Last updated: Mon, 11 May 2009