From: brettp Date: Mon, 29 Nov 2010 22:52:58 +0000 (+0000) Subject: Refs #2668: Deprecated ElggEntity::setContainer() for setContainerGUID() X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=1b4f39fcced81c3dffd62d5c56e77d1c4cee9c1e;p=lorea%2Felgg.git Refs #2668: Deprecated ElggEntity::setContainer() for setContainerGUID() git-svn-id: http://code.elgg.org/elgg/trunk@7474 36083f99-b078-4883-b0ff-0f9b5a30f544 --- 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);