aboutsummaryrefslogtreecommitdiff
path: root/engine/classes/ElggEntity.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-20 13:42:32 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-20 13:42:32 +0000
commit0e1cb51859981d0c9d1f491e4ea59316ddaf7531 (patch)
tree8150fb29d13748df639dce36b8ec71e499e774e7 /engine/classes/ElggEntity.php
parent944b8f89b8dd87bf444503d0815aa69ed19f599d (diff)
downloadelgg-0e1cb51859981d0c9d1f491e4ea59316ddaf7531.tar.gz
elgg-0e1cb51859981d0c9d1f491e4ea59316ddaf7531.tar.bz2
Refs #2668 adds getContainerGUID()
git-svn-id: http://code.elgg.org/elgg/trunk@7379 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/classes/ElggEntity.php')
-rw-r--r--engine/classes/ElggEntity.php18
1 files changed, 15 insertions, 3 deletions
diff --git a/engine/classes/ElggEntity.php b/engine/classes/ElggEntity.php
index de57d7a07..c6ab51148 100644
--- a/engine/classes/ElggEntity.php
+++ b/engine/classes/ElggEntity.php
@@ -747,21 +747,33 @@ abstract class ElggEntity extends ElggData implements
}
/**
- * Returns the container GUID of this object.
+ * Gets the container GUID for this entity.
*
* @return int
*/
+ public function getContainerGUID() {
+ return $this->get('container_guid');
+ }
+
+ /**
+ * Gets the container GUID for this entity.
+ *
+ * @return int
+ * @deprecated 1.8 Use getContainerGUID()
+ */
public function getContainer() {
+ elgg_deprecated_notice("ElggObject::getContainer deprecated for ElggEntity::getContainerGUID", 1.8);
return $this->get('container_guid');
}
/**
- * Returns the container entity for this object.
+ * Get the container entity for this object.
*
* @return ElggEntity
+ * @since 1.8.0
*/
public function getContainerEntity() {
- return get_entity($this->getContainer());
+ return get_entity($this->getContainerGUID());
}
/**