PHP Класс Pheasant\Finder\Wizard

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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