summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjavalizard <>2010-04-18 04:25:03 +0000
committerjavalizard <>2010-04-18 04:25:03 +0000
commit17b1d0b7c9e02f954d8877f40bfd814b2b8adec3 (patch)
tree27e434e40175292728acaeea6545173ae25496de
parent623267d4377806ca3500b209f0a939c2326198de (diff)
Ensured parent::__construct calls to Base, Caching, and Collections
-rw-r--r--framework/Base/TEvent.php6
-rw-r--r--framework/Caching/TCache.php3
-rw-r--r--framework/Collections/TDummyDataSource.php3
-rw-r--r--framework/Collections/TList.php3
-rw-r--r--framework/Collections/TMap.php3
-rw-r--r--framework/Collections/TPagedList.php4
-rw-r--r--framework/Collections/TQueue.php1
-rw-r--r--framework/Collections/TStack.php3
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 @@
<?php
/**
- * CEvent is the base class for all event classes.
+ * TEvent is the base class for all event classes.
*
* It encapsulates the parameters associated with an event.
* The {@link sender} property describes who raises the event.
@@ -9,7 +9,7 @@
* that are not invoked yet will not be invoked anymore.
*
* @author Qiang Xue <qiang.xue@gmail.com>
- * @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 <qiang.xue@gmail.com>
* @link http://www.pradosoft.com/
- * @copyright Copyright &copy; 2005-2008 PradoSoft
+ * @copyright Copyright &copy; 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 <qiang.xue@gmail.com>
* @link http://www.pradosoft.com/
- * @copyright Copyright &copy; 2005-2008 PradoSoft
+ * @copyright Copyright &copy; 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 <qiang.xue@gmail.com>
* @link http://www.pradosoft.com/
- * @copyright Copyright &copy; 2005-2008 PradoSoft
+ * @copyright Copyright &copy; 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 <qiang.xue@gmail.com>
* @link http://www.pradosoft.com/
- * @copyright Copyright &copy; 2005-2008 PradoSoft
+ * @copyright Copyright &copy; 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 <qiang.xue@gmail.com>
* @link http://www.pradosoft.com/
- * @copyright Copyright &copy; 2005-2008 PradoSoft
+ * @copyright Copyright &copy; 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);
}