diff options
author | xue <> | 2006-05-03 17:34:13 +0000 |
---|---|---|
committer | xue <> | 2006-05-03 17:34:13 +0000 |
commit | 6495c05e19db5484c3accc44cd9fcb8177202176 (patch) | |
tree | 943e52fd9eefbf56ce1d019efebad2ddc719ab90 | |
parent | 898d9d86fede3805340298e373d517e2a2314fc6 (diff) |
added sanity check to calling event handlers
-rw-r--r-- | HISTORY | 4 | ||||
-rw-r--r-- | UPGRADE | 5 | ||||
-rw-r--r-- | framework/PradoBase.php | 2 | ||||
-rw-r--r-- | framework/TComponent.php | 5 |
4 files changed, 13 insertions, 3 deletions
@@ -1,3 +1,7 @@ +Version 3.0.1 June 1, 2006
+==========================
+ENH: added sanity check to calling event handlers (Qiang)
+
Version 3.0.0 May 1, 2006
=========================
BUG: Ticket#68 - 2 TButtons with THtmlArea causes second button to fail to function (Wei)
@@ -1,5 +1,5 @@ - Upgrading Instructions for PRADO Framework v3.0.0
+ Upgrading Instructions for PRADO Framework v3.0.1
=================================================
!!!IMPORTANT!!!
@@ -14,6 +14,9 @@ version B between A and C, you need to following the instructions for both A and B.
+Upgrading from v3.0.0
+---------------------
+
Upgrading from v3.0.0 RC2
-------------------------
- Template comment tag is changed from <! ... !> to <!-- ... --!>
diff --git a/framework/PradoBase.php b/framework/PradoBase.php index c03e8f33..38829c87 100644 --- a/framework/PradoBase.php +++ b/framework/PradoBase.php @@ -68,7 +68,7 @@ class PradoBase */
public static function getVersion()
{
- return '3.0.0';
+ return '3.0.1';
}
/**
diff --git a/framework/TComponent.php b/framework/TComponent.php index 99907e4d..64854692 100644 --- a/framework/TComponent.php +++ b/framework/TComponent.php @@ -360,7 +360,10 @@ class TComponent $object=$this->getSubProperty(substr($method,0,$pos));
$method=substr($method,$pos+1);
}
- $object->$method($sender,$param);
+ if(method_exists($object,$method))
+ $object->$method($sender,$param);
+ else
+ throw new TInvalidDataValueException('component_eventhandler_invalid',get_class($this),$name);
}
}
else
|