eZPublishCommunityProject  2012.12
eZ\Publish\Core\REST\Common\UrlHandler\Prefixed Class Reference
+ Inheritance diagram for eZ\Publish\Core\REST\Common\UrlHandler\Prefixed:
+ Collaboration diagram for eZ\Publish\Core\REST\Common\UrlHandler\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)
 Parse URL and return the IDs contained in the URL. More...
 
- Public Member Functions inherited from eZ\Publish\Core\REST\Common\UrlHandler\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 ($type, $url)
 Parse URL and return the IDs contained in the URL. More...
 

Protected Attributes

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

Additional Inherited Members

- Public Attributes inherited from eZ\Publish\Core\REST\Common\UrlHandler\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\UrlHandler\Pattern
 compile ($pattern)
 Compiles a given pattern to a PCRE regular expression. More...
 

Constructor & Destructor Documentation

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

Member Function Documentation

eZ\Publish\Core\REST\Common\UrlHandler\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\UrlHandler.

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

Parse URL and return the IDs contained in the URL.

Parameters
string$type
string$url
Returns
array

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

Member Data Documentation

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

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