diff options
Diffstat (limited to 'engine')
-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 |