6.0.0-beta13
4/11/26
  • Global constants and objects

##red|This information is valid for Horde 5 and later only. See ((Doc/Dev/GlobalsH4)) for Horde 4 or ((Doc/Dev/GlobalsH3)) for Horde 3.##

Horde applications work with a standard set of constants:

|| HORDE_BASE || The filesystem location of Horde ||
|| [APP]_BASE || The filesystem location of the application's base ([APP] = name of current application) ||
|| [APP]_TEMPLATES || The filesystem location of the application's template files ([APP] = name of current application) ||

Applications work with a number of standard global variables and object:

|| $browser || Information on the client browser ([http://dev.horde.org/api/master/lib/Browser/classes/Horde_Browser.html Horde_Browser] object) ||
|| $cli || CLI object ([http://dev.horde.org/api/master/lib/Cli/classes/Horde_Cli.html Horde_Cli] object; only if running in CLI mode) ||
|| $conf || The configuration hash ||
|| $injector || The injector instance; used to inject dependencies into various framework libraries ([http://dev.horde.org/api/master/lib/Injector/classes/Horde_Injector.html Horde_Injector] object) ||
|| $language || The user's preferred language ||
|| $notification || The notification handler ([http://dev.horde.org/api/master/lib/Notification/classes/Horde_Notification_Handler.html Horde_Notification_Handler] object) ||
|| $page_output || The page output helper object ([http://dev.horde.org/api/master/lib/Core/classes/Horde_PageOutput.html Horde_PageOutput] object) ||
|| $prefs || The user preferences ([http://dev.horde.org/api/master/lib/Prefs/classes/Horde_Prefs.html Horde_Prefs] object) ||
|| $registry || The Horde ((Doc/Dev/Registry|Registry)) ([http://dev.horde.org/api/master/lib/Core/classes/Horde_Registry.html Horde_Registry] object) ||