*/ class @@PLUGIN_COMPONENT_NAME@@ extends RemotePlugin { /** * Example function * * All public methods become automatically part of the API */ public function myExample($id) { // FIXME handle security in your method! $id = cleanID($id); if (auth_quickaclcheck($id) < AUTH_READ) { throw new AccessDeniedException('You are not allowed to read this file', 111); } return 'example'; } }