PHP 인터페이스 Learner\Repositories\NewsletterRepositoryInterface

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

공개 메소드들

메소드 설명
delete ( integer $id ) Delete a newsletter.
findAll ( ) : Illuminate\Database\Eloquent\Collection Find all newsletter.
findAllPublishedWithPaginator ( integer $perPage = 10 ) : Illuminate\Contracts\Pagination\LengthAwarePaginator Find all published newsletters.
findPublishedWithRelationById ( integer $id ) : Illuminate\Contracts\Pagination\LengthAwarePaginator Find published newsletter by id.
getNewletterLinkById ( integer $id ) : Illuminate\Database\Eloquent\Collection Get all link of given ids' newsletter
store ( string $title ) : Illuminate\Database\Eloquent\Collection Store a new newsletter.

메소드 상세

delete() 공개 메소드

Delete a newsletter.
public delete ( integer $id )
$id integer

findAll() 공개 메소드

Find all newsletter.
public findAll ( ) : Illuminate\Database\Eloquent\Collection
리턴 Illuminate\Database\Eloquent\Collection

findAllPublishedWithPaginator() 공개 메소드

Find all published newsletters.
public findAllPublishedWithPaginator ( integer $perPage = 10 ) : Illuminate\Contracts\Pagination\LengthAwarePaginator
$perPage integer
리턴 Illuminate\Contracts\Pagination\LengthAwarePaginator

findPublishedWithRelationById() 공개 메소드

Find published newsletter by id.
public findPublishedWithRelationById ( integer $id ) : Illuminate\Contracts\Pagination\LengthAwarePaginator
$id integer
리턴 Illuminate\Contracts\Pagination\LengthAwarePaginator

getNewletterLinkById() 공개 메소드

Get all link of given ids' newsletter
public getNewletterLinkById ( integer $id ) : Illuminate\Database\Eloquent\Collection
$id integer
리턴 Illuminate\Database\Eloquent\Collection

store() 공개 메소드

Store a new newsletter.
public store ( string $title ) : Illuminate\Database\Eloquent\Collection
$title string
리턴 Illuminate\Database\Eloquent\Collection