aboutsummaryrefslogtreecommitdiff
path: root/mod/developers/actions/developers/inspect.php
blob: 6fd9e90f94ea96ec5e8f0b695198bc949592e0d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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';
}