PHP Class Imbo\Resource\Metadata

Author: Christer Edvartsen ([email protected])
Inheritance: implements Imbo\Resource\ResourceInterface
Datei anzeigen Open project: imbo/imbo Class Usage Examples

Public Methods

Method Description
delete ( Imbo\EventManager\EventInterface $event ) Handle DELETE requests
get ( Imbo\EventManager\EventInterface $event ) Handle GET requests
getAllowedMethods ( )
getSubscribedEvents ( )
post ( Imbo\EventManager\EventInterface $event ) Handle POST requests
put ( Imbo\EventManager\EventInterface $event ) Handle PUT requests
validateMetadata ( Imbo\EventManager\EventInterface $event ) Validate metadata found in the request body

Method Details

delete() public method

Handle DELETE requests
public delete ( Imbo\EventManager\EventInterface $event )
$event Imbo\EventManager\EventInterface The current event

get() public method

Handle GET requests
public get ( Imbo\EventManager\EventInterface $event )
$event Imbo\EventManager\EventInterface The current event

getAllowedMethods() public method

public getAllowedMethods ( )

getSubscribedEvents() public static method

public static getSubscribedEvents ( )

post() public method

Handle POST requests
public post ( Imbo\EventManager\EventInterface $event )
$event Imbo\EventManager\EventInterface The current event

put() public method

Handle PUT requests
public put ( Imbo\EventManager\EventInterface $event )
$event Imbo\EventManager\EventInterface The current event

validateMetadata() public method

Validate metadata found in the request body
public validateMetadata ( Imbo\EventManager\EventInterface $event )
$event Imbo\EventManager\EventInterface The event instance