/**
* 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 function init()
{
if (!$this->_initDone) {
$this->_initDone = true;
+
+ $appname = Horde_String::upper($GLOBALS['registry']->getApp());
+ if (!defined($appname . '_TEMPLATES')) {
+ define($appname . '_TEMPLATES', $GLOBALS['registry']->get('templates'));
+ }
+
$this->_init();
}
}
* $gollem_be - A link to the current backend parameters in the session
* $gollem_vfs - A link to the current VFS object for the active backend
* $notification - Notification object
- *
- * Global constants defined:
- * GOLLEM_TEMPLATES - (string) Location of template files.
*/
protected function _init()
{
- if (!defined('GOLLEM_TEMPLATES')) {
- define('GOLLEM_TEMPLATES', $GLOBALS['registry']->get('templates'));
- }
-
// Notification system.
$GLOBALS['notification'] = Horde_Notification::singleton();
$GLOBALS['notification']->attach('status');
*
* Global variables defined:
* $notification - Notification object
- *
- * Global constants defined:
- * HORDE_TEMPLATES - (string) Location of template files.
*/
protected function _init()
{
- if (!defined('HORDE_TEMPLATES')) {
- define('HORDE_TEMPLATES', $GLOBALS['registry']->get('templates'));
- }
-
$GLOBALS['notification'] = Horde_Notification::singleton();
$GLOBALS['notification']->attach('status');
}
protected function _init()
{
- if (!defined('HYLAX_TEMPLATES')) {
- define('HYLAX_TEMPLATES', $GLOBALS['registry']->get('templates'));
- }
-
/* Notification system. */
$notification = Horde_Notification::singleton();
$notification->attach('status');
* $imp_search - An IMP_Search object
* $notification - Notification object
*
- * Global constants defined:
- * IMP_TEMPLATES - (string) Location of template files.
- *
* When calling Horde_Registry::appInit(), the following parameters are
* also supported:
* <pre>
Horde_Nls::setTimeZone();
}
- if (!defined('IMP_TEMPLATES')) {
- $registry = Horde_Registry::singleton();
- define('IMP_TEMPLATES', $registry->get('templates'));
- }
-
// Initialize global $imp_imap object.
if (!isset($GLOBALS['imp_imap'])) {
$GLOBALS['imp_imap'] = new IMP_Imap();
* $kronolith_shares - TODO
* $notification - Notification object
*
- * Global constants defined:
- * KRONOLITH_TEMPLATES - (string) Location of template files.
- *
* When calling Horde_Registry::appInit(), the following parameters are
* also supported:
* <pre>
Horde_Auth::setAuth($this->initParams['user'], array());
}
- if (!defined('KRONOLITH_TEMPLATES')) {
- define('KRONOLITH_TEMPLATES', $GLOBALS['registry']->get('templates'));
- }
-
/* For now, autoloading the Content_* classes depend on there being a
* registry entry for the 'content' application that contains at least
* the fileroot entry. */
*
* Global variables defined:
* $notification - Notification object
- *
- * Global constants defined:
- * SKELETON_TEMPLATES - (string) Location of template files.
*/
protected function _init()
{
- if (!defined('SKELETON_TEMPLATES')) {
- define('SKELETON_TEMPLATES', $GLOBALS['registry']->get('templates'));
- }
-
// Notification system.
$notification = Horde_Notification::singleton();
$notification->attach('status');
* $notification - Notification object
* $turba_shares - TODO
*
- * Global constants defined:
- * TURBA_TEMPLATES - (string) Location of template files.
- *
* When calling Horde_Registry::appInit(), the following parameters are
* also supported:
* <pre>
Horde_Auth::setAuth($this->initParams['user'], array());
}
- if (!defined('TURBA_TEMPLATES')) {
- define('TURBA_TEMPLATES', $GLOBALS['registry']->get('templates'));
- }
-
$GLOBALS['notification'] = Horde_Notification::singleton();
$GLOBALS['notification']->attach('status');