eZPublishCommunityProject  2013.6
eZ\Publish\Core\REST\Common\UrlHandler Interface Reference

Interface for URL handlers. More...

+ Inheritance diagram for eZ\Publish\Core\REST\Common\UrlHandler:

Public Member Functions

 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...
 

Detailed Description

Interface for URL handlers.

Member Function Documentation

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

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

Parameters
string$type
array$values
Returns
string

Implemented in eZ\Publish\Core\REST\Common\UrlHandler\Pattern, and eZ\Publish\Core\REST\Common\UrlHandler\Prefixed.

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

Parse URL and return the IDs contained in the URL.

Parameters
string$type
string$url
Returns
array

Implemented in eZ\Publish\Core\REST\Common\UrlHandler\Pattern, and eZ\Publish\Core\REST\Common\UrlHandler\Prefixed.


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