PHP 인터페이스 Fenos\Notifynder\Contracts\NotifynderCategory

The CategoryManager is responsible to deal with the notification categories
파일 보기 프로젝트 열기: fenos/notifynder 0 사용 예제들

공개 메소드들

메소드 설명
add ( $name, $text ) : NotificationCategory Add a category to the DB.
delete ( $categoryId ) : mixed Delete category by ID.
deleteByName ( $name ) : mixed Delete category by name.
find ( $categoryId ) : mixed Find a category by id.
findByName ( $name ) : mixed Find a category by name.
findByNames ( array $name ) : mixed Find categories by names, pass the name as an array.
update ( array $data, $categoryId ) : mixed Update a category.

메소드 상세

add() 공개 메소드

Add a category to the DB.
public add ( $name, $text ) : NotificationCategory
$name
$text
리턴 Fenos\Notifynder\Models\NotificationCategory

delete() 공개 메소드

Delete category by ID.
public delete ( $categoryId ) : mixed
$categoryId
리턴 mixed

deleteByName() 공개 메소드

Delete category by name.
public deleteByName ( $name ) : mixed
$name
리턴 mixed

find() 공개 메소드

Find a category by id.
public find ( $categoryId ) : mixed
$categoryId
리턴 mixed

findByName() 공개 메소드

Find a category by name.
public findByName ( $name ) : mixed
$name
리턴 mixed

findByNames() 공개 메소드

Find categories by names, pass the name as an array.
public findByNames ( array $name ) : mixed
$name array
리턴 mixed

update() 공개 메소드

Update a category.
public update ( array $data, $categoryId ) : mixed
$data array
$categoryId
리턴 mixed