From b59507414ffe2fae54098675f0403a1048151f66 Mon Sep 17 00:00:00 2001 From: Andrew Short Date: Mon, 12 Oct 2009 22:28:47 +0000 Subject: [PATCH] API CHANGE: SSViewer and SQLQuery no longer inherit from Object, since they should not be extended. From: Andrew Short git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@88700 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/SSViewer.php | 4 +--- core/model/SQLQuery.php | 5 ++--- 2 files changed, 3 insertions(+), 6 deletions(-) mode change 100644 => 100755 core/SSViewer.php diff --git a/core/SSViewer.php b/core/SSViewer.php old mode 100644 new mode 100755 index b9f34dca8..666a4c9a6 --- a/core/SSViewer.php +++ b/core/SSViewer.php @@ -47,7 +47,7 @@ * @package sapphire * @subpackage view */ -class SSViewer extends Object { +class SSViewer { /** * @var boolean $source_file_comments @@ -173,8 +173,6 @@ class SSViewer extends Object { } if(!$this->chosenTemplates) user_error("None of these templates can be found: ". implode(".ss, ", $templateList) . ".ss", E_USER_WARNING); - - parent::__construct(); } /** diff --git a/core/model/SQLQuery.php b/core/model/SQLQuery.php index 0aea72886..4dc3c428d 100755 --- a/core/model/SQLQuery.php +++ b/core/model/SQLQuery.php @@ -10,7 +10,8 @@ * @package sapphire * @subpackage model */ -class SQLQuery extends Object { +class SQLQuery { + /** * An array of fields to select. * @var array @@ -100,8 +101,6 @@ class SQLQuery extends Object { $this->groupby($groupby); $this->having($having); $this->limit($limit); - - parent::__construct(); } /**