PHP Interface Fenos\Notifynder\Contracts\NotifynderGroup

Show file Open project: fenos/notifynder Interface Usage Examples

Public Methods

Method Description
addCategoryToGroupById ( $groupId, $categoryId ) : mixed Add category to a group giving the ids of them.
addCategoryToGroupByName ( $groupName, $categoryName ) : mixed Add category to a group giving the ids of them.
addGroup ( $name ) : Model | static Add a group in the db.
addMultipleCategoriesToGroup ( ) : mixed Add Multiple categories in a group First parameter is the group name all the rest are categories.
findById ( $groupId ) : Illuminate\Database\Eloquent\Collection | Model | static Find a group by id.
findByName ( $groupName ) : mixed Find a group By name.

Method Details

addCategoryToGroupById() public method

Add category to a group giving the ids of them.
public addCategoryToGroupById ( $groupId, $categoryId ) : mixed
$groupId
$categoryId
return mixed

addCategoryToGroupByName() public method

Add category to a group giving the ids of them.
public addCategoryToGroupByName ( $groupName, $categoryName ) : mixed
$groupName
$categoryName
return mixed

addGroup() public method

Add a group in the db.
public addGroup ( $name ) : Model | static
$name
return Illuminate\Database\Eloquent\Model | static

addMultipleCategoriesToGroup() public method

Add Multiple categories in a group First parameter is the group name all the rest are categories.

findById() public method

Find a group by id.
public findById ( $groupId ) : Illuminate\Database\Eloquent\Collection | Model | static
$groupId
return Illuminate\Database\Eloquent\Collection | Illuminate\Database\Eloquent\Model | static

findByName() public method

Find a group By name.
public findByName ( $groupName ) : mixed
$groupName
return mixed