PHP Class Imbo\Resource\ShortUrls

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

Méthodes publiques

Méthode 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

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

Method Details

createShortUrl() public méthode

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

deleteImageShortUrls() public méthode

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

getAllowedMethods() public méthode

public getAllowedMethods ( )

getSubscribedEvents() public static méthode

public static getSubscribedEvents ( )