PHP Interface DMS\Filter\FilterInterface

Afficher le fichier Open project: rdohms/dms-filter Interface Usage Examples

Méthodes publiques

Méthode Description
filterEntity ( mixed $object ) Iterates over the properties of the object applying filters and replacing values
filterProperty ( mixed $object, string $property ) Filters a specific property in an object, replacing the current value
filterValue ( mixed $value, array | Rule $filter ) : mixed Runs a given value through one or more filter rules returning the filtered value
getMetadataFactory ( ) : DMS\Filter\Mapping\ClassMetadataFactoryInterface Retrieves the metadata factory for class metdatas

Method Details

filterEntity() public méthode

Iterates over the properties of the object applying filters and replacing values
public filterEntity ( mixed $object )
$object mixed

filterProperty() public méthode

Filters a specific property in an object, replacing the current value
public filterProperty ( mixed $object, string $property )
$object mixed
$property string

filterValue() public méthode

Runs a given value through one or more filter rules returning the filtered value
public filterValue ( mixed $value, array | Rule $filter ) : mixed
$value mixed
$filter array | DMS\Filter\Rules\Rule
Résultat mixed

getMetadataFactory() public méthode

Retrieves the metadata factory for class metdatas
public getMetadataFactory ( ) : DMS\Filter\Mapping\ClassMetadataFactoryInterface
Résultat DMS\Filter\Mapping\ClassMetadataFactoryInterface