aboutsummaryrefslogtreecommitdiff
path: root/mod/developers/actions
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-07-02 11:36:53 -0400
committercash <cash.costello@gmail.com>2011-07-02 11:36:53 -0400
commitae5ad0a65508725871159ffb6a068fcb2084aad7 (patch)
tree60d01e69b849e96bff64f92189eb79956fe2fa32 /mod/developers/actions
parentf5f3f205e97c2a3219897dd14de7d57659ce1181 (diff)
downloadelgg-ae5ad0a65508725871159ffb6a068fcb2084aad7.tar.gz
elgg-ae5ad0a65508725871159ffb6a068fcb2084aad7.tar.bz2
added the inspect tool to developers tool plugin
Diffstat (limited to 'mod/developers/actions')
-rw-r--r--mod/developers/actions/developers/inspect.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/mod/developers/actions/developers/inspect.php b/mod/developers/actions/developers/inspect.php
new file mode 100644
index 000000000..6fd9e90f9
--- /dev/null
+++ b/mod/developers/actions/developers/inspect.php
@@ -0,0 +1,16 @@
+<?php
+/**
+ * Ajax endpoint for inspection
+ *
+ */
+
+$inspect_type = get_input('inspect_type');
+$method = 'get' . str_replace(' ', '', $inspect_type);
+
+$inspector = new ElggInspector();
+if ($inspector && method_exists($inspector, $method)) {
+ $tree = $inspector->$method();
+ echo elgg_view('developers/tree', array('tree' => $tree));
+} else {
+ echo 'error';
+}