Property | Type | Description | |
---|---|---|---|
$body | The body of the notification. Email body is one use. | ||
$language | The language of the notification | ||
$params | Additional parameters | ||
$subject | The subject of the notification. Email subject is one use. | ||
$summary | A single sentence summary string |
Property | Type | Description | |
---|---|---|---|
$from | The entity causing or creating the notification | ||
$to | The user receiving the notification |
Method | Description | |
---|---|---|
__construct ( ElggEntity $from, ElggEntity $to, string $language, string $subject, string $body, string $summary = '', array $params = [] ) | Create a notification | |
getRecipient ( ) : ElggEntity | Get the recipient entity | |
getRecipientGUID ( ) : integer | Get the recipient entity guid | |
getSender ( ) : ElggEntity | Get the sender entity | |
getSenderGUID ( ) : integer | Get the sender entity guid | |
toObject ( ) : stdClass | Export notification |
public __construct ( ElggEntity $from, ElggEntity $to, string $language, string $subject, string $body, string $summary = '', array $params = [] ) | ||
$from | ElggEntity | The entity sending the notification (usually the site) |
$to | ElggEntity | The entity receiving the notification |
$language | string | The language code for the notification |
$subject | string | The subject of the notification |
$body | string | The body of the notification |
$summary | string | Optional summary of the notification |
$params | array | Optional array of parameters |
public getRecipient ( ) : ElggEntity | ||
return | ElggEntity |
public getRecipientGUID ( ) : integer | ||
return | integer |
public getSenderGUID ( ) : integer | ||
return | integer |
public $subject |