프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$from | The entity causing or creating the notification | ||
$to | The user receiving the notification |
메소드 | 설명 | |
---|---|---|
__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 getRecipientGUID ( ) : integer | ||
리턴 | integer |