From 09d3b786dedc3b4a4e2eeda6e47488eda199b794 Mon Sep 17 00:00:00 2001 From: icewing Date: Tue, 11 Mar 2008 12:46:18 +0000 Subject: Marcus Povey * Added api to list apis git-svn-id: https://code.elgg.org/elgg/trunk@161 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/api.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'engine') diff --git a/engine/lib/api.php b/engine/lib/api.php index 3f97b0c8c..aedc6fd4e 100644 --- a/engine/lib/api.php +++ b/engine/lib/api.php @@ -600,10 +600,10 @@ echo get_serialised_result($result, $format); } + // Error handler functions //////////////////////////////////////////////////////////////// - /** Define a global array of errors */ $ERRORS = array(); @@ -665,5 +665,18 @@ get_input('format','php') // Attempt to get the requested format if passed. ); } + + // System functions /////////////////////////////////////////////////////////////////////// + + /** + * Simple api to return a list of all api's installed on the system. + */ + function list_all_apis() + { + global $METHODS; + return $METHODS; + } + // Expose some system api functions + expose_function("system.api.list", "list_all_apis", NULL, false); ?> \ No newline at end of file -- cgit v1.2.3