diff options
author | javalizard <> | 2010-04-18 01:36:04 +0000 |
---|---|---|
committer | javalizard <> | 2010-04-18 01:36:04 +0000 |
commit | a77f444bbc8059c0bededc47a50f8fd9c05a1549 (patch) | |
tree | 5ce41a7988c75fdaedf7da97ef20945d0ea86785 /framework/TComponent.php | |
parent | 98c48b76b2fdf4b99c9fad1631e52d027b965be4 (diff) |
TComponent- adds a blank __construct function to unify the constructor call path for all objects.
TApplication- Adds final attribute to the parameters in the config so folder config.xml cannot override if set to true. Adds a mergeParameter function to unify parameter setting. Fixed a bug where loadParametersPhp wasn't getting the properties correctly.
TControl- calls the parent::__construct, Adds render blocking. (the PRADO class using this will be added in a week or two)
TParameterModule- Adds final attribute to the parameter option so folder configs cannot override if set to true. Uses the application mergeParameter function. Adds final to the php parameter loader
Diffstat (limited to 'framework/TComponent.php')
-rw-r--r-- | framework/TComponent.php | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/framework/TComponent.php b/framework/TComponent.php index 55c19ecf..9b5331ef 100644 --- a/framework/TComponent.php +++ b/framework/TComponent.php @@ -4,7 +4,7 @@ * * @author Qiang Xue <qiang.xue@gmail.com> * @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 @@ -49,11 +49,12 @@ * To raise an event (assuming named as 'Click') of a component, use * <code> * $component->raiseEvent('OnClick'); + * $component->raiseEvent('OnClick', $this, $param); * </code> * To attach an event handler to an event, use one of the following ways, * <code> * $component->OnClick=$callback; // or $component->OnClick->add($callback); - * $$component->attachEventHandler('OnClick',$callback); + * $component->attachEventHandler('OnClick',$callback); * </code> * The first two ways make use of the fact that $component->OnClick refers to * the event handler list {@link TList} for the 'OnClick' event. @@ -83,6 +84,14 @@ class TComponent */ private $_m=array(); + + /** + * The Common __construct + */ + public function __construct() { + } + + /** * Returns a property value or an event handler list by property or event name. * Do not call this method. This is a PHP magic method that we override |