Fenos\Notifynder\Contracts\NotifynderNotification::deleteByCategory PHP Метод

deleteByCategory() публичный Метод

Delete All notifications from a defined category.
public deleteByCategory ( $categoryName, $expired = false ) : boolean
$categoryName string
$expired Bool
Результат boolean
    public function deleteByCategory($categoryName, $expired = false);

Usage Example

Пример #1
0
 /**
  * Delete All notifications from a
  * defined category
  *
  * @param $category_name string
  * @param $expired Bool
  * @return Bool
  */
 public function deleteByCategory($category_name, $expired = false)
 {
     return $this->notification->deleteByCategory($category_name, $expired);
 }