PHP Interface Overtrue\Validation\PresenceVerifierInterface

Show file Open project: overtrue/validation

Public Methods

Method Description
getCount ( string $collection, string $column, string $value, integer $excludeId = null, string $idColumn = null, array $extra = [] ) : integer Count the number of objects in a collection having the given value.
getMultiCount ( string $collection, string $column, array $values, array $extra = [] ) : integer Count the number of objects in a collection with the given values.

Method Details

getCount() public method

Count the number of objects in a collection having the given value.
public getCount ( string $collection, string $column, string $value, integer $excludeId = null, string $idColumn = null, array $extra = [] ) : integer
$collection string
$column string
$value string
$excludeId integer
$idColumn string
$extra array
return integer

getMultiCount() public method

Count the number of objects in a collection with the given values.
public getMultiCount ( string $collection, string $column, array $values, array $extra = [] ) : integer
$collection string
$column string
$values array
$extra array
return integer