aboutsummaryrefslogtreecommitdiff
path: root/engine/classes/ElggEntity.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-29 22:52:58 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-29 22:52:58 +0000
commit1b4f39fcced81c3dffd62d5c56e77d1c4cee9c1e (patch)
treeea9805253f3cfb72543a7e849f7f102e96223468 /engine/classes/ElggEntity.php
parent9f2b0c180a49395ef449a77c27db098353fb5748 (diff)
downloadelgg-1b4f39fcced81c3dffd62d5c56e77d1c4cee9c1e.tar.gz
elgg-1b4f39fcced81c3dffd62d5c56e77d1c4cee9c1e.tar.bz2
Refs #2668: Deprecated ElggEntity::setContainer() for setContainerGUID()
git-svn-id: http://code.elgg.org/elgg/trunk@7474 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/classes/ElggEntity.php')
-rw-r--r--engine/classes/ElggEntity.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/engine/classes/ElggEntity.php b/engine/classes/ElggEntity.php
index 2d52ff6d8..fb80673dc 100644
--- a/engine/classes/ElggEntity.php
+++ b/engine/classes/ElggEntity.php
@@ -726,7 +726,22 @@ abstract class ElggEntity extends ElggData implements
*
* @return bool
*/
+ public function setContainerGUID($container_guid) {
+ $container_guid = (int)$container_guid;
+
+ return $this->set('container_guid', $container_guid);
+ }
+
+ /**
+ * Set the container for this object.
+ *
+ * @param int $container_guid The ID of the container.
+ *
+ * @return bool
+ * @deprecated 1.8 use setContainerGUID()
+ */
public function setContainer($container_guid) {
+ elgg_deprecated_notice("ElggObject::setContainer deprecated for ElggEntity::setContainerGUID", 1.8);
$container_guid = (int)$container_guid;
return $this->set('container_guid', $container_guid);