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/Base/TEvent.php | 6 ++++-- framework/Caching/TCache.php | 3 +++ 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 ++- 8 files changed, 19 insertions(+), 7 deletions(-) diff --git a/framework/Base/TEvent.php b/framework/Base/TEvent.php index 0f64e89d..5116a5f4 100644 --- a/framework/Base/TEvent.php +++ b/framework/Base/TEvent.php @@ -1,6 +1,6 @@ - * @version $Id: CComponent.php 978 2009-05-06 03:36:09Z qiang.xue $ + * @version $Id: TEvent.php 978 2009-05-06 03:36:09Z qiang.xue $ * @package system.base * @since 1.0 */ @@ -31,6 +31,8 @@ class TEvent extends TComponent */ public function __construct($sender=null) { + parent::__construct(); + $this->sender=$sender; } } \ No newline at end of file diff --git a/framework/Caching/TCache.php b/framework/Caching/TCache.php index 02a4ae3b..880161af 100644 --- a/framework/Caching/TCache.php +++ b/framework/Caching/TCache.php @@ -347,6 +347,7 @@ class TFileCacheDependency extends TCacheDependency */ public function __construct($fileName) { + parent::__construct(); $this->setFileName($fileName); } @@ -418,6 +419,7 @@ class TDirectoryCacheDependency extends TCacheDependency */ public function __construct($directory) { + parent::__construct(); $this->setDirectory($directory); } @@ -572,6 +574,7 @@ class TGlobalStateCacheDependency extends TCacheDependency */ public function __construct($name) { + parent::__construct(); $this->setStateName($name); } 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