(string) dbnameName of the database to connect to -
(string) userUsername to use when connecting -
(string) passwordPassword to use when connecting -
(string) hostHostname to use when connecting -
(string) driverWhich driver to use Mostrar archivo Open project: imbo/imbo Class Usage Examples
Method | Description | |
---|---|---|
__construct ( array $params, Doctrine\DBAL\Connection $connection = null ) | Class constructor | |
deleteImage ( $user, $imageIdentifier ) | ||
deleteMetadata ( $user, $imageIdentifier ) | ||
deleteShortUrls ( $user, $imageIdentifier, $shortUrlId = null ) | ||
getImageMimeType ( $user, $imageIdentifier ) | ||
getImageProperties ( $user, $imageIdentifier ) | ||
getImages ( array $users, |
||
getLastModified ( array $users, $imageIdentifier = null ) | ||
getMetadata ( $user, $imageIdentifier ) | ||
getNumBytes ( $user = null ) | ||
getNumImages ( $user = null ) | ||
getNumUsers ( ) | ||
getShortUrlId ( $user, $imageIdentifier, $extension = null, array $query = [] ) | ||
getShortUrlParams ( $shortUrlId ) | ||
getStatus ( ) | ||
imageExists ( $user, $imageIdentifier ) | ||
insertImage ( $user, $imageIdentifier, |
||
insertShortUrl ( $shortUrlId, $user, $imageIdentifier, $extension = null, array $query = [] ) | ||
load ( $user, $imageIdentifier, |
||
updateMetadata ( $user, $imageIdentifier, array $metadata ) |
Method | Description | |
---|---|---|
denormalizeMetadata ( array $data ) : array | De-normalize metadata | |
getConnection ( ) : Doctrine\DBAL\Connection | Get the Doctrine connection | |
getImageId ( string $user, string $imageIdentifier ) : integer | Get the internal image ID | |
normalizeMetadata ( array &$metadata, array &$normalized, string $namespace = '' ) : array | Normalize metadata | |
setConnection ( Doctrine\DBAL\Connection $connection ) : self | Set the connection instance |
public __construct ( array $params, Doctrine\DBAL\Connection $connection = null ) | ||
$params | array | Parameters for the driver |
$connection | Doctrine\DBAL\Connection | Optional connection instance. Primarily used for testing |
public deleteShortUrls ( $user, $imageIdentifier, $shortUrlId = null ) |
public getLastModified ( array $users, $imageIdentifier = null ) | ||
$users | array |
public getShortUrlId ( $user, $imageIdentifier, $extension = null, array $query = [] ) | ||
$query | array |
public insertImage ( $user, $imageIdentifier, |
||
$image |
public insertShortUrl ( $shortUrlId, $user, $imageIdentifier, $extension = null, array $query = [] ) | ||
$query | array |
public updateMetadata ( $user, $imageIdentifier, array $metadata ) | ||
$metadata | array |