]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Refs #2668: Deprecated ElggEntity::setContainer() for setContainerGUID()
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 29 Nov 2010 22:52:58 +0000 (22:52 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 29 Nov 2010 22:52:58 +0000 (22:52 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@7474 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/classes/ElggEntity.php

index 2d52ff6d8887a594abf141b999ef39d36dac4f14..fb80673dc0162e24e7f0eba670a49c188c11158b 100644 (file)
@@ -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);