PHP Class eZ\Publish\Core\REST\Client\Tests\IdManager

Show file Open project: ezsystems/ezpublish-kernel

Protected Properties

Property Type Description
$requestParser eZ\Publish\Core\REST\Common\RequestParser URL handler.

Public Methods

Method Description
__construct ( eZ\Publish\Core\REST\Common\RequestParser $requestParser ) Creates a new ID manager based on $requestParser.
generateId ( string $type, mixed $rawId ) : mixed Generates a repository specific ID.
parseId ( string $type, mixed $id ) : mixed Parses the given $id for $type into its raw form.

Method Details

__construct() public method

Creates a new ID manager based on $requestParser.
public __construct ( eZ\Publish\Core\REST\Common\RequestParser $requestParser )
$requestParser eZ\Publish\Core\REST\Common\RequestParser

generateId() public method

Generates a repository specific ID for an object of $type from the database ID $rawId.
public generateId ( string $type, mixed $rawId ) : mixed
$type string
$rawId mixed
return mixed

parseId() public method

Takes a repository specific $id of $type and returns the raw database ID for the object.
public parseId ( string $type, mixed $id ) : mixed
$type string
$id mixed
return mixed

Property Details

$requestParser protected property

URL handler.
protected RequestParser,eZ\Publish\Core\REST\Common $requestParser
return eZ\Publish\Core\REST\Common\RequestParser