Overview

Packages

  • Auth
  • Core
  • Horde
    • Imsp
  • None
  • Notification

Classes

  • Horde
  • Horde_Config
  • Horde_Config_Form
  • Horde_Core_ActiveSync_Connector
  • Horde_Core_ActiveSync_Driver
  • Horde_Core_Ajax_Application
  • Horde_Core_Ajax_Imple
  • Horde_Core_Ajax_Imple_AutoCompleter
  • Horde_Core_Ajax_Imple_Geocoder_Geonames
  • Horde_Core_Ajax_Imple_SpellChecker
  • Horde_Core_Alarm_Handler_Notify
  • Horde_Core_Auth_Application
  • Horde_Core_Auth_Composite
  • Horde_Core_Auth_Ldap
  • Horde_Core_Auth_Msad
  • Horde_Core_Auth_Shibboleth
  • Horde_Core_Auth_Signup_Base
  • Horde_Core_Auth_Signup_Form
  • Horde_Core_Auth_Signup_Null
  • Horde_Core_Auth_Signup_Sql
  • Horde_Core_Auth_Signup_SqlObject
  • Horde_Core_Autoloader_Callback_Mime
  • Horde_Core_Autoloader_Callback_Nls
  • Horde_Core_Block
  • Horde_Core_Block_Collection
  • Horde_Core_Block_Layout
  • Horde_Core_Block_Layout_Manager
  • Horde_Core_Block_Layout_View
  • Horde_Core_Block_Upgrade
  • Horde_Core_Browser
  • Horde_Core_Bundle
  • Horde_Core_Cli
  • Horde_Core_Controller_NotFound
  • Horde_Core_Controller_RequestConfiguration
  • Horde_Core_Controller_RequestMapper
  • Horde_Core_Controller_SettingsFinder
  • Horde_Core_Db_Migration
  • Horde_Core_Factory_ActiveSyncBackend
  • Horde_Core_Factory_ActiveSyncServer
  • Horde_Core_Factory_ActiveSyncState
  • Horde_Core_Factory_Ajax
  • Horde_Core_Factory_Alarm
  • Horde_Core_Factory_Auth
  • Horde_Core_Factory_AuthSignup
  • Horde_Core_Factory_Base
  • Horde_Core_Factory_BlockCollection
  • Horde_Core_Factory_Browser
  • Horde_Core_Factory_Cache
  • Horde_Core_Factory_Crypt
  • Horde_Core_Factory_Data
  • Horde_Core_Factory_Db
  • Horde_Core_Factory_DbBase
  • Horde_Core_Factory_DbPear
  • Horde_Core_Factory_Dns
  • Horde_Core_Factory_Editor
  • Horde_Core_Factory_Facebook
  • Horde_Core_Factory_Group
  • Horde_Core_Factory_History
  • Horde_Core_Factory_HttpClient
  • Horde_Core_Factory_Identity
  • Horde_Core_Factory_Image
  • Horde_Core_Factory_Imple
  • Horde_Core_Factory_Imsp
  • Horde_Core_Factory_ImspAuth
  • Horde_Core_Factory_Injector
  • Horde_Core_Factory_KolabServer
  • Horde_Core_Factory_KolabSession
  • Horde_Core_Factory_KolabStorage
  • Horde_Core_Factory_Ldap
  • Horde_Core_Factory_Lock
  • Horde_Core_Factory_Logger
  • Horde_Core_Factory_LoginTasks
  • Horde_Core_Factory_Mail
  • Horde_Core_Factory_Mapper
  • Horde_Core_Factory_Matcher
  • Horde_Core_Factory_Memcache
  • Horde_Core_Factory_MimeViewer
  • Horde_Core_Factory_Notification
  • Horde_Core_Factory_Perms
  • Horde_Core_Factory_PermsCore
  • Horde_Core_Factory_Prefs
  • Horde_Core_Factory_Request
  • Horde_Core_Factory_Secret
  • Horde_Core_Factory_SessionHandler
  • Horde_Core_Factory_Share
  • Horde_Core_Factory_ShareBase
  • Horde_Core_Factory_Template
  • Horde_Core_Factory_TextFilter
  • Horde_Core_Factory_ThemesCache
  • Horde_Core_Factory_Token
  • Horde_Core_Factory_Tree
  • Horde_Core_Factory_Twitter
  • Horde_Core_Factory_UrlShortener
  • Horde_Core_Factory_Vfs
  • Horde_Core_Factory_View
  • Horde_Core_Factory_Weather
  • Horde_Core_Group_Ldap
  • Horde_Core_Log_Logger
  • Horde_Core_LoginTasks
  • Horde_Core_LoginTasks_Backend_Horde
  • Horde_Core_LoginTasks_SystemTask_Upgrade
  • Horde_Core_Mime_Viewer_Syntaxhighlighter
  • Horde_Core_Mime_Viewer_Vcard
  • Horde_Core_Notification_Event_Status
  • Horde_Core_Notification_Handler_Decorator_Hordelog
  • Horde_Core_Notification_Storage_Session
  • Horde_Core_Perms
  • Horde_Core_Perms_Ui
  • Horde_Core_Prefs_Cache_Session
  • Horde_Core_Prefs_Identity
  • Horde_Core_Prefs_Storage_Configuration
  • Horde_Core_Prefs_Storage_Hooks
  • Horde_Core_Prefs_Storage_Upgrade
  • Horde_Core_Prefs_Ui
  • Horde_Core_Prefs_Ui_Widgets
  • Horde_Core_Share_Driver
  • Horde_Core_Share_FactoryCallback
  • Horde_Core_Sidebar
  • Horde_Core_Text_Filter_Bbcode
  • Horde_Core_Text_Filter_Emails
  • Horde_Core_Text_Filter_Emoticons
  • Horde_Core_Text_Filter_Highlightquotes
  • Horde_Core_Translation
  • Horde_Core_Tree_Html
  • Horde_Core_Tree_Javascript
  • Horde_Core_Tree_Simplehtml
  • Horde_Core_Ui_FlagImage
  • Horde_Core_Ui_JsCalendar
  • Horde_Core_Ui_Language
  • Horde_Core_Ui_Layout
  • Horde_Core_Ui_ModalFormRenderer
  • Horde_Core_Ui_Pager
  • Horde_Core_Ui_Tabs
  • Horde_Core_Ui_TagCloud
  • Horde_Core_Ui_VarRenderer
  • Horde_Core_Ui_VarRenderer_Html
  • Horde_Core_Ui_VarRenderer_TablesetHtml
  • Horde_Core_Ui_Widget
  • Horde_ErrorHandler
  • Horde_Help
  • Horde_Menu
  • Horde_Registry
  • Horde_Registry_Api
  • Horde_Registry_Application
  • Horde_Registry_Caller
  • Horde_Registry_Nlsconfig
  • Horde_Script_Files
  • Horde_Session
  • Horde_Session_Null
  • Horde_Themes
  • Horde_Themes_Cache
  • Horde_Themes_Css
  • Horde_Themes_Element
  • Horde_Themes_Image
  • Horde_Themes_Sound

