PHP Interface Learner\Repositories\NewsletterRepositoryInterface

Afficher le fichier Open project: RryLee/learner.video Interface Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

delete() public méthode

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

findAll() public méthode

Find all newsletter.
public findAll ( ) : Illuminate\Database\Eloquent\Collection
Résultat Illuminate\Database\Eloquent\Collection

findAllPublishedWithPaginator() public méthode

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

findPublishedWithRelationById() public méthode

Find published newsletter by id.
public findPublishedWithRelationById ( integer $id ) : Illuminate\Contracts\Pagination\LengthAwarePaginator
$id integer
Résultat Illuminate\Contracts\Pagination\LengthAwarePaginator

getNewletterLinkById() public méthode

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

store() public méthode

Store a new newsletter.
public store ( string $title ) : Illuminate\Database\Eloquent\Collection
$title string
Résultat Illuminate\Database\Eloquent\Collection