$auth
$auth : array
The list of available authentication capabilities handled by this application.
The full capability list can be found in Horde_Core_Auth_Application.
Default class for the Horde Application API.
appInitFailure(\Horde_Exception_PushApp $e)
Application-specific code to run if application auth fails.
Called from Horde_Registry::appInit().
\Horde_Exception_PushApp | $e | The exception object. |
menu(\Horde_Menu $menu)
Add additional items to the menu.
\Horde_Menu | $menu | The menu object. |
hasPermission(string $permission, mixed $allowed, array $opts = array()) : mixed
Returns the specified permission for the given app permission.
string | $permission | The permission to check. |
mixed | $allowed | The allowed permissions. |
array | $opts | Additional options ('value'). |
The value of the specified permission.
download(\Horde_Variables $vars) : array
Prepare data to deliver to browser for download.
IMPORTANT: Applications providing this method MUST implement authentication/permission checking themselves!
\Horde_Variables | $vars | Form variables provided to download script. The filename is available in the 'filename' parameter. |
Download data:
authAuthenticate(string $userId, array $credentials)
Tries to authenticate with the server and create a session.
Any session variables you want added should be set by calling _addSessVars() internally within this method.
string | $userId | The username of the user. |
array | $credentials | Credentials of the user. |
authTransparent(\Horde_Core_Auth_Application $auth_ob) : boolean
Tries to transparently authenticate with the server and create a session.
Any session variables you want added should be set by calling _addSessVars() internally within this method.
\Horde_Core_Auth_Application | $auth_ob | The authentication object. |
Whether transparent login is supported.
topbarCreate(\Horde_Tree_Renderer_Base $tree, string $parent = null, array $params = array())
Add node(s) to the topbar tree.
\Horde_Tree_Renderer_Base | $tree | Tree object. |
string | $parent | The current parent element. |
array | $params | Additional parameters. |
_bootstrap()
Bootstrap code for an application. This is run when the application object is being created. The full Horde environment is not available in this method, and the user may not yet be authenticated. Only tasks necessary to setup the base application environment should be done here.