PHP 트레잇 Crud\Traits\FindMethodTrait

파일 보기 프로젝트 열기: friendsofcake/crud

공개 메소드들

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