PHP Class Fenos\Notifynder\Groups\GroupManager

Inheritance: implements Fenos\Notifynder\Contracts\NotifynderGroup
Afficher le fichier Open project: fenos/notifynder

Protected Properties

Свойство Type Description
$groupCategory Fenos\Notifynder\Contracts\NotifynderGroupCategoryDB
$groupRepo Fenos\Notifynder\Contracts\NotifynderGroupDB

Méthodes publiques

Méthode Description
__construct ( Fenos\Notifynder\Contracts\NotifynderGroupDB $groupRepo, Fenos\Notifynder\Contracts\NotifynderGroupCategoryDB $groupCategory )
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.

Méthodes protégées

Méthode Description
isStringWithDots ( $name ) : boolean Check if a string with dots.

Method Details

__construct() public méthode

public __construct ( Fenos\Notifynder\Contracts\NotifynderGroupDB $groupRepo, Fenos\Notifynder\Contracts\NotifynderGroupCategoryDB $groupCategory )
$groupRepo Fenos\Notifynder\Contracts\NotifynderGroupDB
$groupCategory Fenos\Notifynder\Contracts\NotifynderGroupCategoryDB

addCategoryToGroupById() public méthode

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

addCategoryToGroupByName() public méthode

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

addGroup() public méthode

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

addMultipleCategoriesToGroup() public méthode

Add Multiple categories in a group First parameter is the group name all the rest are categories.
public addMultipleCategoriesToGroup ( ) : mixed
Résultat mixed

findById() public méthode

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

findByName() public méthode

Find a group By name.
public findByName ( $groupName ) : mixed
$groupName
Résultat mixed

isStringWithDots() protected méthode

Check if a string with dots.
protected isStringWithDots ( $name ) : boolean
$name
Résultat boolean

Property Details

$groupCategory protected_oe property

protected NotifynderGroupCategoryDB,Fenos\Notifynder\Contracts $groupCategory
Résultat Fenos\Notifynder\Contracts\NotifynderGroupCategoryDB

$groupRepo protected_oe property

protected NotifynderGroupDB,Fenos\Notifynder\Contracts $groupRepo
Résultat Fenos\Notifynder\Contracts\NotifynderGroupDB