PHP 클래스 App\Services\Form\Recipe\RecipeForm

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

보호된 프로퍼티들

프로퍼티 타입 설명
$recipe
$validator

공개 메소드들

메소드 설명
__construct ( App\Services\Validation\ValidableInterface $validator, App\Repositories\Recipe\RecipeInterface $recipe ) : void Create a new form service instance.
errors ( ) : array Return validation errors.
save ( array $input ) : boolean Create a new recipe.
update ( array $input ) : boolean Update an existing recipe.

보호된 메소드들

메소드 설명
valid ( array $input ) : boolean Test whether form validator passes.

메소드 상세

__construct() 공개 메소드

Create a new form service instance.
public __construct ( App\Services\Validation\ValidableInterface $validator, App\Repositories\Recipe\RecipeInterface $recipe ) : void
$validator App\Services\Validation\ValidableInterface
$recipe App\Repositories\Recipe\RecipeInterface
리턴 void

errors() 공개 메소드

Return validation errors.
public errors ( ) : array
리턴 array

save() 공개 메소드

Create a new recipe.
public save ( array $input ) : boolean
$input array Data to create a recipe
리턴 boolean

update() 공개 메소드

Update an existing recipe.
public update ( array $input ) : boolean
$input array Data to update a recipe
리턴 boolean

valid() 보호된 메소드

Test whether form validator passes.
protected valid ( array $input ) : boolean
$input array
리턴 boolean

프로퍼티 상세

$recipe 보호되어 있는 프로퍼티

protected $recipe

$validator 보호되어 있는 프로퍼티

protected $validator