PHP Класс Imbo\EventListener\ImageVariations\Storage\Doctrine

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
Автор: Espen Hovlandsdal ([email protected])
Наследование: implements Imbo\EventListener\ImageVariations\Storage\StorageInterface
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( array $params, Doctrine\DBAL\Connection $connection = null ) Class constructor
deleteImageVariations ( $user, $imageIdentifier, $width = null )
getImageVariation ( $user, $imageIdentifier, $width )
storeImageVariation ( $user, $imageIdentifier, $blob, $width )

Защищенные методы

Метод Описание
getTableName ( string $user, string $imageIdentifier ) : string Method that can be overridden to dynamically select table names based on the user and the image identifier. The default implementation does not use them for anything, and simply returns the default table name.

Приватные методы

Метод Описание
getConnection ( ) : Doctrine\DBAL\Connection Get the Doctrine connection
setConnection ( Doctrine\DBAL\Connection $connection ) : Doctrine Set the connection instance

Описание методов

__construct() публичный Метод

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

deleteImageVariations() публичный Метод

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

getImageVariation() публичный Метод

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

getTableName() защищенный Метод

Method that can be overridden to dynamically select table names based on the user and the image identifier. The default implementation does not use them for anything, and simply returns the default table name.
protected getTableName ( string $user, string $imageIdentifier ) : string
$user string The user which the image belongs to
$imageIdentifier string The image identifier to fetch
Результат string Returns a table name where the image is located

storeImageVariation() публичный Метод

public storeImageVariation ( $user, $imageIdentifier, $blob, $width )