Class lispa\amos\notificationmanager\base\NotifierRepository

Inheritancelispa\amos\notificationmanager\base\NotifierRepository

Class NotifierRepository

Method Details

countNotRead() public method

Method to count unviewed notification.

public false|integer|null|string countNotRead ( $uid, $class_name, $externalquery null )
$uid integer|null
$class_name string
$externalquery null
favouriteOff() public method

public boolean favouriteOff ( $uid, $class_name, $contentId )
$uid integer
$class_name string
$contentId
favouriteOn() public method

public boolean favouriteOn ( $uid, $class_name, $contentId )
$uid integer
$class_name string
$contentId
isFavorite() public method

public boolean isFavorite ( $model, $uid null )
$model lispa\amos\core\record\Record
$uid integer|null
modelIsRead() public method

Method to verify if model is Read

public boolean modelIsRead ( $model, $uid null )
$model yii\db\ActiveRecord
$uid integer|null
notificationOff() public method

public boolean notificationOff ( $uid, $class_name, $externalquery null, $channel )
$uid integer|null
$class_name
$externalquery null
$channel lispa\amos\notificationmanager\models\NotificationChannels
notificationOn() public method

public boolean notificationOn ( $uid, $class_name, $externalquery null, $channel )
$uid integer
$class_name string
$externalquery null|yii\db\Query|yii\db\ActiveQuery
$channel integer