78 if (isset($this->params[
'url'])) {
79 $this->
url = $this->params[
'url'];
98 return $this->from->guid;
116 return $this->to->guid;
124 $obj = new \stdClass();
125 $vars = get_object_vars($this);
127 unset(
$vars[
'params']);
128 unset(
$vars[
'sender']);
129 unset(
$vars[
'recipient']);
130 unset(
$vars[
'subscriptions']);
131 unset(
$vars[
'action']);
132 unset(
$vars[
'object']);
134 if (is_object(
$value) && is_callable([
$value,
'toObject'])) {
135 $obj->$key =
$value->toObject();
getRecipient()
Get the recipient entity.
toObject()
Export notification.
const ORIGIN_SUBSCRIPTIONS
__construct(\ElggEntity $from,\ElggEntity $to, $language, $subject, $body, $summary= '', array $params=[])
Create a notification.
getRecipientGUID()
Get the recipient entity guid.
getSender()
Get the sender entity.
if($container instanceof ElggGroup &&$container->guid!=elgg_get_page_owner_guid()) $key
$CONFIG url
The full URL where Elgg is installed.
getSenderGUID()
Get the sender entity guid.