PHP Class Fenos\Notifynder\Groups\GroupCategoryRepository

Inheritance: implements Fenos\Notifynder\Contracts\NotifynderGroupCategoryDB
Afficher le fichier Open project: fenos/notifynder Class Usage Examples

Protected Properties

Свойство Type Description
$notificationCategory Fenos\Notifynder\Models\NotificationCategory
$notificationGroup Fenos\Notifynder\Models\NotificationGroup

Méthodes publiques

Méthode 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 méthode

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

addCategoryToGroupById() public méthode

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

addCategoryToGroupByName() public méthode

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

addMultipleCategoriesToGroup() public méthode

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

Property Details

$notificationCategory protected_oe property

protected NotificationCategory,Fenos\Notifynder\Models $notificationCategory
Résultat Fenos\Notifynder\Models\NotificationCategory

$notificationGroup protected_oe property

protected NotificationGroup,Fenos\Notifynder\Models $notificationGroup
Résultat Fenos\Notifynder\Models\NotificationGroup