DefaultRequestListener Class Reference

Detailed Description

DefaultRequestListener normalizes various search, sort and paging parameters into those understood by wcmf controllers.

Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 15 of file DefaultRequestListener.php.

Public Member Functions

 __construct (EventManager $eventManager, PersistenceFacade $persistenceFacade)
 
 __destruct ()
 
 listen (ApplicationEvent $event)
 

Protected Member Functions

 transformRequest ($request)
 
 transformResponse ($request, $response)
 
 getRelatedType (ObjectId $sourceOid, $role)
 

Constructor & Destructor Documentation

__construct ( EventManager  $eventManager,
PersistenceFacade  $persistenceFacade 
)

Constructor.

Definition at line 23 of file DefaultRequestListener.php.

__destruct ( )

Destructor.

Definition at line 32 of file DefaultRequestListener.php.

Member Function Documentation

listen ( ApplicationEvent  $event)

Listen to ApplicationEvent.

Parameters
$eventApplicationEvent instance

Definition at line 40 of file DefaultRequestListener.php.

transformRequest (   $request)
protected

Definition at line 56 of file DefaultRequestListener.php.

transformResponse (   $request,
  $response 
)
protected

Definition at line 112 of file DefaultRequestListener.php.

getRelatedType ( ObjectId  $sourceOid,
  $role 
)
protected

Get the type that is used in the given role related to the given source object.

Parameters
$sourceOidObjectId of the source object
$roleThe role name
Returns
String

Definition at line 133 of file DefaultRequestListener.php.