PHP Class Imbo\EventListener\ImageVariations\Database\Doctrine

Valid parameters for this driver: -
(string) dbname
Name of the database to connect to -
(string) user
Username to use when connecting -
(string) password
Password to use when connecting -
(string) host
Hostname to use when connecting -
(string) driver
Which driver to use -
(PDO) pdo
PDO adapter to use, as an alternative to specifying the above
Author: Espen Hovlandsdal ([email protected])
Inheritance: implements Imbo\EventListener\ImageVariations\Database\DatabaseInterface
Afficher le fichier Open project: imbo/imbo Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( array $params = null, Doctrine\DBAL\Connection $connection = null ) Class constructor
deleteImageVariations ( $user, $imageIdentifier, $width = null )
getBestMatch ( $user, $imageIdentifier, $width )
storeImageVariationMetadata ( $user, $imageIdentifier, $width, $height )

Private Methods

Méthode Description
getConnection ( ) : Doctrine\DBAL\Connection Get the Doctrine connection
setConnection ( Doctrine\DBAL\Connection $connection ) : self Set the connection instance

Method Details

__construct() public méthode

Class constructor
public __construct ( array $params = null, Doctrine\DBAL\Connection $connection = null )
$params array Parameters for the driver
$connection Doctrine\DBAL\Connection Optional connection instance

deleteImageVariations() public méthode

public deleteImageVariations ( $user, $imageIdentifier, $width = null )

getBestMatch() public méthode

public getBestMatch ( $user, $imageIdentifier, $width )

storeImageVariationMetadata() public méthode

public storeImageVariationMetadata ( $user, $imageIdentifier, $width, $height )