PHP 클래스 Pheasant\Finder\Wizard

파일 보기 프로젝트 열기: lox/pheasant 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( $schema, $finder ) Construct
dispatch ( $method, $params ) : mixed Magically derives a query to send to the internal finder
find ( $criteria = null ) : Collection Delegates directory to the Finder::find method
fromClass ( $className ) : Wizard Helper to build Wizard

비공개 메소드들

메소드 설명
_findById ( $params ) Find an object by primary key
_sqlFromMethod ( $method ) Derives an sql clause from a finder method e.g findByLlamaAndBlargh becomes llama=? and blargh=?

메소드 상세

__construct() 공개 메소드

Construct
public __construct ( $schema, $finder )

dispatch() 공개 메소드

Magically derives a query to send to the internal finder
public dispatch ( $method, $params ) : mixed
리턴 mixed Either a Collection or a DomainObject

find() 공개 메소드

Delegates directory to the Finder::find method
public find ( $criteria = null ) : Collection
리턴 Collection

fromClass() 공개 정적인 메소드

Helper to build Wizard
public static fromClass ( $className ) : Wizard
리턴 Wizard