============================== Global constants and objects ============================== **This information is valid for Horde 4 only. See `Doc/Dev/GlobalsH3`_ for Horde 3 or `Doc/Dev/Globals`_ for Horde 5 and later.** .. _`Doc/Dev/GlobalsH3`: https://wiki.horde.org/Doc/Dev/GlobalsH3?referrer=Doc%2FDev%2FGlobalsH4 .. _`Doc/Dev/Globals`: https://wiki.horde.org/Doc/Dev/Globals?referrer=Doc%2FDev%2FGlobalsH4 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 (Horde_Browser object) | +=================+===========================================================================================================+ |**$cli** |CLI object (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 (Horde_Injector object)| +-----------------+-----------------------------------------------------------------------------------------------------------+ |**$language** |The user's preferred language | +-----------------+-----------------------------------------------------------------------------------------------------------+ |**$notification**|The notification handler (Horde_Notification object) | +-----------------+-----------------------------------------------------------------------------------------------------------+ |**$prefs** |The user preferences (Horde_Prefs object) | +-----------------+-----------------------------------------------------------------------------------------------------------+ |**$registry** |The Horde `Registry`_ (Horde_Registry object) | +-----------------+-----------------------------------------------------------------------------------------------------------+ .. _`Registry`: https://wiki.horde.org/Doc/Dev/Registry?referrer=Doc%2FDev%2FGlobalsH4