Registry:: -> Horde_Registry::
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 9 Jul 2009 05:29:11 +0000 (23:29 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 9 Jul 2009 05:54:50 +0000 (23:54 -0600)
20 files changed:
babel/lib/base.php
chora/lib/base.php
crumb/lib/base.php
fima/lib/base.php
folks/lib/base.php
framework/Model/www/test.php
imp/lib/base.php
ingo/lib/base.php
jeta/lib/base.php
kastalia/download.php
kastalia/lib/base.php
koward/lib/Koward.php
kronolith/lib/Imple/Embed.php
kronolith/lib/base.php
kronolith/pref_api.php
kronolith/scripts/import_icals.php
news/lib/base.php
skoli/lib/base.php
skoli/pref_api.php
timeobjects/lib/base.php

index da72d1f..ed5a7b2 100644 (file)
@@ -27,7 +27,7 @@ $notification = &Horde_Notification::singleton();
 $notification->attach('status');
 
 /* Registry. */
-$registry = &Registry::singleton();
+$registry = Horde_Registry::singleton();
 
 if (is_a(($pushed = $registry->pushApp('babel', !defined('AUTH_HANDLER'))), 'PEAR_Error')) {
     if ($pushed->getCode() == 'permission_denied') {
index 458c51a..cd02a84 100644 (file)
@@ -30,7 +30,7 @@ if (!defined('CHORA_BASE')) {
 require_once HORDE_BASE . '/lib/core.php';
 
 // Registry
-$registry = &Registry::singleton();
+$registry = Horde_Registry::singleton();
 if (is_a(($pushed = $registry->pushApp('chora', !defined('AUTH_HANDLER'))), 'PEAR_Error')) {
     if ($pushed->getCode() == 'permission_denied') {
         Horde::authenticationFailureRedirect();
index 33fb283..c562d9e 100644 (file)
@@ -23,7 +23,7 @@ if (!defined('HORDE_BASE')) {
 require_once HORDE_BASE . '/lib/core.php';
 
 // Registry.
-$registry = &Registry::singleton();
+$registry = Horde_Registry::singleton();
 if (is_a(($pushed = $registry->pushApp('crumb', !defined('AUTH_HANDLER'))), 'PEAR_Error')) {
     if ($pushed->getCode() == 'permission_denied') {
         Horde::authenticationFailureRedirect();
index 1c4906a..571e4f3 100644 (file)
@@ -20,11 +20,11 @@ require_once HORDE_BASE . '/lib/core.php';
 // Registry.
 $session_control = Horde_Util::nonInputVar('session_control');
 if ($session_control == 'none') {
-    $registry = &Registry::singleton(HORDE_SESSION_NONE);
+    $registry = Horde_Registry::singleton(HORDE_SESSION_NONE);
 } elseif ($session_control == 'readonly') {
-    $registry = &Registry::singleton(HORDE_SESSION_READONLY);
+    $registry = Horde_Registry::singleton(HORDE_SESSION_READONLY);
 } else {
-    $registry = &Registry::singleton();
+    $registry = Horde_Registry::singleton();
 }
 
 if (is_a(($pushed = $registry->pushApp('fima', !defined('AUTH_HANDLER'))), 'PEAR_Error')) {
index 5267aac..847ba38 100644 (file)
@@ -18,7 +18,7 @@ if (!defined('HORDE_BASE')) {
 require_once HORDE_BASE . '/lib/core.php';
 
 // Registry.
-$registry = &Registry::singleton();
+$registry = Horde_Registry::singleton();
 if (($pushed = $registry->pushApp('folks', !defined('AUTH_HANDLER'))) instanceof PEAR_Error) {
     if ($pushed->getCode() == 'permission_denied') {
         Horde::authenticationFailureRedirect();
index 4d4c9dd..7385043 100644 (file)
@@ -14,7 +14,7 @@
 require_once HORDE_BASE . '/lib/core.php';
 require_once 'Horde/Autoloader.php';
 Horde_Autoloader::addClassPath(dirname(__FILE__));
-$registry = Registry::singleton();
+$registry = Horde_Registry::singleton();
 $vars = Horde_Variables::getDefaultVariables();
 
 $vars->set('example_bar', 'text with a beginning and an end');
index 5aac18c..cbc3b5f 100644 (file)
@@ -47,14 +47,14 @@ case 'netscape':
     break;
 
 case 'none':
-    $s_ctrl = Registry::SESSION_NONE;
+    $s_ctrl = Horde_Registry::SESSION_NONE;
     break;
 
 case 'readonly':
-    $s_ctrl = Registry::SESSION_READONLY;
+    $s_ctrl = Horde_Registry::SESSION_READONLY;
     break;
 }
-$registry = Registry::singleton($s_ctrl);
+$registry = Horde_Registry::singleton($s_ctrl);
 
 // We explicitly do not check application permissions for the compose
 // and login pages, since those are handled below and need to fall through
index 5e71221..aa09dbb 100644 (file)
@@ -19,7 +19,7 @@ require_once dirname(__FILE__) . '/base.load.php';
 require_once HORDE_BASE . '/lib/core.php';
 
 // Registry.
-$registry = &Registry::singleton();
+$registry = Horde_Registry::singleton();
 if (is_a(($pushed = $registry->pushApp('ingo', !defined('AUTH_HANDLER'))), 'PEAR_Error')) {
     if ($pushed->getCode() == 'permission_denied') {
         Horde::authenticationFailureRedirect();
index 6197653..c3f6d17 100644 (file)
@@ -26,7 +26,7 @@ if (!defined('JETA_BASE')) {
 require_once HORDE_BASE . '/lib/core.php';
 
 // Registry.
-$registry = &Registry::singleton();
+$registry = Horde_Registry::singleton();
 if (is_a(($pushed = $registry->pushApp('jeta', !defined('AUTH_HANDLER'))), 'PEAR_Error')) {
     if ($pushed->getCode() == 'permission_denied') {
         Horde::authenticationFailureRedirect();
index 1a4fa3e..e7a9cb7 100755 (executable)
@@ -30,7 +30,7 @@ if (!defined('HORDE_BASE')) {
 require_once HORDE_BASE . '/lib/core.php';
 
 // Registry.
-$registry = &Registry::singleton();
+$registry = Horde_Registry::singleton();
 if (is_a(($pushed = $registry->pushApp('kastalia', !defined('AUTH_HANDLER'))), 'PEAR_Error')) {
     if ($pushed->getCode() == 'permission_denied') {
         Horde::authenticationFailureRedirect();
@@ -157,4 +157,4 @@ function DownloadFile($file_location,$file_name) {
         exit(1);
     }
 }
-?>
\ No newline at end of file
+?>
index 7eeb500..46345ec 100755 (executable)
@@ -20,7 +20,7 @@ if (!defined('HORDE_BASE')) {
 require_once HORDE_BASE . '/lib/core.php';
 
 // Registry.
-$registry = &Registry::singleton();
+$registry = Horde_Registry::singleton();
 if (is_a(($pushed = $registry->pushApp('kastalia', !defined('AUTH_HANDLER'))), 'PEAR_Error')) {
     if ($pushed->getCode() == 'permission_denied') {
         Horde::authenticationFailureRedirect();
index d01f712..dfe6abe 100644 (file)
@@ -54,13 +54,11 @@ class Koward {
 
         /* Horde core classes that aren't autoloaded. */
         include_once 'Horde/NLS.php';
-        include_once 'Horde/Auth.php';
         include_once 'Horde/Perms.php';
-        include_once 'Horde/Registry.php';
 
-        $registry = Registry::singleton();
+        $registry = Horde_Registry::singleton();
 
-        $notification = &Horde_Notification::singleton();
+        $notification = Horde_Notification::singleton();
         $notification->attach('status');
 
         /* Browser detection object. */
index e2b9daf..d284a6b 100644 (file)
@@ -62,7 +62,7 @@ class Kronolith_Imple_Embed extends Kronolith_Imple {
         }
 
         /* Load the registry with no session control */
-        $registry = &Registry::singleton(Registry::SESSION_NONE);
+        $registry = Horde_Registry::singleton(Horde_Registry::SESSION_NONE);
 
 
         /* Build the block parameters */
index 5b3f6dc..54530bc 100644 (file)
@@ -21,11 +21,11 @@ require_once HORDE_BASE . '/lib/core.php';
 /* Registry. */
 $session_control = Horde_Util::nonInputVar('session_control');
 if ($session_control == 'none') {
-    $registry = &Registry::singleton(Registry::SESSION_NONE);
+    $registry = Horde_Registry::singleton(Horde_Registry::SESSION_NONE);
 } elseif ($session_control == 'readonly') {
-    $registry = &Registry::singleton(Registry::SESSION_READONLY);
+    $registry = Horde_Registry::singleton(Horde_Registry::SESSION_READONLY);
 } else {
-    $registry = &Registry::singleton();
+    $registry = Horde_Registry::singleton();
 }
 
 if (is_a(($pushed = $registry->pushApp('kronolith', !defined('AUTH_HANDLER'))), 'PEAR_Error')) {
index 410fd17..6639850 100644 (file)
@@ -11,7 +11,7 @@
 require_once dirname(__FILE__) . '/lib/base.load.php';
 require_once HORDE_BASE . '/lib/core.php';
 
-$registry = &Registry::singleton();
+$registry = Horde_Registry::singleton();
 
 /* Which application. */
 $app = Horde_Util::getFormData('app');
index c2d8c4e..90be8f9 100755 (executable)
@@ -20,7 +20,6 @@
 
 // Do CLI checks and environment setup first.
 require_once HORDE_BASE . '/lib/core.php';
-require_once 'Horde/Cli.php';
 
 // Make sure no one runs this from the web.
 if (!Horde_Cli::runningFromCLI()) {
@@ -29,7 +28,7 @@ if (!Horde_Cli::runningFromCLI()) {
 
 // Load the CLI environment - make sure there's no time limit, init some
 // variables, etc.
-$cli = &Horde_Cli::singleton();
+$cli = Horde_Cli::singleton();
 $cli->init();
 
 // Read command line parameters.
@@ -48,7 +47,7 @@ if (empty($ical)) {
 }
 
 // Registry.
-$registry = Registry::singleton();
+$registry = Horde_Registry::singleton();
 
 // Set user.
 Horde_Auth::setAuth($user, array());
index a22f0e4..4414d06 100644 (file)
@@ -23,7 +23,7 @@ if (!defined('HORDE_BASE')) {
 require_once HORDE_BASE . '/lib/core.php';
 
 // Registry.
-$registry = &Registry::singleton();
+$registry = Horde_Registry::singleton();
 if (($pushed = $registry->pushApp('news', !defined('AUTH_HANDLER'))) instanceof PEAR_Error) {
     if ($pushed->getCode() == 'permission_denied') {
         Horde::authenticationFailureRedirect();
index 6f31e12..196676b 100644 (file)
@@ -18,7 +18,7 @@ if (!defined('HORDE_BASE')) {
 require_once HORDE_BASE . '/lib/core.php';
 
 // Registry.
-$registry = &Registry::singleton();
+$registry = Horde_Registry::singleton();
 if (is_a(($pushed = $registry->pushApp('skoli', !defined('AUTH_HANDLER'))), 'PEAR_Error')) {
     if ($pushed->getCode() == 'permission_denied') {
         Horde::authenticationFailureRedirect();
index 941e9de..182b827 100644 (file)
@@ -13,7 +13,7 @@
 @define('HORDE_BASE', dirname(dirname(__FILE__)));
 require_once HORDE_BASE . '/lib/core.php';
 
-$registry = &Registry::singleton();
+$registry = Horde_Registry::singleton();
 
 /* Which application. */
 $app = Horde_Util::getFormData('app');
index 0fc4c17..cfc7361 100644 (file)
@@ -23,11 +23,11 @@ require_once HORDE_BASE . '/lib/core.php';
 /* Registry. */
 $session_control = Horde_Util::nonInputVar('session_control');
 if ($session_control == 'none') {
-    $registry = &Registry::singleton(Registry::SESSION_NONE);
+    $registry = Horde_Registry::singleton(Horde_Registry::SESSION_NONE);
 } elseif ($session_control == 'readonly') {
-    $registry = &Registry::singleton(Registry::SESSION_READONLY);
+    $registry = Horde_Registry::singleton(Horde_Registry::SESSION_READONLY);
 } else {
-    $registry = &Registry::singleton();
+    $registry = Horde_Registry::singleton();
 }
 
 if (is_a(($pushed = $registry->pushApp('timeobjects', !defined('AUTH_HANDLER'))), 'PEAR_Error')) {