PHP 클래스 Psecio\Gatekeeper\Handler\FindBy

상속: extends Psecio\Gatekeeper\Handler
파일 보기 프로젝트 열기: psecio/gatekeeper

공개 메소드들

메소드 설명
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

메소드 상세

execute() 공개 메소드

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

handleFindBy() 공개 메소드

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

handleFindByMultiple() 공개 메소드

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
리턴 Modler\Collection collection

handleFindBySingle() 공개 메소드

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
리턴 Modler\Collection collection