From 007aa86c6b1413b25910a9735f53c7c0df96e94b Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Tue, 15 Aug 2006 05:02:08 +0000 Subject: [PATCH] Removing the PHP4 constructors --- api.php | 9 --------- date.php | 9 --------- db.php | 9 --------- db_mysql.php | 9 --------- db_mysqli.php | 11 +---------- db_postgresql.php | 9 --------- functions.php | 11 +---------- graph_pie.php | 9 --------- kernel.php | 9 --------- localize.php | 9 --------- mail.php | 9 --------- pagination.php | 9 --------- printer.php | 9 --------- printer_css.php | 9 --------- printer_navigation.php | 9 --------- template.php | 9 --------- template_fs.php | 9 --------- xml.php | 9 --------- 18 files changed, 2 insertions(+), 164 deletions(-) diff --git a/api.php b/api.php index 2a0a7ed..fcc00e2 100644 --- a/api.php +++ b/api.php @@ -175,15 +175,6 @@ class API $this->registry =& $registry; } - // ################################################################### - /** - * (PHP 4) Constructor - */ - function API(&$registry) - { - $this->__construct($registry); - } - // ################################################################### /** * Constructs an error for the error handler to receive diff --git a/date.php b/date.php index 528a23d..9be597e 100644 --- a/date.php +++ b/date.php @@ -95,15 +95,6 @@ class Date $this->servertz = date('Z', TIMENOW) / 3600; } - // ################################################################### - /** - * (PHP 4) Constructor - */ - function Date(&$registry) - { - $this->__construct($registry); - } - // ################################################################### /** * Sets an ISSO field diff --git a/db.php b/db.php index fc907d0..90ca218 100644 --- a/db.php +++ b/db.php @@ -133,15 +133,6 @@ class DB_Abstract } } - // ################################################################### - /** - * (PHP 4) Constructor - */ - function DB_Abstract(&$registry) - { - $this->__construct($registry); - } - // ################################################################### /** * Initializes the class and all subclasses under a common package name diff --git a/db_mysql.php b/db_mysql.php index 3109e37..c3a70cf 100644 --- a/db_mysql.php +++ b/db_mysql.php @@ -72,15 +72,6 @@ class DB_MySQL extends DB_Abstract parent::__construct($registry); } - // ################################################################### - /** - * (PHP 4) Constructor - */ - function DB_MySQL(&$registry) - { - $this->__construct($registry); - } - // ################################################################### /** * Wrapper: mysql_pconnect diff --git a/db_mysqli.php b/db_mysqli.php index da2de7b..a504e03 100644 --- a/db_mysqli.php +++ b/db_mysqli.php @@ -72,16 +72,7 @@ class DB_MySQLi extends DB_Abstract { parent::__construct($registry); } - - // ################################################################### - /** - * (PHP 4) Constructor - */ - function DB_MySQLi(&$registry) - { - $this->__construct($registry); - } - + // ################################################################### /** * Wrapper: mysqli_connect diff --git a/db_postgresql.php b/db_postgresql.php index 410f5dd..6a0e16a 100644 --- a/db_postgresql.php +++ b/db_postgresql.php @@ -87,15 +87,6 @@ class DB_PostgreSQL extends DB_Abstract parent::__construct($registry); } - // ################################################################### - /** - * (PHP 4) Constructor - */ - function DB_PostgreSQL(&$registry) - { - $this->__construct($registry); - } - // ################################################################### /** * Sets an ISSO field diff --git a/functions.php b/functions.php index 0fc5de9..b2efd16 100644 --- a/functions.php +++ b/functions.php @@ -88,16 +88,7 @@ class Functions { $this->registry =& $registry; } - - // ################################################################### - /** - * (PHP 4) Constructor - */ - function Functions(&$registry) - { - $this->__construct($registry); - } - + // ################################################################### /** * Sets an ISSO field diff --git a/graph_pie.php b/graph_pie.php index 21ebabf..6c67850 100644 --- a/graph_pie.php +++ b/graph_pie.php @@ -88,15 +88,6 @@ class Graph_Pie $this->set_scale(0); } - // ################################################################### - /** - * (PHP 4) Constructor - */ - function Graph_Pie(&$registry) - { - $this->__construct($registry); - } - // ################################################################### /** * Graphs the actual graph and returns a byte stream diff --git a/kernel.php b/kernel.php index d413c9e..d6e97a7 100644 --- a/kernel.php +++ b/kernel.php @@ -283,15 +283,6 @@ class ISSO } } - // ################################################################### - /** - * (PHP 4) Constructor - */ - function ISSO() - { - $this->__construct(); - } - // ################################################################### /** * Sets a specified field in the ISSO. This is used to set all the diff --git a/localize.php b/localize.php index e64250b..f080259 100644 --- a/localize.php +++ b/localize.php @@ -76,15 +76,6 @@ class Localize $this->registry =& $registry; } - // ################################################################### - /** - * (PHP 4) Constructor - */ - function Localize(&$registry) - { - $this->__construct($registry); - } - // ################################################################### /** * Initializes the localization system with a table diff --git a/mail.php b/mail.php index 2427cd9..f4a24d7 100644 --- a/mail.php +++ b/mail.php @@ -131,15 +131,6 @@ class Mail $this->registry =& $registry; } - // ################################################################### - /** - * (PHP 4) Constructor - */ - function Mail(&$registry) - { - $this->__construct($registry); - } - // ################################################################### /** * Sets an ISSO field diff --git a/pagination.php b/pagination.php index 32abe24..9300f30 100644 --- a/pagination.php +++ b/pagination.php @@ -122,15 +122,6 @@ class Pagination $this->registry =& $registry; } - // ################################################################### - /** - * (PHP 4) Constructor - */ - function Pagination(&$registry) - { - $this->__construct($registry); - } - // ################################################################### /** * Sets an ISSO field diff --git a/printer.php b/printer.php index c173a6a..fc472eb 100644 --- a/printer.php +++ b/printer.php @@ -99,15 +99,6 @@ class Printer $this->registry =& $registry; } - // ################################################################### - /** - * (PHP 4) Constructor - */ - function Printer(&$registry) - { - $this->__construct($registry); - } - // ################################################################### /** * Sets an ISSO field diff --git a/printer_css.php b/printer_css.php index af2c0b0..2190be6 100644 --- a/printer_css.php +++ b/printer_css.php @@ -104,15 +104,6 @@ class Printer_CSS $this->registry =& $registry; } - // ################################################################### - /** - * (PHP 4) Constructor - */ - function Printer_CSS(&$registry) - { - $this->__construct($registry); - } - // ################################################################### /** * Sets an ISSO field diff --git a/printer_navigation.php b/printer_navigation.php index 0996714..25f65f5 100644 --- a/printer_navigation.php +++ b/printer_navigation.php @@ -87,15 +87,6 @@ class Printer_Navigation $this->registry =& $registry; } - // ################################################################### - /** - * (PHP 4) Constructor - */ - function Printer_Navigation(&$registry) - { - $this->__construct($registry); - } - // ################################################################### /** * Adds a global link to the array; these cannot be removed once added diff --git a/template.php b/template.php index abc89e3..e920098 100644 --- a/template.php +++ b/template.php @@ -139,15 +139,6 @@ class Template $this->registry =& $registry; } - // ################################################################### - /** - * (PHP 4) Constructor - */ - function Template(&$registry) - { - $this->__construct($registry); - } - // ################################################################### /** * Initializes the class and all subclasses under a common package name diff --git a/template_fs.php b/template_fs.php index e2233a6..cfbefce 100644 --- a/template_fs.php +++ b/template_fs.php @@ -73,15 +73,6 @@ class Template_FS extends Template $this->registry =& $registry; } - // ################################################################### - /** - * (PHP 4) Constructor - */ - function Template_FS(&$registry) - { - $this->__construct($registry); - } - // ################################################################### /** * Sets an ISSO field diff --git a/xml.php b/xml.php index f601000..5b0e1cf 100644 --- a/xml.php +++ b/xml.php @@ -98,15 +98,6 @@ class XML $this->registry =& $registry; } - // ################################################################### - /** - * (PHP 4) Constructor - */ - function XML(&$registry) - { - $this->__construct($registry); - } - // ################################################################### /** * Sets an ISSO field -- 2.43.5