aboutsummaryrefslogtreecommitdiff
path: root/engine/classes/ElggObject.php
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-03 04:27:53 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-03 04:27:53 +0000
commitcea7ae1901061b65a62127f525d4361a44438332 (patch)
tree8b08c49c53aec818dbeb987b98a92c7c8a245a19 /engine/classes/ElggObject.php
parent620a8adc6da005d842116a38700f79a82de7bdcc (diff)
downloadelgg-cea7ae1901061b65a62127f525d4361a44438332.tar.gz
elgg-cea7ae1901061b65a62127f525d4361a44438332.tar.bz2
Fixes #2134: Moved getContainerEntity() method to ElggEntity
git-svn-id: http://code.elgg.org/elgg/trunk@7219 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/classes/ElggObject.php')
-rw-r--r--engine/classes/ElggObject.php37
1 files changed, 0 insertions, 37 deletions
diff --git a/engine/classes/ElggObject.php b/engine/classes/ElggObject.php
index b8e733903..b721c479c 100644
--- a/engine/classes/ElggObject.php
+++ b/engine/classes/ElggObject.php
@@ -179,43 +179,6 @@ class ElggObject extends ElggEntity {
return add_site_object($this->getGUID(), $site_guid);
}
- /**
- * Set the container for this object.
- *
- * @param int $container_guid The ID of the container.
- *
- * @return bool
- */
- function setContainer($container_guid) {
- $container_guid = (int)$container_guid;
-
- return $this->set('container_guid', $container_guid);
- }
-
- /**
- * Returns the container GUID of this object.
- *
- * @return int
- */
- function getContainer() {
- return $this->get('container_guid');
- }
-
- /**
- * Returns the contain entity for this object.
- *
- * @return mixed ElggGroup object or false.
- */
- function getContainerEntity() {
- $result = get_entity($this->getContainer());
-
- if (($result) && ($result instanceof ElggGroup)) {
- return $result;
- }
-
- return false;
- }
-
/*
* EXPORTABLE INTERFACE
*/