Class

ezpRestMvcController

abstract class ezpRestMvcController extends ezcMvcController

Abstract class that must be extended by every REST controller

Constants

CACHE_ID

Cache ID for ezcCache

Properties

static bool $isCacheCreated Flag to indicate wether application cache has been created by ezcCacheManager or not

Methods

__construct(string $action, ezcMvcRequest $request)

Constructor

createResult()

Override to add the "requestedResponseGroups" variable for every REST requests

ezcMvcResult doHttpOptions()

Default action to handle OPTIONS requests.

string getCacheLocation()

Returns cache location for current API/version/controller/action

Details

at line 48
public __construct(string $action, ezcMvcRequest $request)

Constructor

Parameters

string $action
ezcMvcRequest $request

at line 143
public createResult()

Override to add the "requestedResponseGroups" variable for every REST requests

See also

lib/ezc/MvcTools/src/interfaces/ezcMvcController::createResult()

at line 214
public ezcMvcResult doHttpOptions()

Default action to handle OPTIONS requests.

Return Value

ezcMvcResult

at line 231
public string getCacheLocation()

Returns cache location for current API/version/controller/action

Return Value

string Path in the cluster