PHP Class Imbo\Resource\ShortUrls

Author: Christer Edvartsen ([email protected])
Inheritance: implements Imbo\Resource\ResourceInterface
Show file Open project: imbo/imbo

Public Methods

Method Description
createShortUrl ( Imbo\EventManager\EventInterface $event ) Add a short URL to the database
deleteImageShortUrls ( Imbo\EventManager\EventInterface $event ) Delete all short URLs for a given image
getAllowedMethods ( )
getSubscribedEvents ( )

Private Methods

Method Description
getShortUrlId ( $len = 7 ) : string Method for generating short URL keys

Method Details

createShortUrl() public method

Add a short URL to the database
public createShortUrl ( Imbo\EventManager\EventInterface $event )
$event Imbo\EventManager\EventInterface

deleteImageShortUrls() public method

Delete all short URLs for a given image
public deleteImageShortUrls ( Imbo\EventManager\EventInterface $event )
$event Imbo\EventManager\EventInterface

getAllowedMethods() public method

public getAllowedMethods ( )

getSubscribedEvents() public static method

public static getSubscribedEvents ( )