summaryrefslogtreecommitdiff
path: root/framework/Security
diff options
context:
space:
mode:
authorjavalizard <>2010-04-18 04:35:48 +0000
committerjavalizard <>2010-04-18 04:35:48 +0000
commit2157ae5323261476ffc67c41e58455feaf6bbecc (patch)
treeeeb30f8c7021fef0b245300c24fa926631b18491 /framework/Security
parent20f46a1104240afbac704576bc6113d697b3ae7e (diff)
Ensured parent::__construct calls within Security
Diffstat (limited to 'framework/Security')
-rw-r--r--framework/Security/TAuthorizationRule.php3
-rw-r--r--framework/Security/TUser.php3
2 files changed, 4 insertions, 2 deletions
diff --git a/framework/Security/TAuthorizationRule.php b/framework/Security/TAuthorizationRule.php
index 896ce376..2f050340 100644
--- a/framework/Security/TAuthorizationRule.php
+++ b/framework/Security/TAuthorizationRule.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.Security
@@ -74,6 +74,7 @@ class TAuthorizationRule extends TComponent
*/
public function __construct($action,$users,$roles,$verb='',$ipRules='')
{
+ parent::__construct();
$action=strtolower(trim($action));
if($action==='allow' || $action==='deny')
$this->_action=$action;
diff --git a/framework/Security/TUser.php b/framework/Security/TUser.php
index 35e3e3a5..3c7b6507 100644
--- a/framework/Security/TUser.php
+++ b/framework/Security/TUser.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.Security
@@ -52,6 +52,7 @@ class TUser extends TComponent implements IUser
*/
public function __construct(IUserManager $manager)
{
+ parent::__construct();
$this->_state=array();
$this->_manager=$manager;
$this->setName($manager->getGuestName());