From 6569e7c79eb9d674d053390bac357e063a93666b Mon Sep 17 00:00:00 2001 From: dave Date: Fri, 13 Jun 2008 17:17:12 +0000 Subject: getAnnotations now has an extra param $order git-svn-id: https://code.elgg.org/elgg/trunk@917 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/entities.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'engine/lib/entities.php') diff --git a/engine/lib/entities.php b/engine/lib/entities.php index 7266ed723..a9c1c19aa 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -236,9 +236,9 @@ * @param int $limit * @param int $offset */ - function getAnnotations($name, $limit = 50, $offset = 0) + function getAnnotations($name, $limit = 50, $offset = 0, $order="asc")) { - return get_annotations($this->getGUID(), "", "", $name, "", 0, $limit, $offset); + return get_annotations($this->getGUID(), "", "", $name, "", 0, $limit, $offset, $order); } /** @@ -383,10 +383,10 @@ */ public function getTimeCreated() { return $this->get('time_created'); } - /** - * Gets the UNIX epoch time that this entity was last updated - * - * @return int UNIX epoch time + /** + * Gets the UNIX epoch time that this entity was last updated + * + * @return int UNIX epoch time */ public function getTimeUpdated() { return $this->get('time_updated'); } @@ -408,7 +408,7 @@ * Save generic attributes to the entities table. */ public function save() - { + { $guid = (int) $this->guid; if ($guid > 0) { -- cgit v1.2.3