* Initialization. Does any necessary init needed to setup the full
* environment for the application.
*
+ * Global variables defined:
+ * $notification - Notification object.
+ *
* Global constants defined:
* [APPNAME]_TEMPLATES - (string) Location of template files.
*/
define($appname . '_TEMPLATES', $GLOBALS['registry']->get('templates'));
}
+ $GLOBALS['notification'] = Horde_Notification::singleton();
+ $this->_initNotification($GLOBALS['notification']);
+
$this->_init();
}
}
{
}
+ /**
+ * Initialization for Notification system.
+ *
+ * @param Horde_Notification_Handler_Base $notify The notification
+ * object.
+ */
+ protected function _initNotification($notify)
+ {
+ $notify->attach('status');
+ }
+
}
* $gollem_backends - A link to the current list of available backends
* $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
*/
protected function _init()
{
- // Notification system.
- $GLOBALS['notification'] = Horde_Notification::singleton();
- $GLOBALS['notification']->attach('status');
-
// Set the global $gollem_be variable to the current backend's
// parameters.
$GLOBALS['gollem_be'] = empty($_SESSION['gollem']['backend_key'])
public $version = '4.0-git';
/**
- * Application initialization.
- *
- * Global variables defined:
- * $notification - Notification object
- */
- protected function _init()
- {
- $GLOBALS['notification'] = Horde_Notification::singleton();
- $GLOBALS['notification']->attach('status');
- }
-
- /**
* Returns a list of available permissions.
*
* @return array TODO
protected function _init()
{
- /* Notification system. */
- $notification = Horde_Notification::singleton();
- $notification->attach('status');
- $GLOBALS['notification'] = &$notification;
-
/* Hylax Driver */
$this->gateway = Hylax_Driver::singleton($conf['fax']['driver'],
$conf['fax']['params']);
* Global variables defined:
* $imp_imap - An IMP_Imap object
* $imp_mbox - Current mailbox information
- * $imp_notify - A Horde_Notification_Listener object
* $imp_search - An IMP_Search object
- * $notification - Notification object
*
* When calling Horde_Registry::appInit(), the following parameters are
* also supported:
Horde_Mime_Headers::$defaultCharset = $def_charset;
}
- $GLOBALS['notification'] = Horde_Notification::singleton();
+ // Initialize global $imp_mbox array. This call also initializes the
+ // IMP_Search object.
+ IMP::setCurrentMailboxInfo();
+ }
+
+ /**
+ * Initialization for Notification system.
+ *
+ * Global variables defined:
+ * $imp_notify - A Horde_Notification_Listener object
+ *
+ * @param Horde_Notification_Handler_Base $notify The notification
+ * object.
+ */
+ protected function _initNotification($notify)
+ {
$viewmode = IMP::getViewMode();
if ($viewmode == 'mimp') {
- $GLOBALS['imp_notify'] = $GLOBALS['notification']->attach('status', null, 'IMP_Notification_Listener_StatusMobile');
+ $GLOBALS['imp_notify'] = $notify->attach('status', null, 'IMP_Notification_Listener_StatusMobile');
} else {
- $GLOBALS['imp_notify'] = $GLOBALS['notification']->attach('status', array('viewmode' => $viewmode), 'IMP_Notification_Listener_Status');
+ $GLOBALS['imp_notify'] = $notify->attach('status', array('viewmode' => $viewmode), 'IMP_Notification_Listener_Status');
if ($viewmode == 'imp') {
- $GLOBALS['notification']->attach('audio');
+ $notify->attach('audio');
}
}
-
- // Initialize global $imp_mbox array. This call also initializes the
- // IMP_Search object.
- IMP::setCurrentMailboxInfo();
}
/* Horde permissions. */
* Initialization function.
*
* Global variables defined:
- * $kronolith_notify - A Horde_Notification_Listener object
* $kronolith_shares - TODO
- * $notification - Notification object
*
* When calling Horde_Registry::appInit(), the following parameters are
* also supported:
throw new Horde_Exception('The Content_Tagger class could not be found. Make sure the registry entry for the Content system is present.');
}
- /* Notification system. */
- $GLOBALS['notification'] = Horde_Notification::singleton();
- $GLOBALS['kronolith_notify'] = $GLOBALS['notification']->attach('status', null, 'Kronolith_Notification_Listener_Status');
-
/* Set the timezone variable, if available. */
Horde_Nls::setTimeZone();
}
/**
+ * Initialization for Notification system.
+ *
+ * Global variables defined:
+ * $kronolith_notify - A Horde_Notification_Listener object.
+ *
+ * @param Horde_Notification_Handler_Base $notify The notification
+ * object.
+ */
+ protected function _initNotification($notify)
+ {
+ $GLOBALS['kronolith_notify'] = $notify->attach('status', null, 'Kronolith_Notification_Listener_Status');
+ }
+
+ /**
* Returns a list of available permissions.
*
* @return array An array describing all available permissions.
public $version = 'H4 (0.1-git)';
/**
- * Initialization function.
- *
- * Global variables defined:
- * $notification - Notification object
- */
- protected function _init()
- {
- // Notification system.
- $notification = Horde_Notification::singleton();
- $notification->attach('status');
- }
-
- /**
* Generate the menu to use on the prefs page.
*
* @return Horde_Menu A Horde_Menu object.
* $cfgSources - TODO
* $copymove_source_options - TODO
* $copymoveSources - TODO
- * $notification - Notification object
* $turba_shares - TODO
*
* When calling Horde_Registry::appInit(), the following parameters are
Horde_Auth::setAuth($this->initParams['user'], array());
}
- $GLOBALS['notification'] = Horde_Notification::singleton();
- $GLOBALS['notification']->attach('status');
-
// Turba source and attribute configuration.
include TURBA_BASE . '/config/attributes.php';
include TURBA_BASE . '/config/sources.php';