PHP Interface Fenos\Notifynder\Contracts\NotifynderCategory

The CategoryManager is responsible to deal with the notification categories
Mostrar archivo Open project: fenos/notifynder Interface Usage Examples

Public Methods

Method Description
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.

Method Details

add() public method

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

delete() public method

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

deleteByName() public method

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

find() public method

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

findByName() public method

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

findByNames() public method

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

update() public method

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