diff options
author | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-03-11 12:46:18 +0000 |
---|---|---|
committer | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-03-11 12:46:18 +0000 |
commit | 09d3b786dedc3b4a4e2eeda6e47488eda199b794 (patch) | |
tree | 79214046dcc1cd820ec2430278f1d71833091549 /engine/lib | |
parent | 7b83d607a33cd2c258da20ea59dc9777f7cf50eb (diff) | |
download | elgg-09d3b786dedc3b4a4e2eeda6e47488eda199b794.tar.gz elgg-09d3b786dedc3b4a4e2eeda6e47488eda199b794.tar.bz2 |
Marcus Povey <marcus@dushka.co.uk>
* Added api to list apis
git-svn-id: https://code.elgg.org/elgg/trunk@161 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r-- | engine/lib/api.php | 15 |
1 files changed, 14 insertions, 1 deletions
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 |