PHP Трейт Crud\Traits\FindMethodTrait

Показать файл Открыть проект

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

Метод Описание
findMethod ( string | null $method = null ) : string Change the find() method

Защищенные методы

Метод Описание
_findRecord ( string $id, Crud\Event\Subject $subject ) : Cake\ORM\Entity Find a record from the ID
_notFound ( string $id, Crud\Event\Subject $subject ) : void Throw exception if a record is not found

Описание методов

_findRecord() защищенный Метод

Find a record from the ID
protected _findRecord ( string $id, Crud\Event\Subject $subject ) : Cake\ORM\Entity
$id string Record id
$subject Crud\Event\Subject Event subject
Результат Cake\ORM\Entity

_notFound() защищенный Метод

Throw exception if a record is not found
protected _notFound ( string $id, Crud\Event\Subject $subject ) : void
$id string Record id
$subject Crud\Event\Subject Event subject
Результат void

findMethod() публичный Метод

If $method is NULL the current value is returned else the findMethod is changed
public findMethod ( string | null $method = null ) : string
$method string | null Method name
Результат string