PHP Class Webmozart\KeyValueStore\DbalStore

Since: 1.0
Author: Bernhard Schussek ([email protected])
Author: Michiel Boeckaert ([email protected])
Inheritance: implements Webmozart\KeyValueStore\Api\KeyValueStore
Afficher le fichier Open project: webmozart/key-value-store Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( Doctrine\DBAL\Connection $connection, string $tableName = 'store' )
clear ( )
exists ( $key )
get ( $key, $default = null )
getMultiple ( array $keys, $default = null )
getMultipleOrFail ( array $keys )
getOrFail ( $key )
getTableForCreate ( ) : Doctrine\DBAL\Schema\Table Object Representation of the table used in this class.
getTableName ( ) : string The name for our DBAL database table.
keys ( )
remove ( $key )
set ( $key, $value )

Private Methods

Méthode Description
doGetMultiple ( array $keys )
doInsert ( $key, $value )
doUpdate ( $key, $value )
getDbRow ( $key )

Method Details

__construct() public méthode

public __construct ( Doctrine\DBAL\Connection $connection, string $tableName = 'store' )
$connection Doctrine\DBAL\Connection A doctrine connection instance
$tableName string The name of the database table

clear() public méthode

public clear ( )

exists() public méthode

public exists ( $key )

get() public méthode

public get ( $key, $default = null )

getMultiple() public méthode

public getMultiple ( array $keys, $default = null )
$keys array

getMultipleOrFail() public méthode

public getMultipleOrFail ( array $keys )
$keys array

getOrFail() public méthode

public getOrFail ( $key )

getTableForCreate() public méthode

Object Representation of the table used in this class.
public getTableForCreate ( ) : Doctrine\DBAL\Schema\Table
Résultat Doctrine\DBAL\Schema\Table

getTableName() public méthode

The name for our DBAL database table.
public getTableName ( ) : string
Résultat string

keys() public méthode

public keys ( )

remove() public méthode

public remove ( $key )

set() public méthode

public set ( $key, $value )