Class lispa\amos\notificationmanager\base\NotifierRepository
Inheritance | lispa\amos\notificationmanager\base\NotifierRepository |
---|
Class NotifierRepository
Public Methods
Method Details
Method to count unviewed notification.
public false|integer|null|string countNotRead ( $uid, $class_name, $externalquery = null ) | ||
$uid | integer|null | |
$class_name | string | |
$externalquery | null |
public boolean favouriteOff ( $uid, $class_name, $contentId ) | ||
$uid | integer | |
$class_name | string | |
$contentId |
public boolean favouriteOn ( $uid, $class_name, $contentId ) | ||
$uid | integer | |
$class_name | string | |
$contentId |
public boolean isFavorite ( $model, $uid = null ) | ||
$model | lispa\amos\core\record\Record | |
$uid | integer|null |
Method to verify if model is Read
public boolean modelIsRead ( $model, $uid = null ) | ||
$model | yii\db\ActiveRecord | |
$uid | integer|null |
public boolean notificationOff ( $uid, $class_name, $externalquery = null, $channel ) | ||
$uid | integer|null | |
$class_name | ||
$externalquery | null | |
$channel | lispa\amos\notificationmanager\models\NotificationChannels |
public boolean notificationOn ( $uid, $class_name, $externalquery = null, $channel ) | ||
$uid | integer | |
$class_name | string | |
$externalquery | null|yii\db\Query|yii\db\ActiveQuery | |
$channel | integer |