eZPublishCommunityProject  2013.9
eZ\Publish\Core\REST\Common\RequestParser\Prefixed Class Reference
+ Inheritance diagram for eZ\Publish\Core\REST\Common\RequestParser\Prefixed:
+ Collaboration diagram for eZ\Publish\Core\REST\Common\RequestParser\Prefixed:

Public Member Functions

 __construct ($prefix= '', array $map=array())
 
 generate ($type, array $values=array())
 Generate a URL of the given type from the specified values. More...
 
 parse ($type, $url)
 
- Public Member Functions inherited from eZ\Publish\Core\REST\Common\RequestParser\Pattern
 __construct (array $map=array())
 Construct from optional initial map. More...
 
 addPattern ($type, $pattern)
 Adds a pattern for a type. More...
 
 generate ($type, array $values=array())
 Generate a URL of the given type from the specified values. More...
 
 parse ($url)
 Parse URL and return the IDs contained in the URL. More...
 
 parseHref ($href, $attribute)
 Tries to match $href as a route, and returns the value of $attribute from the result. More...
 

Protected Attributes

 $prefix
 
- Protected Attributes inherited from eZ\Publish\Core\REST\Common\RequestParser\eZPublish
 $map
 
- Protected Attributes inherited from eZ\Publish\Core\REST\Common\RequestParser\Pattern
 $compileCache = array()
 
 $map = array()
 

Additional Inherited Members

- Public Attributes inherited from eZ\Publish\Core\REST\Common\RequestParser\Pattern
const SLASHES_VARIABLE_REGEX = '\{(?:\&\s*)([A-Za-z-_]+)\}'
 Pattern regular sub-expression that might contain slashes. More...
 
const STANDARD_VARIABLE_REGEX = '\{([A-Za-z-_]+)\}'
 Pattern regular sub-expression. More...
 
- Protected Member Functions inherited from eZ\Publish\Core\REST\Common\RequestParser\Pattern
 compile ($pattern)
 Compiles a given pattern to a PCRE regular expression. More...
 

Constructor & Destructor Documentation

eZ\Publish\Core\REST\Common\RequestParser\Prefixed::__construct (   $prefix = '',
array  $map = array() 
)

Member Function Documentation

eZ\Publish\Core\REST\Common\RequestParser\Prefixed::generate (   $type,
array  $values = array() 
)

Generate a URL of the given type from the specified values.

Parameters
string$type
array$values
Returns
string

Implements eZ\Publish\Core\REST\Common\RequestParser.

eZ\Publish\Core\REST\Common\RequestParser\Prefixed::parse (   $type,
  $url 
)

Member Data Documentation

eZ\Publish\Core\REST\Common\RequestParser\Prefixed::$prefix
protected

The documentation for this class was generated from the following file: