PHP 클래스 Fenos\Notifynder\Categories\CategoryManager

The CategoryManager is responsible to deal with the notification categories
상속: implements Fenos\Notifynder\Contracts\NotifynderCategory
파일 보기 프로젝트 열기: fenos/notifynder 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$categoryRepo Fenos\Notifynder\Contracts\CategoryDB

공개 메소드들

메소드 설명
__construct ( Fenos\Notifynder\Contracts\CategoryDB $categoryRepo )
add ( array $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.

메소드 상세

__construct() 공개 메소드

public __construct ( Fenos\Notifynder\Contracts\CategoryDB $categoryRepo )
$categoryRepo Fenos\Notifynder\Contracts\CategoryDB

add() 공개 메소드

Add a category to the DB.
public add ( array $name, $text ) : NotificationCategory
$name array
$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

프로퍼티 상세

$categoryRepo 보호되어 있는 프로퍼티

protected CategoryDB,Fenos\Notifynder\Contracts $categoryRepo
리턴 Fenos\Notifynder\Contracts\CategoryDB