PHP Class Webmozart\KeyValueStore\DbalStore

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

Public Methods

Method 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

Method Description
doGetMultiple ( array $keys )
doInsert ( $key, $value )
doUpdate ( $key, $value )
getDbRow ( $key )

Method Details

__construct() public method

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 method

public clear ( )

exists() public method

public exists ( $key )

get() public method

public get ( $key, $default = null )

getMultiple() public method

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

getMultipleOrFail() public method

public getMultipleOrFail ( array $keys )
$keys array

getOrFail() public method

public getOrFail ( $key )

getTableForCreate() public method

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

getTableName() public method

The name for our DBAL database table.
public getTableName ( ) : string
return string

keys() public method

public keys ( )

remove() public method

public remove ( $key )

set() public method

public set ( $key, $value )