function registerActions() { $registry = Registry::getInstance(); $app = $registry->get('application'); $app->registerAction('POST', __CLASS__, 'login'); $app->registerAction('POST', __CLASS__, 'add'); $app->registerAction('POST', __CLASS__, 'edit'); $app->registerAction('POST', __CLASS__, 'delete'); $app->registerAction('GET', __CLASS__, 'logout'); } // end of 'registerActions()'