PHP Interface Overtrue\Validation\PresenceVerifierInterface

Afficher le fichier Open project: overtrue/validation

Méthodes publiques

Méthode 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 méthode

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
Résultat integer

getMultiCount() public méthode

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
Résultat integer