Class lispa\amos\notificationmanager\behaviors\NotifyBehavior

Inheritancelispa\amos\notificationmanager\behaviors\NotifyBehavior » yii\base\Behavior » yii\base\Object
Implementsyii\base\Configurable

Class NotifyBehavior

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__call() Calls the named method which is not a class method. yii\base\Object
__construct() Constructor. yii\base\Object
__get() Returns the value of an object property. yii\base\Object
__isset() Checks if a property is set, i.e. defined and not null. yii\base\Object
__set() Sets value of an object property. yii\base\Object
__unset() Sets an object property to null. yii\base\Object
attach() Attaches the behavior object to the component. yii\base\Behavior
canGetProperty() Returns a value indicating whether a property can be read. yii\base\Object
canSetProperty() Returns a value indicating whether a property can be set. yii\base\Object
className() Returns the fully qualified name of this class. yii\base\Object
detach() Detaches the behavior object from the component. yii\base\Behavior
evaluatenotify() lispa\amos\notificationmanager\behaviors\NotifyBehavior
events() Declares event handlers for the $owner's events. lispa\amos\notificationmanager\behaviors\NotifyBehavior
getChannels() lispa\amos\notificationmanager\behaviors\NotifyBehavior
getEvents() lispa\amos\notificationmanager\behaviors\NotifyBehavior
getMailStatuses() lispa\amos\notificationmanager\behaviors\NotifyBehavior
hasMethod() Returns a value indicating whether a method is defined. yii\base\Object
hasProperty() Returns a value indicating whether a property is defined. yii\base\Object
init() lispa\amos\notificationmanager\behaviors\NotifyBehavior
notifyreaded() lispa\amos\notificationmanager\behaviors\NotifyBehavior
notifyreadeddetail() lispa\amos\notificationmanager\behaviors\NotifyBehavior
setChannels() lispa\amos\notificationmanager\behaviors\NotifyBehavior
setConditions() lispa\amos\notificationmanager\behaviors\NotifyBehavior
setEvents() lispa\amos\notificationmanager\behaviors\NotifyBehavior
setMailStatuses() lispa\amos\notificationmanager\behaviors\NotifyBehavior

Property Details

$EVENT_METHOD_EVALUATE public static property
public static $EVENT_METHOD_EVALUATE 'evaluatenotify'
$EVENT_METHOD_READED public static property
public static $EVENT_METHOD_READED 'notifyreaded'
$EVENT_METHOD_READED_DETAIL public static property
public static $EVENT_METHOD_READED_DETAIL 'notifyreadeddetail'
$channels public property
public array getChannels ( )
public void setChannels ( $array )
$conditions public write-only property
public void setConditions ( $conditions )
$events public property
public array getEvents ( )
public void setEvents ( array $events )
$mailStatuses public property
public array getMailStatuses ( )
public void setMailStatuses ( $mailStatuses )

Method Details

evaluatenotify() public method

public void evaluatenotify ( $event )
$event array
events() public method

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).

getChannels() public method

public array getChannels ( )
getEvents() public method

public array getEvents ( )
getMailStatuses() public method

public array getMailStatuses ( )
init() public method

See also [[]].

public void init ( )
notifyreaded() public method

public void notifyreaded ( $event )
$event array
notifyreadeddetail() public method

public void notifyreadeddetail ( $event )
$event array
setChannels() public method

public void setChannels ( $array )
$array array
setConditions() public method

public void setConditions ( $conditions )
$conditions array
setEvents() public method

public void setEvents ( array $events )
$events array
setMailStatuses() public method

public void setMailStatuses ( $mailStatuses )
$mailStatuses array