Elgg
Version 1.9
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
engine
classes
Elgg
Notifications
Notification.php
Go to the documentation of this file.
1
<?php
9
class
Elgg_Notifications_Notification
{
11
protected
$from
;
12
14
protected
$to
;
15
17
public
$summary
;
18
20
public
$subject
;
21
23
public
$body
;
24
26
public
$language
;
27
29
public
$params
;
30
43
public
function
__construct
(
ElggEntity
$from
,
ElggEntity
$to
,
$language
,
$subject
,
$body
,
$summary
=
''
, array
$params
= array()) {
44
if
(!$from) {
45
throw
new
InvalidArgumentException(
'$from is not a valid ElggEntity'
);
46
}
47
if
(!$to) {
48
throw
new
InvalidArgumentException(
'$to is not a valid ElggEntity'
);
49
}
50
$this->from =
$from
;
51
$this->to =
$to
;
52
$this->
language
=
$language
;
53
$this->subject =
$subject
;
54
$this->
body
=
$body
;
55
$this->summary =
$summary
;
56
$this->params =
$params
;
57
}
58
64
public
function
getSender
() {
65
return
$this->from
;
66
}
67
73
public
function
getSenderGUID
() {
74
return
$this->from->guid;
75
}
76
82
public
function
getRecipient
() {
83
return
$this->to
;
84
}
85
91
public
function
getRecipientGUID
() {
92
return
$this->to->guid;
93
}
94
}
Elgg_Notifications_Notification\getSender
getSender()
Get the sender entity.
Definition:
Notification.php:64
body
body
Definition:
admin.php:36
Elgg_Notifications_Notification\getRecipient
getRecipient()
Get the recipient entity.
Definition:
Notification.php:82
Elgg_Notifications_Notification\$from
$from
Definition:
Notification.php:11
Elgg_Notifications_Notification\$summary
$summary
Definition:
Notification.php:17
Elgg_Notifications_Notification\$language
$language
Definition:
Notification.php:26
Elgg_Notifications_Notification\getRecipientGUID
getRecipientGUID()
Get the recipient entity guid.
Definition:
Notification.php:91
Elgg_Notifications_Notification\__construct
__construct(ElggEntity $from, ElggEntity $to, $language, $subject, $body, $summary= '', array $params=array())
Create a notification.
Definition:
Notification.php:43
Elgg_Notifications_Notification\$to
$to
Definition:
Notification.php:14
Elgg_Notifications_Notification\$subject
$subject
Definition:
Notification.php:20
Elgg_Notifications_Notification\$params
$params
Definition:
Notification.php:29
Elgg_Notifications_Notification
Definition:
Notification.php:9
Elgg_Notifications_Notification\getSenderGUID
getSenderGUID()
Get the sender entity guid.
Definition:
Notification.php:73
Elgg_Notifications_Notification\$body
$body
Definition:
Notification.php:23
ElggEntity
Definition:
ElggEntity.php:41
language
$CONFIG language
The current language for either the site or the user.
Definition:
config.php:108
Generated on Sat Dec 21 2024 00:00:35 for Elgg by
1.8.11