Class lispa\amos\comments\base\PartecipantsNotification

Inheritancelispa\amos\comments\base\PartecipantsNotification » yii\base\Object
Implementsyii\base\Configurable

Class PartecipantsNotification

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
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
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() Initializes the object. lispa\amos\comments\base\PartecipantsNotification
partecipantAlert() This method sends the mail notifications to the correct recipients. lispa\amos\comments\base\PartecipantsNotification

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
getDefaultRecipients() This method returns an array that contains the ids of the default users to be notified. lispa\amos\comments\base\PartecipantsNotification
getDiscussionsRecipients() This method returns an array that contains the ids of the discussions users to be notified. lispa\amos\comments\base\PartecipantsNotification
getRecipients() This method returns an array that contains the ids of the users to be notified. lispa\amos\comments\base\PartecipantsNotification

Property Details

$appController protected property
$commentsModule protected property

Method Details

getDefaultRecipients() protected method

This method returns an array that contains the ids of the default users to be notified.

protected array getDefaultRecipients ( $contextModel, $contextModelClassName )
$contextModel lispa\amos\core\record\Record
$contextModelClassName string
getDiscussionsRecipients() protected method

This method returns an array that contains the ids of the discussions users to be notified.

protected array getDiscussionsRecipients ( $contextModel )
$contextModel lispa\amos\core\record\Record
getRecipients() protected method

This method returns an array that contains the ids of the users to be notified.

protected array getRecipients ( $contextModel, $contextModelClassName )
$contextModel lispa\amos\core\record\Record
$contextModelClassName string
init() public method

Initializes the object.

This method is invoked at the end of the constructor after the object is initialized with the given configuration.

public void init ( )
partecipantAlert() public method

This method sends the mail notifications to the correct recipients.

public void partecipantAlert ( $comment )
$comment