summaryrefslogtreecommitdiff
path: root/framework/Web/UI/ActiveControls/TBaseActiveControl.php
diff options
context:
space:
mode:
authorctrlaltca <>2012-06-12 10:12:58 +0000
committerctrlaltca <>2012-06-12 10:12:58 +0000
commit77d0d397f5784d739adea9adc8631f7e3c1285c0 (patch)
tree0173bbc866daccdfa50d5c24a8ccbedf45432276 /framework/Web/UI/ActiveControls/TBaseActiveControl.php
parent1c22314e5d19947bad8b987afbf2c9dc6bf834d6 (diff)
TBaseActiveControl: fix documentation and exception message
Diffstat (limited to 'framework/Web/UI/ActiveControls/TBaseActiveControl.php')
-rw-r--r--framework/Web/UI/ActiveControls/TBaseActiveControl.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/framework/Web/UI/ActiveControls/TBaseActiveControl.php b/framework/Web/UI/ActiveControls/TBaseActiveControl.php
index 180092f2..1b047a1b 100644
--- a/framework/Web/UI/ActiveControls/TBaseActiveControl.php
+++ b/framework/Web/UI/ActiveControls/TBaseActiveControl.php
@@ -142,16 +142,16 @@ class TBaseActiveControl extends TComponent
* each individual active controls' {@link getActiveControl ActiveControl}
* property.
*
- * The following example to set the validation group property of a TCallback component.
+ * The following example sets the validation group property of a TCallback component.
* <code>
* <com:TCallback ActiveControl.ValidationGroup="group1" ... />
* </code>
*
* Additional client-side options and events can be set using the
- * {@link getClientSide ClientSide} property. The following example to show
+ * {@link getClientSide ClientSide} property. The following example shows
* an alert box when a TCallback component response returns successfully.
* <code>
- * <com:TCallback Active.Control.ClientSide.OnSuccess="alert('ok!')" ... />
+ * <com:TCallback ActiveControl.ClientSide.OnSuccess="alert('ok!')" ... />
* </code>
*
* @author Wei Zhuo <weizhuo[at]gmail[dot]com>
@@ -202,7 +202,7 @@ class TBaseActiveCallbackControl extends TBaseActiveControl
* Sets default callback options. Takes the ID of a TCallbackOptions
* component to duplicate the client-side
* options for this control. The {@link getClientSide ClientSide}
- * subproperties has precendent over the CallbackOptions property.
+ * subproperties takes precedence over the CallbackOptions property.
* @param string ID of a TCallbackOptions control from which ClientSide
* options are cloned.
*/
@@ -223,7 +223,7 @@ class TBaseActiveCallbackControl extends TBaseActiveControl
/**
* Returns an array of default callback client-side options. The default options
* are obtained from the client-side options of a TCallbackOptions control with
- * ID specified by {@link setCallbackOptionsID CallbackOptionsID}.
+ * ID specified by {@link setCallbackOptions CallbackOptions}.
* @return array list of default callback client-side options.
*/
protected function getDefaultClientSideOptions()
@@ -245,7 +245,7 @@ class TBaseActiveCallbackControl extends TBaseActiveControl
if($control instanceof TCallbackOptions)
return $control->getClientSide()->getOptions()->toArray();
else
- throw new TConfigurationException('callback_invalid_callback_options_ID', $id);
+ throw new TConfigurationException('callback_invalid_callback_options', $this->getControl()->getID(), $id);
}
return array();