PHP Class Psecio\Gatekeeper\Handler\FindBy

Inheritance: extends Psecio\Gatekeeper\Handler
Afficher le fichier Open project: psecio/gatekeeper

Méthodes publiques

Méthode Description
execute ( ) : mixed Execute the "find by *" handling - smart enough to know if it's for one or multiple
handleFindBy ( string $name, array $args ) : object Handle the "findBy" calls for data
handleFindByMultiple ( string $name, array $args, array $matches ) : Modler\Collection Handle the "find by" when multiple are requested
handleFindBySingle ( string $name, array $args, array $matches ) : Modler\Collection Handle the "find by" when a single record is requested

Method Details

execute() public méthode

Execute the "find by *" handling - smart enough to know if it's for one or multiple
public execute ( ) : mixed
Résultat mixed Single model instance or collection on multiple

handleFindBy() public méthode

Handle the "findBy" calls for data
public handleFindBy ( string $name, array $args ) : object
$name string Function name called
$args array Arguments
Résultat object Model instance

handleFindByMultiple() public méthode

Handle the "find by" when multiple are requested
public handleFindByMultiple ( string $name, array $args, array $matches ) : Modler\Collection
$name string Name of function called
$args array Arguments list
$matches array Matches from regex
Résultat Modler\Collection collection

handleFindBySingle() public méthode

Handle the "find by" when a single record is requested
public handleFindBySingle ( string $name, array $args, array $matches ) : Modler\Collection
$name string Name of function called
$args array Arguments list
$matches array Matches from regex
Résultat Modler\Collection collection