From a77f444bbc8059c0bededc47a50f8fd9c05a1549 Mon Sep 17 00:00:00 2001 From: javalizard <> Date: Sun, 18 Apr 2010 01:36:04 +0000 Subject: 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 --- framework/TComponent.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'framework/TComponent.php') 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 * @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 * * $component->raiseEvent('OnClick'); + * $component->raiseEvent('OnClick', $this, $param); * * To attach an event handler to an event, use one of the following ways, * * $component->OnClick=$callback; // or $component->OnClick->add($callback); - * $$component->attachEventHandler('OnClick',$callback); + * $component->attachEventHandler('OnClick',$callback); * * 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 -- cgit v1.2.3