aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-14 11:15:05 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-14 11:15:05 +0000
commit3ad2b9575fa8aec0b5fb17e6de6b76a95f7b17c5 (patch)
tree3612772f773b42edffa3c1e874904b88a835c197 /engine/lib
parentdc1b1a48749f441b96cdb7ca67ab35dda0ba895e (diff)
downloadelgg-3ad2b9575fa8aec0b5fb17e6de6b76a95f7b17c5.tar.gz
elgg-3ad2b9575fa8aec0b5fb17e6de6b76a95f7b17c5.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* Fixed ommission: setPublished git-svn-id: https://code.elgg.org/elgg/trunk@643 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/opendd.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/engine/lib/opendd.php b/engine/lib/opendd.php
index 6d196f8e9..2c87f3265 100644
--- a/engine/lib/opendd.php
+++ b/engine/lib/opendd.php
@@ -6,7 +6,7 @@
* @subpackage Core
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
* @author Marcus Povey
- * @version 0.1
+ * @version 0.2
* @copyright Curverider Ltd 2008
* @link http://elgg.org/
*/
@@ -147,7 +147,16 @@
}
public function setBody($value) { $this->body = $value; }
public function getBody() { return $this->body; }
-
+
+ /**
+ * Set the published time.
+ *
+ * @param int $time Unix timestamp
+ */
+ public function setPublished($time)
+ {
+ $this->attributes['published'] = date("r", $time);
+ }
/**
* For serialisation, implement to return a string name of the tag eg "header" or "metadata".
* @return string