aboutsummaryrefslogtreecommitdiff
path: root/engine/classes
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-21 16:35:01 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-21 16:35:01 +0000
commitee57dbedb27de9574dad62ea788e6d9ece76a0d6 (patch)
treea5b0b10dfdadc8bd5ef820f06f15cc2f3ac2c2f1 /engine/classes
parent72847ed999de5c3ee228ffe70a2879bb78b05247 (diff)
downloadelgg-ee57dbedb27de9574dad62ea788e6d9ece76a0d6.tar.gz
elgg-ee57dbedb27de9574dad62ea788e6d9ece76a0d6.tar.bz2
Added documentation of magic properties to ElggEntity
git-svn-id: http://code.elgg.org/elgg/trunk@8805 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/classes')
-rw-r--r--engine/classes/ElggEntity.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/engine/classes/ElggEntity.php b/engine/classes/ElggEntity.php
index cf58bd435..314810894 100644
--- a/engine/classes/ElggEntity.php
+++ b/engine/classes/ElggEntity.php
@@ -25,6 +25,16 @@
* @package Elgg.Core
* @subpackage DataModel.Entities
* @link http://docs.elgg.org/DataModel/ElggEntity
+ *
+ * @property string $type object, user, group, or site (read-only after save)
+ * @property string $subtype Further clarifies the nature of the entity (read-only after save)
+ * @property int $guid The unique identifier for this entity (read only)
+ * @property int $owner_guid The GUID of the creator of this entity
+ * @property int $container_guid The GUID of the entity containing this entity
+ * @property int $site_guid The GUID of the website this entity is associated with
+ * @property int $access_id Specifies the visibility level of this entity
+ * @property int $time_created A UNIX timestamp of when the entity was created (read-only, set on first save)
+ * @property int $time_updated A UNIX timestamp of when the entity was last updated (automatically updated on save)
*/
abstract class ElggEntity extends ElggData implements
Notable, // Calendar interface
@@ -239,8 +249,7 @@ abstract class ElggEntity extends ElggData implements
if ((int) ($this->guid) > 0) {
$md = elgg_get_metadata(array(
'guid' => $this->getGUID(),
- 'metadata_name' => $name,
- 'limit' => 0
+ 'metadata_name' => $name
));
} else {
if (isset($this->temp_metadata[$name])) {