PHP Class Imbo\Resource\Images

This resource will let users fetch images based on queries. The following query parameters can be used: page => Page number. Defaults to 1 limit => Limit to a number of images pr. page. Defaults to 20 metadata => Whether or not to include metadata pr. image. Set to 1 to enable query => urlencoded json data to use in the query from => Unix timestamp to fetch from to => Unit timestamp to fetch to
Author: Christer Edvartsen ([email protected])
Inheritance: implements Imbo\Resource\ResourceInterface
Show file Open project: imbo/imbo Class Usage Examples

Public Methods

Method Description
addImage ( Imbo\EventManager\EventInterface $event ) Handle POST requests
getAllowedMethods ( )
getImages ( Imbo\EventManager\EventInterface $event ) Handle GET and HEAD requests
getSubscribedEvents ( )

Method Details

addImage() public method

Handle POST requests
public addImage ( Imbo\EventManager\EventInterface $event )
$event Imbo\EventManager\EventInterface

getAllowedMethods() public method

public getAllowedMethods ( )

getImages() public method

Handle GET and HEAD requests
public getImages ( Imbo\EventManager\EventInterface $event )
$event Imbo\EventManager\EventInterface The current event

getSubscribedEvents() public static method

public static getSubscribedEvents ( )