PHP Interface Fenos\Notifynder\Contracts\NotifynderGroup

Afficher le fichier Open project: fenos/notifynder Interface Usage Examples

Méthodes publiques

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