Elgg
Version master
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
engine
classes
Elgg
River
UpdateLastActionHandler.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Elgg\River
;
4
10
class
UpdateLastActionHandler
{
11
19
public
function
__invoke
(\
Elgg
\
Event
$event) {
20
$item
= $event->getObject();
21
if
(!
$item
instanceof \
ElggRiverItem
) {
22
return
;
23
}
24
25
$object
=
$item
->getObjectEntity();
26
if
(
$object
instanceof \
ElggEntity
) {
27
$object
->updateLastAction(
$item
->getTimePosted());
28
}
29
30
$target
=
$item
->getTargetEntity();
31
if
(
$target
instanceof \ElggEntity) {
32
$target
->updateLastAction(
$item
->getTimePosted());
33
}
34
}
35
}
$item
if(!$items) $item
Definition:
delete.php:13
Elgg\River\UpdateLastActionHandler
Updates river item last action.
Definition:
UpdateLastActionHandler.php:10
$target
$target
Definition:
create.php:17
Elgg
Definition:
ActionsService.php:3
Elgg\River
Definition:
UpdateLastActionHandler.php:3
$object
if($email instanceof\Elgg\Email) $object
Definition:
body.php:24
ElggEntity
Definition:
ElggEntity.php:52
Elgg\River\UpdateLastActionHandler\__invoke
__invoke(\Elgg\Event $event)
Updates the last action of the object of an river item.
Definition:
UpdateLastActionHandler.php:19
ElggRiverItem
Definition:
ElggRiverItem.php:18
Elgg\Event
Models an event passed to event handlers.
Definition:
Event.php:11
Generated on Mon Dec 30 2024 00:02:51 for Elgg by
1.8.11