From 9a2764c1ad41d4c187a55849029416abda697183 Mon Sep 17 00:00:00 2001 From: xue <> Date: Mon, 12 Dec 2005 22:32:53 +0000 Subject: --- framework/Web/UI/TControl.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'framework') diff --git a/framework/Web/UI/TControl.php b/framework/Web/UI/TControl.php index 435f3905..6e36c123 100644 --- a/framework/Web/UI/TControl.php +++ b/framework/Web/UI/TControl.php @@ -712,23 +712,23 @@ class TControl extends TComponent * Performs the databinding for this component. * Databinding a property includes evaluating the binded expression * and setting the property with the evaluation result. - * @param boolean whether to raise OnDataBinding event. + * @param boolean whether to raise DataBinding event. * @throws TInvalidOperationException if some bounded property is invalid * @throws TExpressionInvalidException if some bounded expression is invalid */ - public function dataBind($raiseOnDataBinding=true) + public function dataBind($raiseDataBindingEvent=true) { if(isset($this->_rf[self::RF_DATA_BINDINGS])) { foreach($this->_rf[self::RF_DATA_BINDINGS] as $property=>$expression) $this->setSubProperty($property,$this->evaluateExpression($expression)); - if($raiseOnDataBinding) + if($raiseDataBindingEvent) $this->onDataBinding(null); if(isset($this->_rf[self::RF_CONTROLS])) { foreach($this->_rf[self::RF_CONTROLS] as $control) if($control instanceof TControl) - $control->dataBind($raiseOnDataBinding); + $control->dataBind($raiseDataBindingEvent); } } } -- cgit v1.2.3