class DatabasePresenceVerifier implements PresenceVerifierInterface (View source)

Methods

void
__construct( ConnectionResolverInterface $db)

Create a new database presence verifier.

int
getCount( string $collection, string $column, string $value, int $excludeId = null, string $idColumn = null, array $extra = array())

Count the number of objects in a collection having the given value.

int
getMultiCount( string $collection, string $column, array $values, array $extra = array())

Count the number of objects in a collection with the given values.

void
setConnection( string $connection)

Set the connection to be used.

Details

at line line 30
void __construct( ConnectionResolverInterface $db)

Create a new database presence verifier.

Parameters

ConnectionResolverInterface $db

Return Value

void

at line line 46
int getCount( string $collection, string $column, string $value, int $excludeId = null, string $idColumn = null, array $extra = array())

Count the number of objects in a collection having the given value.

Parameters

string $collection
string $column
string $value
int $excludeId
string $idColumn
array $extra

Return Value

int

at line line 70
int getMultiCount( string $collection, string $column, array $values, array $extra = array())

Count the number of objects in a collection with the given values.

Parameters

string $collection
string $column
array $values
array $extra

Return Value

int

at line line 119
void setConnection( string $connection)

Set the connection to be used.

Parameters

string $connection

Return Value

void