aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-11-05 18:40:19 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-11-05 18:40:19 +0000
commit16bfca18712e96e9972946c2e7b633690899738e (patch)
tree21308b380c4181ab401f1b4b8503c197f88c7ba2 /engine/lib
parent3fd46c29c1f0cc84b413242279ad008347609fcb (diff)
downloadelgg-16bfca18712e96e9972946c2e7b633690899738e.tar.gz
elgg-16bfca18712e96e9972946c2e7b633690899738e.tar.bz2
Minor extension to river
git-svn-id: https://code.elgg.org/elgg/trunk@2408 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/river.php15
1 files changed, 13 insertions, 2 deletions
diff --git a/engine/lib/river.php b/engine/lib/river.php
index e6a6e12dc..0b81e71aa 100644
--- a/engine/lib/river.php
+++ b/engine/lib/river.php
@@ -40,6 +40,11 @@
private $subject;
/**
+ * When the event occured.
+ */
+ private $timestamp;
+
+ /**
* Create the statement.
*
* @param ElggUser $subject The subject (the user who created this)
@@ -47,12 +52,14 @@
* @param mixed $object The object, either an ElggEntity or an associated array
* ('subject' => ElggEntity, 'relationship' => relationship, 'object' => ElggEntity) or
* ('subject' => ElggEntity, 'object' => ElggEntity)
+ * @param int $timestamp The timestamp
*/
- public function __construct(ElggUser $subject, $event, $object)
+ public function __construct(ElggUser $subject, $event, $object, $timestamp)
{
$this->setSubject($subject);
$this->setEvent($event);
$this->setObject($object);
+ $this->setTimestamp($timestamp);
}
/**
@@ -142,6 +149,10 @@
* @return string
*/
public function getEvent() { return $this->log_event; }
+
+ public function setTimestamp($timestamp) { $this->timestamp = $timestamp; }
+
+ public function getTimestamp() { return $this->timestamp; }
}
/**
@@ -273,7 +284,7 @@
}
// Put together a river statement
- return new ElggRiverStatement($by_user_obj, $event, $statement_object);
+ return new ElggRiverStatement($by_user_obj, $event, $statement_object, $log->time_created);
}
return false;