aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/entities.php
diff options
context:
space:
mode:
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-13 17:17:12 +0000
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-13 17:17:12 +0000
commit6569e7c79eb9d674d053390bac357e063a93666b (patch)
treea3ed4a201f0fce4e318a1d4b539ebb2010dafaf4 /engine/lib/entities.php
parent0cc34b975d829e2fd7da8096ac09094b7b230424 (diff)
downloadelgg-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.php14
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)
{