diff options
Diffstat (limited to 'mod/developers/actions')
-rw-r--r-- | mod/developers/actions/developers/inspect.php | 16 |
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'; +} |