From 656c339879a071f2f875831281ed833b876e4361 Mon Sep 17 00:00:00 2001 From: "ctrlaltca@gmail.com" <> Date: Mon, 20 Jun 2011 10:48:45 +0000 Subject: removed useless calls to empty contructor; reverted some additional undocumented changes; upported the "cgi workaround" to trunk/; large (fake) changeset are due to mixed cr/crlf used previously --- framework/Web/UI/TControl.php | 74 ++++++------------------------------------- 1 file changed, 9 insertions(+), 65 deletions(-) (limited to 'framework/Web/UI/TControl.php') diff --git a/framework/Web/UI/TControl.php b/framework/Web/UI/TControl.php index 0181d206..1c03a04d 100644 --- a/framework/Web/UI/TControl.php +++ b/framework/Web/UI/TControl.php @@ -4,7 +4,7 @@ * * @author Qiang Xue * @link http://www.pradosoft.com/ - * @copyright Copyright © 2005-2010 PradoSoft + * @copyright Copyright © 2005-2008 PradoSoft * @license http://www.pradosoft.com/license/ * @version $Id$ * @package System.Web.UI @@ -172,17 +172,12 @@ class TControl extends TApplicationComponent implements IRenderable, IBindable * @var array a collection of rare control data */ private $_rf=array(); - /** - * @var number this is how many times the control was told not to render - */ - private $_renderblockcount=0; /** * Constructor. */ public function __construct() { - parent::__construct(); } /** @@ -241,21 +236,6 @@ class TControl extends TApplicationComponent implements IRenderable, IBindable return $this->_parent; } - /** - * @return TControl the parent of this control of type - */ - public function getParentOfType($type,$strict=false) - { - $control = $this->Parent; - do { - if(is_object($control) && (get_class($control)===$type || (!$strict && ($control instanceof $type)))) - return $control; - $control = $control->Parent; - } while($control); - - return null; - } - /** * @return TControl the naming container of this control */ @@ -316,32 +296,6 @@ class TControl extends TApplicationComponent implements IRenderable, IBindable return $this->_tplControl; } - /** - * This adds a block to the rendering of the control - */ - public function addRenderBlock() - { - ++$this->_renderblockcount; - } - - /** - * @return boolean true if the rendering is currently blocked - */ - public function getIsRenderBlocked() - { - return $this->_renderblockcount > 0; - } - - /** - * removes a block. This also has an interesting effect of forcing the render if called in the reverse - * of the typical order. eg. removeRenderBlock(); ...... addRenderBlock(); - */ - public function removeRenderBlock() - { - --$this->_renderblockcount; - } - - /** * @return TTemplateControl the control whose template is loaded from * some external storage, such as file, db, and whose template ultimately @@ -490,13 +444,6 @@ class TControl extends TApplicationComponent implements IRenderable, IBindable $this->_rf[self::RF_SKIN_ID]=$value; } - /** - * @return boolean whether the skin has been applied or is past the phase of skin application - */ - public function getIsSkinApplied() { - return ($this->_flags & self::IS_SKIN_APPLIED) || $this->_stage>self::CS_CHILD_INITIALIZED; - } - /** * @return boolean whether theming is enabled for this control. * The theming is enabled if the control and all its parents have it enabled. @@ -1617,8 +1564,6 @@ class TControl extends TApplicationComponent implements IRenderable, IBindable { if($this->getHasControls()) { - if($this->IsRenderBlocked) return; - foreach($this->_rf[self::RF_CONTROLS] as $control) { if(is_string($control)) @@ -2052,14 +1997,14 @@ interface IValidatable * @return mixed the value of the property to be validated. */ public function getValidationPropertyValue(); - /** - * @return boolean wether this control's validators validated successfully (must default to true) - */ - public function getIsValid(); - /** - * @return boolean wether this control's validators validated successfully - */ - public function setIsValid($value); + /** + * @return boolean wether this control's validators validated successfully (must default to true) + */ + public function getIsValid(); + /** + * @return boolean wether this control's validators validated successfully + */ + public function setIsValid($value); } /** @@ -2318,7 +2263,6 @@ class TCommandEventParameter extends TEventParameter */ public function __construct($name='',$parameter='') { - parent::__construct(); $this->_name=$name; $this->_param=$parameter; } -- cgit v1.2.3