diff options
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) { |