Class lispa\amos\notificationmanager\behaviors\NotifyBehavior
Inheritance | lispa\amos\notificationmanager\behaviors\NotifyBehavior » yii\base\Behavior » yii\base\Object |
---|---|
Implements | yii\base\Configurable |
Class NotifyBehavior
Public Properties
Public Methods
Property Details
Method Details
public void evaluatenotify ( $event ) | ||
$event | array |
Declares event handlers for the $owner's events.
Child classes may override this method to declare what PHP callbacks should be attached to the events of the $owner component.
The callbacks will be attached to the $owner's events when the behavior is attached to the owner; and they will be detached from the events when the behavior is detached from the component.
The callbacks can be any of the following:
- method in this behavior:
'handleClick'
, equivalent to[$this, 'handleClick']
- object method:
[$object, 'handleClick']
- static method:
['Page', 'handleClick']
- anonymous function:
function ($event) { ... }
The following is an example:
[
Model::EVENT_BEFORE_VALIDATE => 'myBeforeValidate',
Model::EVENT_AFTER_VALIDATE => 'myAfterValidate',
]
public array events ( ) | ||
return | array | Events (array keys) and the corresponding event handler methods (array values). |
---|
public array getChannels ( ) |
public array getEvents ( ) |
public array getMailStatuses ( ) |
See also [[]].
public void init ( ) |
public void notifyreaded ( $event ) | ||
$event | array |
public void notifyreadeddetail ( $event ) | ||
$event | array |
public void setChannels ( $array ) | ||
$array | array |
public void setConditions ( $conditions ) | ||
$conditions | array |
public void setEvents ( array $events ) | ||
$events | array |
public void setMailStatuses ( $mailStatuses ) | ||
$mailStatuses | array |