Exceptions

  • Horde_Exception_HookNotSet
  • Overview
  • Package
  • Class
  • Tree

Class Horde_Registry_Application

Default class for the Horde Application API.

Copyright 2009-2012 Horde LLC (http://www.horde.org/)

See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.

Package: Core
Category: Horde
Author: Michael Slusarz slusarz@horde.org
Located at Horde/Registry/Application.php
Methods summary
public
# appInitFailure( Horde_Exception $e )

Application-specific code to run if application auth fails. Called from Horde_Registry::appInit().

Application-specific code to run if application auth fails. Called from Horde_Registry::appInit().

Parameters

$e
The exception object.
final public
# init( )

Initialization. Does any necessary init needed to setup the full environment for the application.

Initialization. Does any necessary init needed to setup the full environment for the application.

Global constants defined:

[APPNAME]_TEMPLATES - (string) Location of template files.
public
# menu( Horde_Menu $menu )

Add additional items to the menu.

Add additional items to the menu.

Parameters

$menu
The menu object.
public
# logout( )

Tasks to perform at logout.

Tasks to perform at logout.

public
# removeUserData( string $user )

Removes user data.

Removes user data.

Parameters

$user
Name of user to remove data for.

Throws

Horde_Exception
public array
# perms( )

Returns a list of available permissions.

Returns a list of available permissions.

Returns

array
An array describing all available permissions.
public mixed
# hasPermission( string $permission, mixed $allowed, array $opts = array() )

Returns the specified permission for the given app permission.

Returns the specified permission for the given app permission.

Parameters

$permission
The permission to check.
$allowed
The allowed permissions.
$opts
Additional options ('value').

Returns

mixed
The value of the specified permission.
public
# setupNotification( Horde_Notification_Handler $handler )

Modifies the global notification handler.

Modifies the global notification handler.

Parameters

$handler
A notification handler.
public array
# listAlarms( integer $time, string $user = null )

Lists alarms for a given moment.

Lists alarms for a given moment.

Parameters

$time
The time to retrieve alarms for.
$user
<p>The user to retreive alarms for. All users if null.</p>

Returns

array
An array of UIDs
public array
# authLoginParams( )

Return login parameters used on the login page.

Return login parameters used on the login page.

Returns

array
See Horde_Core_Auth_Application#authLoginParams().
public
# authAuthenticate( string $userId, array $credentials )

Tries to authenticate with the server and create a session.

Tries to authenticate with the server and create a session.

Parameters

$userId
The username of the user.
$credentials
Credentials of the user.

Throws

Horde_Auth_Exception
public boolean
# authTransparent( Horde_Core_Auth_Application $auth_ob )

Tries to transparently authenticate with the server and create a session.

Tries to transparently authenticate with the server and create a session.

Parameters

$auth_ob
The authentication object.

Returns

boolean
Whether transparent login is supported.

Throws

Horde_Auth_Exception
public
# authAuthenticateCallback( )

Does necessary authentication tasks reliant on a full app environment.

Does necessary authentication tasks reliant on a full app environment.

Throws

Horde_Auth_Exception
public boolean
# authValidate( )

Validates an existing authentication.

Validates an existing authentication.

Returns

boolean
Whether the authentication is still valid.

Since

Horde_Core 1.4.0
public
# authAddUser( string $userId, array $credentials )

Adds a user defined by authentication credentials.

Adds a user defined by authentication credentials.

Parameters

$userId
The user ID to add.
$credentials
An array of login credentials.

Throws

Horde_Auth_Exception
public
# authUpdateUser( string $oldId, string $newId, array $credentials )

Update an existing user's credentials.

Update an existing user's credentials.

Parameters

$oldId
The old user ID.
$newId
The new user ID.
$credentials
The new login credentials.

Throws

Horde_Auth_Exception
public
# authRemoveUser( string $userId )

Deletes a user defined by authentication credentials.

Deletes a user defined by authentication credentials.

Parameters

$userId
The user ID to delete.

Throws

Horde_Auth_Exception
public boolean
# authUserExists( string $userId )

Does a user exist?

Does a user exist?

Parameters

$userId
The user ID to check.

Returns

boolean
True if the user exists.
public array
# authUserList( )

Lists all users in the system.

Lists all users in the system.

Returns

array
The array of user IDs.

Throws

Horde_Auth_Exception
public string
# authResetPassword( string $userId )

Reset a user's password.

Reset a user's password.

Parameters

$userId
The user id for which to reset the password.

Returns

string
The new password.

Throws

Horde_Auth_Exception
public
# prefsInit( Horde_Core_Prefs_Ui $ui )

Run on init when viewing prefs for an application.

Run on init when viewing prefs for an application.

Parameters

$ui
The UI object.
public
# prefsGroup( Horde_Core_Prefs_Ui $ui )

Determine active prefs when displaying a group. This is where all suppress/overrides should be defined.

Determine active prefs when displaying a group. This is where all suppress/overrides should be defined.

This function may be run multiple times in a single page - once on init and once after prefs are updated.

Parameters

$ui
The UI object.
public
# prefsCallback( Horde_Core_Prefs_Ui $ui )

Called when preferences are changed.

Called when preferences are changed.

Parameters

$ui
The UI object.
public string
# prefsSpecial( Horde_Core_Prefs_Ui $ui, string $item )

Generate code used to display a special preference.

Generate code used to display a special preference.

Parameters

$ui
The UI object.
$item
The preference name.

Returns

string
The HTML code to display on the preferences page.
public boolean
# prefsSpecialUpdate( Horde_Core_Prefs_Ui $ui, string $item )

Special preferences handling on update.

Special preferences handling on update.

Parameters

$ui
The UI object.
$item
The preference name.

Returns

boolean
True if preference was updated.
public array
# configSpecialValues( string $what )

Returns values for configuration settings.

Returns values for configuration settings.

Parameters

$what
The configuration setting to return.

Returns

array
The values for the requested configuration setting.
public
# sidebarCreate( Horde_Tree_Base $tree, string $parent = null, array $params = array() )

Add node(s) to the sidebar tree.

Add node(s) to the sidebar tree.

Parameters

$tree
Tree object.
$parent
The current parent element.
$params
Additional parameters.

Throws

Horde_Exception
public
# changeLanguage( )

Code to run if the language preference changes.

Code to run if the language preference changes.

Called only in applications the user is currently authenticated to in the current session.

Properties summary
public boolean $ajaxView

Does this application support an ajax view?

Does this application support an ajax view?

# false
public array $auth

The list of available authentication capabilities handled by this application. The full capability list can be found in Horde_Core_Auth_Application.

The list of available authentication capabilities handled by this application. The full capability list can be found in Horde_Core_Auth_Application.

# array()
public array $initParams

The init params used.

The init params used.

# array()
public boolean $mobileView

Does this application support a mobile view?

Does this application support a mobile view?

# false
public string $version

The application's version.

The application's version.

# 'unknown'
API documentation generated by ApiGen