PHP 인터페이스 Owl\Repositories\TemplateRepositoryInterface

파일 보기 프로젝트 열기: owl/owl

공개 메소드들

메소드 설명
create ( $template ) : Illuminate\Database\Eloquent\Model Create a new template.
destroy ( $template_id ) : boolean Delete a tempalte data.
getAll ( ) : Illuminate\Database\Eloquent\Collection Get all template data.
getById ( $template_id ) : Illuminate\Database\Eloquent\Collection Get template data by id.
updateTemplate ( $template_id, $template ) : Illuminate\Database\Eloquent\Model Update a template data.

메소드 상세

create() 공개 메소드

Create a new template.
public create ( $template ) : Illuminate\Database\Eloquent\Model
$template object display_title, title, tags, body
리턴 Illuminate\Database\Eloquent\Model

destroy() 공개 메소드

Delete a tempalte data.
public destroy ( $template_id ) : boolean
$template_id int template_id
리턴 boolean

getAll() 공개 메소드

Get all template data.
public getAll ( ) : Illuminate\Database\Eloquent\Collection
리턴 Illuminate\Database\Eloquent\Collection | Illuminate\Database\Eloquent\Builder

getById() 공개 메소드

Get template data by id.
public getById ( $template_id ) : Illuminate\Database\Eloquent\Collection
$template_id int template_id
리턴 Illuminate\Database\Eloquent\Collection | Illuminate\Database\Eloquent\Builder

updateTemplate() 공개 메소드

Update a template data.
public updateTemplate ( $template_id, $template ) : Illuminate\Database\Eloquent\Model
$template_id int
$template object display_title, title, tags, body
리턴 Illuminate\Database\Eloquent\Model