aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/entities.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-13 22:59:36 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-13 22:59:36 +0000
commit4be522d7544b1aca0e08828bee42a9be7345bf9c (patch)
treebb1c2ce1f7f177b2de7bb9615c4e87ea58516945 /engine/lib/entities.php
parentc1c2563fc1cd451afaf735350eb1c576740be2f4 (diff)
downloadelgg-4be522d7544b1aca0e08828bee42a9be7345bf9c.tar.gz
elgg-4be522d7544b1aca0e08828bee42a9be7345bf9c.tar.bz2
Refs #2907. DRY'd up and abstracted out a lot of metadata / annotation functions so I can implement #1115 with a clean conscious.
git-svn-id: http://code.elgg.org/elgg/trunk@8207 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/entities.php')
-rw-r--r--engine/lib/entities.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php
index 781a744ad..4f58e96a8 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -1345,6 +1345,17 @@ function disable_entity($guid, $reason = "", $recursive = true) {
}
}
+ // disable annotations
+ // Now delete the entity itself
+// $entity->clearMetadata();
+// $entity->clearAnnotations();
+// $entity->clearRelationships();
+//
+// $res = delete_data("DELETE from {$CONFIG->dbprefix}entities where guid={$guid}");
+// if ($res) {
+// $sub_table = "";
+// }
+
$__RECURSIVE_DELETE_TOKEN = null;
}