PHP 인터페이스 Learner\Repositories\BlogRepositoryInterface

파일 보기 프로젝트 열기: RryLee/learner.video 0 사용 예제들

공개 메소드들

메소드 설명
create ( array $data ) Create new blog.
delete ( integer $id ) : boolean Delete a blog.
findAllPublishedPaginated ( $perPage = 10 ) : Illuminate\Contracts\Pagination\LengthAwarePaginator Paginate all published blogs.
findAllWithRelation ( ) : Illuminate\Database\Eloquent\Collection | Blog[] Find all blog with category.
findPublishedById ( integer $id ) : Illuminate\Database\Eloquent\Collection | Blog[] Get published blog by id.
getCreateForm ( ) : CreateBlogFormService Get save blog form.
getUpdateForm ( ) : UpdateBlogFormService Get update blog form.
togglePublished ( integer $id ) : boolean Change blog's published status.
toggleTop ( integer $id ) : boolean Change blog's toped status.
update ( $id, array $data ) Update new blog.

메소드 상세

create() 공개 메소드

Create new blog.
public create ( array $data )
$data array

delete() 공개 메소드

Delete a blog.
public delete ( integer $id ) : boolean
$id integer
리턴 boolean

findAllPublishedPaginated() 공개 메소드

Paginate all published blogs.
public findAllPublishedPaginated ( $perPage = 10 ) : Illuminate\Contracts\Pagination\LengthAwarePaginator
리턴 Illuminate\Contracts\Pagination\LengthAwarePaginator

findAllWithRelation() 공개 메소드

Find all blog with category.
public findAllWithRelation ( ) : Illuminate\Database\Eloquent\Collection | Blog[]
리턴 Illuminate\Database\Eloquent\Collection | Learner\Models\Blog[]

findPublishedById() 공개 메소드

Get published blog by id.
public findPublishedById ( integer $id ) : Illuminate\Database\Eloquent\Collection | Blog[]
$id integer
리턴 Illuminate\Database\Eloquent\Collection | Learner\Models\Blog[]

getCreateForm() 공개 메소드

Get save blog form.
public getCreateForm ( ) : CreateBlogFormService
리턴 Learner\Services\Forms\CreateBlogFormService

getUpdateForm() 공개 메소드

Get update blog form.
public getUpdateForm ( ) : UpdateBlogFormService
리턴 Learner\Services\Forms\UpdateBlogFormService

togglePublished() 공개 메소드

Change blog's published status.
public togglePublished ( integer $id ) : boolean
$id integer
리턴 boolean

toggleTop() 공개 메소드

Change blog's toped status.
public toggleTop ( integer $id ) : boolean
$id integer
리턴 boolean

update() 공개 메소드

Update new blog.
public update ( $id, array $data )
$data array