PHP Class 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
Datei anzeigen
Open project: imbo/imbo
Class Usage Examples
Public Methods
Protected Methods
Method |
Description |
|
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. |
|
Private Methods
Method |
Description |
|
getConnection ( ) : Doctrine\DBAL\Connection |
Get the Doctrine connection |
|
setConnection ( Doctrine\DBAL\Connection $connection ) : Doctrine |
Set the connection instance |
|
Method Details
__construct()
public method
public __construct ( array $params, Doctrine\DBAL\Connection $connection = null ) |
$params |
array |
Parameters for the driver |
$connection |
Doctrine\DBAL\Connection |
Optional connection instance |
deleteImageVariations()
public method
getImageVariation()
public method
getTableName()
protected method
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.
storeImageVariation()
public method