From 77d0d397f5784d739adea9adc8631f7e3c1285c0 Mon Sep 17 00:00:00 2001 From: ctrlaltca <> Date: Tue, 12 Jun 2012 10:12:58 +0000 Subject: TBaseActiveControl: fix documentation and exception message --- framework/Web/UI/ActiveControls/TBaseActiveControl.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'framework/Web/UI/ActiveControls/TBaseActiveControl.php') 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. * * * * * 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. * - * + * * * * @author Wei Zhuo @@ -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(); -- cgit v1.2.3