diff options
author | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-13 17:17:12 +0000 |
---|---|---|
committer | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-13 17:17:12 +0000 |
commit | 6569e7c79eb9d674d053390bac357e063a93666b (patch) | |
tree | a3ed4a201f0fce4e318a1d4b539ebb2010dafaf4 /engine/lib/entities.php | |
parent | 0cc34b975d829e2fd7da8096ac09094b7b230424 (diff) | |
download | elgg-6569e7c79eb9d674d053390bac357e063a93666b.tar.gz elgg-6569e7c79eb9d674d053390bac357e063a93666b.tar.bz2 |
getAnnotations now has an extra param $order
git-svn-id: https://code.elgg.org/elgg/trunk@917 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/entities.php')
-rw-r--r-- | engine/lib/entities.php | 14 |
1 files changed, 7 insertions, 7 deletions
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) { |