Elgg
Version 1.11
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
2
namespace
Elgg\Notifications
;
3
11
class
Notification
{
13
protected
$from
;
14
16
protected
$to
;
17
19
public
$summary
;
20
22
public
$subject
;
23
25
public
$body
;
26
28
public
$language
;
29
31
public
$params
;
32
45
public
function
__construct
(\
ElggEntity
$from
, \
ElggEntity
$to
,
$language
,
$subject
,
$body
,
$summary
=
''
, array
$params
= array()) {
46
if
(!$from) {
47
throw
new \InvalidArgumentException(
'$from is not a valid \ElggEntity'
);
48
}
49
if
(!$to) {
50
throw
new \InvalidArgumentException(
'$to is not a valid \ElggEntity'
);
51
}
52
$this->from =
$from
;
53
$this->to =
$to
;
54
$this->
language
=
$language
;
55
$this->subject =
$subject
;
56
$this->
body
=
$body
;
57
$this->summary =
$summary
;
58
$this->params =
$params
;
59
}
60
66
public
function
getSender
() {
67
return
$this->from
;
68
}
69
75
public
function
getSenderGUID
() {
76
return
$this->from->guid;
77
}
78
84
public
function
getRecipient
() {
85
return
$this->to
;
86
}
87
93
public
function
getRecipientGUID
() {
94
return
$this->to->guid;
95
}
96
}
97
107
class
Elgg_Notifications_Notification
extends
\Elgg\Notifications\Notification
{}
Elgg\Notifications\Notification\getRecipient
getRecipient()
Get the recipient entity.
Definition:
Notification.php:84
Elgg\Notifications\Elgg_Notifications_Notification
Definition:
Notification.php:107
body
body
Definition:
admin.php:36
ElggEntity
Elgg\Notifications\Notification
Definition:
Notification.php:11
Elgg\Notifications\Notification\$body
$body
Definition:
Notification.php:25
Elgg\Notifications\Notification\$from
$from
Definition:
Notification.php:13
Elgg\Notifications\Notification\getRecipientGUID
getRecipientGUID()
Get the recipient entity guid.
Definition:
Notification.php:93
Elgg\Notifications\Notification\getSender
getSender()
Get the sender entity.
Definition:
Notification.php:66
Elgg\Notifications\Notification\$language
$language
Definition:
Notification.php:28
Elgg\Notifications\Notification\__construct
__construct(\ElggEntity $from,\ElggEntity $to, $language, $subject, $body, $summary= '', array $params=array())
Create a notification.
Definition:
Notification.php:45
Elgg\Notifications
Definition:
Event.php:2
Elgg\Notifications\Notification\$summary
$summary
Definition:
Notification.php:19
Elgg\Notifications\Notification\getSenderGUID
getSenderGUID()
Get the sender entity guid.
Definition:
Notification.php:75
Elgg\Notifications\Notification\$subject
$subject
Definition:
Notification.php:22
language
$CONFIG language
The current language for either the site or the user.
Definition:
config.php:108
Elgg\Notifications\Notification\$params
$params
Definition:
Notification.php:31
Elgg\Notifications\Notification\$to
$to
Definition:
Notification.php:16
Generated on Sat Oct 5 2024 00:00:47 for Elgg by
1.8.11