PHP Class Fenos\Notifynder\Groups\GroupCategoryRepository

Inheritance: implements Fenos\Notifynder\Contracts\NotifynderGroupCategoryDB
Mostra file Open project: fenos/notifynder Class Usage Examples

Protected Properties

Property Type Description
$notificationCategory Fenos\Notifynder\Models\NotificationCategory
$notificationGroup Fenos\Notifynder\Models\NotificationGroup

Public Methods

Method Description
__construct ( Fenos\Notifynder\Contracts\NotifynderCategory $notificationCategory, NotificationGroup $notificationGroup )
addCategoryToGroupById ( $groupId, $categoryId ) : Illuminate\Database\Eloquent\Collection | Model | static Add a category in a group.
addCategoryToGroupByName ( $groupName, $categoryName ) : mixed Add a category in a group by names given.
addMultipleCategoriesToGroup ( $groupName, array $names ) : mixed Add multiple categories by them names to a group.

Method Details

__construct() public method

public __construct ( Fenos\Notifynder\Contracts\NotifynderCategory $notificationCategory, NotificationGroup $notificationGroup )
$notificationCategory Fenos\Notifynder\Contracts\NotifynderCategory
$notificationGroup Fenos\Notifynder\Models\NotificationGroup

addCategoryToGroupById() public method

Add a category in a group.
public addCategoryToGroupById ( $groupId, $categoryId ) : Illuminate\Database\Eloquent\Collection | Model | static
$groupId
$categoryId
return Illuminate\Database\Eloquent\Collection | Illuminate\Database\Eloquent\Model | static

addCategoryToGroupByName() public method

Add a category in a group by names given.
public addCategoryToGroupByName ( $groupName, $categoryName ) : mixed
$groupName
$categoryName
return mixed

addMultipleCategoriesToGroup() public method

Add multiple categories by them names to a group.
public addMultipleCategoriesToGroup ( $groupName, array $names ) : mixed
$groupName
$names array
return mixed

Property Details

$notificationCategory protected_oe property

protected NotificationCategory,Fenos\Notifynder\Models $notificationCategory
return Fenos\Notifynder\Models\NotificationCategory

$notificationGroup protected_oe property

protected NotificationGroup,Fenos\Notifynder\Models $notificationGroup
return Fenos\Notifynder\Models\NotificationGroup