Class lispa\amos\comments\base\PartecipantsNotification
Inheritance | lispa\amos\comments\base\PartecipantsNotification » yii\base\Object |
---|---|
Implements | yii\base\Configurable |
Class PartecipantsNotification
Protected Properties
Public Methods
Method | Description | Defined 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
Method | Description | Defined 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
Method Details
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 |
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 |
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 |
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 ( ) |
This method sends the mail notifications to the correct recipients.
public void partecipantAlert ( $comment ) | ||
$comment |