From 1b4f39fcced81c3dffd62d5c56e77d1c4cee9c1e Mon Sep 17 00:00:00 2001 From: brettp Date: Mon, 29 Nov 2010 22:52:58 +0000 Subject: Refs #2668: Deprecated ElggEntity::setContainer() for setContainerGUID() git-svn-id: http://code.elgg.org/elgg/trunk@7474 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/classes/ElggEntity.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'engine/classes/ElggEntity.php') 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); -- cgit v1.2.3