From 0829786cbed44069fd62b7bf01f7b91e9f57bfd2 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 8 Oct 2005 04:35:08 +0000 Subject: [PATCH] Pass the registry by reference --- date.php | 4 ++-- db_mysql.php | 4 ++-- functions.php | 4 ++-- kernel.php | 2 +- localize.php | 4 ++-- mail.php | 4 ++-- template.php | 4 ++-- template_fs.php | 4 ++-- xml.php | 4 ++-- 9 files changed, 17 insertions(+), 17 deletions(-) diff --git a/date.php b/date.php index b246162..267b35a 100644 --- a/date.php +++ b/date.php @@ -83,9 +83,9 @@ class Date_Formatter /** * Constructor: sets the server's timezone */ - function Date_Formatter($registry) + function Date_Formatter(&$registry) { - $this->registry = $registry; + $this->registry =& $registry; $this->servertz = date('Z', TIMENOW) / 3600; } diff --git a/db_mysql.php b/db_mysql.php index ac35f6d..2a75c9d 100644 --- a/db_mysql.php +++ b/db_mysql.php @@ -101,9 +101,9 @@ class MySQL_Database_Driver /** * Constructor */ - function MySQL_Database_Driver($registry) + function MySQL_Database_Driver(&$registry) { - $this->registry = $registry; + $this->registry =& $registry; } /** diff --git a/functions.php b/functions.php index a4bd197..0c3edc9 100644 --- a/functions.php +++ b/functions.php @@ -77,9 +77,9 @@ class Functions /** * Constructor */ - function Functions($registry) + function Functions(&$registry) { - $this->registry = $registry; + $this->registry =& $registry; } /** diff --git a/kernel.php b/kernel.php index 33c67f8..1855c91 100644 --- a/kernel.php +++ b/kernel.php @@ -219,7 +219,7 @@ class Shared_Object_Framework if (!$this->is_loaded($framework)) { $newobj = $this->locate($framework); - $this->$newobj['OBJ'] = new $newobj['CLASS'](); + $this->$newobj['OBJ'] = new $newobj['CLASS']($this); $GLOBALS["$newobj[OBJ]"] =& $this->$newobj['OBJ']; $this->modules["$framework"] = $newobj['OBJECT']; } diff --git a/localize.php b/localize.php index 62b1202..b769eb2 100644 --- a/localize.php +++ b/localize.php @@ -70,9 +70,9 @@ class Localize /** * Constructor */ - function Localize($registry) + function Localize(&$registry) { - $this->registry = $registry; + $this->registry =& $registry; } /** diff --git a/mail.php b/mail.php index ccaa64f..9a05b43 100644 --- a/mail.php +++ b/mail.php @@ -89,9 +89,9 @@ class Mail /** * Constructor */ - function Mail($registry) + function Mail(&$registry) { - $this->registry = $registry; + $this->registry =& $registry; } /** diff --git a/template.php b/template.php index ab12bfc..4cdc7a5 100644 --- a/template.php +++ b/template.php @@ -113,9 +113,9 @@ class DB_Template /** * Constructor */ - function DB_Template($registry) + function DB_Template(&$registry) { - $this->registry = $registry; + $this->registry =& $registry; } /** diff --git a/template_fs.php b/template_fs.php index de7b7ca..4b74062 100644 --- a/template_fs.php +++ b/template_fs.php @@ -70,9 +70,9 @@ class FS_Template extends DB_Template /** * Constructor */ - function FS_Template($registry) + function FS_Template(&$registry) { - $this->registry = $registry; + $this->registry =& $registry; } /** diff --git a/xml.php b/xml.php index e189f83..01243d6 100644 --- a/xml.php +++ b/xml.php @@ -88,9 +88,9 @@ class XML_Parser /** * Constructor */ - function XML_Parser($registry) + function XML_Parser(&$registry) { - $this->registry = $registry; + $this->registry =& $registry; } /** -- 2.22.5