From 17b1d0b7c9e02f954d8877f40bfd814b2b8adec3 Mon Sep 17 00:00:00 2001 From: javalizard <> Date: Sun, 18 Apr 2010 04:25:03 +0000 Subject: Ensured parent::__construct calls to Base, Caching, and Collections --- framework/Collections/TDummyDataSource.php | 3 ++- framework/Collections/TList.php | 3 ++- framework/Collections/TMap.php | 3 ++- framework/Collections/TPagedList.php | 4 +++- framework/Collections/TQueue.php | 1 + framework/Collections/TStack.php | 3 ++- 6 files changed, 12 insertions(+), 5 deletions(-) (limited to 'framework/Collections') diff --git a/framework/Collections/TDummyDataSource.php b/framework/Collections/TDummyDataSource.php index 491c36c0..e1cc3536 100644 --- a/framework/Collections/TDummyDataSource.php +++ b/framework/Collections/TDummyDataSource.php @@ -4,7 +4,7 @@ * * @author Qiang Xue * @link http://www.pradosoft.com/ - * @copyright Copyright © 2005-2008 PradoSoft + * @copyright Copyright © 2005-2010 PradoSoft * @license http://www.pradosoft.com/license/ * @version $Id$ * @package System.Collections @@ -36,6 +36,7 @@ class TDummyDataSource extends TComponent implements IteratorAggregate, Countabl */ public function __construct($count) { + parent::__construct(); $this->_count=$count; } diff --git a/framework/Collections/TList.php b/framework/Collections/TList.php index cfcf666a..f3e2953d 100644 --- a/framework/Collections/TList.php +++ b/framework/Collections/TList.php @@ -4,7 +4,7 @@ * * @author Qiang Xue * @link http://www.pradosoft.com/ - * @copyright Copyright © 2005-2008 PradoSoft + * @copyright Copyright © 2005-2010 PradoSoft * @license http://www.pradosoft.com/license/ * @version $Id$ * @package System.Collections @@ -62,6 +62,7 @@ class TList extends TComponent implements IteratorAggregate,ArrayAccess,Countabl */ public function __construct($data=null,$readOnly=false) { + parent::__construct(); if($data!==null) $this->copyFrom($data); $this->setReadOnly($readOnly); diff --git a/framework/Collections/TMap.php b/framework/Collections/TMap.php index 56748ea2..2630172c 100644 --- a/framework/Collections/TMap.php +++ b/framework/Collections/TMap.php @@ -4,7 +4,7 @@ * * @author Qiang Xue * @link http://www.pradosoft.com/ - * @copyright Copyright © 2005-2008 PradoSoft + * @copyright Copyright © 2005-2010 PradoSoft * @license http://www.pradosoft.com/license/ * @version $Id$ * @package System.Collections @@ -52,6 +52,7 @@ class TMap extends TComponent implements IteratorAggregate,ArrayAccess,Countable */ public function __construct($data=null,$readOnly=false) { + parent::__construct(); if($data!==null) $this->copyFrom($data); $this->setReadOnly($readOnly); diff --git a/framework/Collections/TPagedList.php b/framework/Collections/TPagedList.php index 50286aec..7bb58d41 100644 --- a/framework/Collections/TPagedList.php +++ b/framework/Collections/TPagedList.php @@ -4,7 +4,7 @@ * * @author Qiang Xue * @link http://www.pradosoft.com/ - * @copyright Copyright © 2005-2008 PradoSoft + * @copyright Copyright © 2005-2010 PradoSoft * @license http://www.pradosoft.com/license/ * @version $Id$ * @package System.Collections @@ -386,6 +386,7 @@ class TPagedListPageChangedEventParameter extends TEventParameter */ public function __construct($oldPage) { + parent::__construct(); $this->_oldPage=$oldPage; } @@ -429,6 +430,7 @@ class TPagedListFetchDataEventParameter extends TEventParameter */ public function __construct($pageIndex,$offset,$limit) { + parent::__construct(); $this->_pageIndex=$pageIndex; $this->_offset=$offset; $this->_limit=$limit; diff --git a/framework/Collections/TQueue.php b/framework/Collections/TQueue.php index 581a7109..dc580d1e 100644 --- a/framework/Collections/TQueue.php +++ b/framework/Collections/TQueue.php @@ -53,6 +53,7 @@ class TQueue extends TComponent implements IteratorAggregate,Countable */ public function __construct($data=null) { + parent::__construct(); if($data!==null) $this->copyFrom($data); } diff --git a/framework/Collections/TStack.php b/framework/Collections/TStack.php index 3c8d5fc6..16bd6fca 100644 --- a/framework/Collections/TStack.php +++ b/framework/Collections/TStack.php @@ -4,7 +4,7 @@ * * @author Qiang Xue * @link http://www.pradosoft.com/ - * @copyright Copyright © 2005-2008 PradoSoft + * @copyright Copyright © 2005-2010 PradoSoft * @license http://www.pradosoft.com/license/ * @version $Id$ * @package System.Collections @@ -52,6 +52,7 @@ class TStack extends TComponent implements IteratorAggregate,Countable */ public function __construct($data=null) { + parent::__construct(); if($data!==null) $this->copyFrom($data); } -- cgit v1.2.3