From 3fcf847e0cadfb9ede930f538c2f277483442175 Mon Sep 17 00:00:00 2001 From: xue <> Date: Sat, 21 Jan 2006 17:29:40 +0000 Subject: BE AWARE: Significant change! Changed event definition from XXX to OnXXX. --- framework/Web/UI/WebControls/TBaseDataList.php | 4 +-- framework/Web/UI/WebControls/TBoundColumn.php | 4 +-- framework/Web/UI/WebControls/TBulletedList.php | 8 ++--- framework/Web/UI/WebControls/TButton.php | 22 ++++++------ framework/Web/UI/WebControls/TButtonColumn.php | 2 +- framework/Web/UI/WebControls/TCheckBox.php | 10 +++--- framework/Web/UI/WebControls/TCustomValidator.php | 8 ++--- framework/Web/UI/WebControls/TDataBoundControl.php | 10 +++--- framework/Web/UI/WebControls/TDataGrid.php | 40 ++++++++++----------- framework/Web/UI/WebControls/TDataList.php | 42 +++++++++++----------- .../Web/UI/WebControls/TDataSourceControl.php | 2 +- framework/Web/UI/WebControls/TDataSourceView.php | 2 +- framework/Web/UI/WebControls/TFileUpload.php | 6 ++-- framework/Web/UI/WebControls/THiddenField.php | 6 ++-- framework/Web/UI/WebControls/THyperLinkColumn.php | 2 +- framework/Web/UI/WebControls/TImageButton.php | 24 ++++++------- framework/Web/UI/WebControls/TLinkButton.php | 22 ++++++------ framework/Web/UI/WebControls/TListControl.php | 8 ++--- framework/Web/UI/WebControls/TRadioButton.php | 4 +-- framework/Web/UI/WebControls/TRepeater.php | 22 ++++++------ framework/Web/UI/WebControls/TTextBox.php | 5 +-- 21 files changed, 127 insertions(+), 126 deletions(-) (limited to 'framework/Web/UI/WebControls') diff --git a/framework/Web/UI/WebControls/TBaseDataList.php b/framework/Web/UI/WebControls/TBaseDataList.php index 351fbbc9..c68be5f9 100644 --- a/framework/Web/UI/WebControls/TBaseDataList.php +++ b/framework/Web/UI/WebControls/TBaseDataList.php @@ -230,14 +230,14 @@ abstract class TBaseDataList extends TDataBoundControl } /** - * Raises SelectedIndexChanged event. + * Raises OnSelectedIndexChanged event. * This method is invoked when a different item is selected * in a data listing control between posts to the server. * @param mixed event parameter */ public function onSelectedIndexChanged($param) { - $this->raiseEvent('SelectedIndexChanged',$this,$param); + $this->raiseEvent('OnSelectedIndexChanged',$this,$param); } } diff --git a/framework/Web/UI/WebControls/TBoundColumn.php b/framework/Web/UI/WebControls/TBoundColumn.php index 84f52034..e9dc0412 100644 --- a/framework/Web/UI/WebControls/TBoundColumn.php +++ b/framework/Web/UI/WebControls/TBoundColumn.php @@ -108,13 +108,13 @@ class TBoundColumn extends TDataGridColumn $control=$textBox; } if(($dataField=$this->getDataField())!=='') - $control->attachEventHandler('DataBinding',array($this,'dataBindColumn')); + $control->attachEventHandler('OnDataBinding',array($this,'dataBindColumn')); break; case 'Item': case 'AlternatingItem': case 'SelectedItem': if(($dataField=$this->getDataField())!=='') - $cell->attachEventHandler('DataBinding',array($this,'dataBindColumn')); + $cell->attachEventHandler('OnDataBinding',array($this,'dataBindColumn')); break; } } diff --git a/framework/Web/UI/WebControls/TBulletedList.php b/framework/Web/UI/WebControls/TBulletedList.php index 63183233..d36268ce 100644 --- a/framework/Web/UI/WebControls/TBulletedList.php +++ b/framework/Web/UI/WebControls/TBulletedList.php @@ -29,7 +29,7 @@ Prado::using('System.Web.UI.WebControls.TListControl'); * is displayed as a hyperlink whose URL is given by the item value, and the * {@link setTarget Target} property can be used to specify the target browser window; * When the mode is 'LinkButton', each item is displayed as a link button which - * posts back to the page if a user clicks on that and the event {@link onClick Click} + * posts back to the page if a user clicks on that and the event {@link onClick OnClick} * will be raised under such a circumstance. * * @author Qiang Xue @@ -55,7 +55,7 @@ class TBulletedList extends TListControl implements IPostBackEventHandler * This method is required by {@link IPostBackEventHandler} interface. * If {@link getCausesValidation CausesValidation} is true, it will * invoke the page's {@link TPage::validate validate} method first. - * It will raise {@link onClick Click} events. + * It will raise {@link onClick OnClick} events. * This method is mainly used by framework and control developers. * @param TEventParameter the event parameter */ @@ -202,14 +202,14 @@ class TBulletedList extends TListControl implements IPostBackEventHandler } /** - * Raises 'Click' event. + * Raises 'OnClick' event. * This method is invoked when the {@link getDisplayMode DisplayMode} is 'LinkButton' * and end-users click on one of the buttons. * @param TBulletedListEventParameter event parameter. */ public function onClick($param) { - $this->raiseEvent('Click',$this,$param); + $this->raiseEvent('OnClick',$this,$param); } /** diff --git a/framework/Web/UI/WebControls/TButton.php b/framework/Web/UI/WebControls/TButton.php index 02f35389..968a783a 100644 --- a/framework/Web/UI/WebControls/TButton.php +++ b/framework/Web/UI/WebControls/TButton.php @@ -22,7 +22,7 @@ * associated with the button. This allows you to create multiple TLinkButton * components on a Web page and programmatically determine which one is clicked * with what parameter. You can provide an event handler for - * {@link onCommand Command} event to programmatically control the actions performed + * {@link onCommand OnCommand} event to programmatically control the actions performed * when the command button is clicked. In the event handler, you can determine * the {@link setCommandName CommandName} property value and * the {@link setCommandParameter CommandParameter} property value @@ -33,7 +33,7 @@ * A submit button does not have a command name associated with the button * and clicking on it simply posts the Web page back to the server. * By default, a TButton component is a submit button. - * You can provide an event handler for the {@link onClick Click} event + * You can provide an event handler for the {@link onClick OnClick} event * to programmatically control the actions performed when the submit button is clicked. * * Clicking on button can trigger form validation, if @@ -118,26 +118,26 @@ class TButton extends TWebControl implements IPostBackEventHandler /** * This method is invoked when the button is clicked. - * The method raises 'Click' event to fire up the event handlers. + * The method raises 'OnClick' event to fire up the event handlers. * If you override this method, be sure to call the parent implementation * so that the event handler can be invoked. * @param TEventParameter event parameter to be passed to the event handlers */ public function onClick($param) { - $this->raiseEvent('Click',$this,$param); + $this->raiseEvent('OnClick',$this,$param); } /** * This method is invoked when the button is clicked. - * The method raises 'Command' event to fire up the event handlers. + * The method raises 'OnCommand' event to fire up the event handlers. * If you override this method, be sure to call the parent implementation * so that the event handlers can be invoked. * @param TCommandEventParameter event parameter to be passed to the event handlers */ public function onCommand($param) { - $this->raiseEvent('Command',$this,$param); + $this->raiseEvent('OnCommand',$this,$param); $this->raiseBubbleEvent($this,$param); } @@ -146,7 +146,7 @@ class TButton extends TWebControl implements IPostBackEventHandler * This method is required by {@link IPostBackEventHandler} interface. * If {@link getCausesValidation CausesValidation} is true, it will * invoke the page's {@link TPage::validate validate} method first. - * It will raise {@link onClick Click} and {@link onCommand Command} events. + * It will raise {@link onClick OnClick} and {@link onCommand OnCommand} events. * This method is mainly used by framework and control developers. * @param TEventParameter the event parameter */ @@ -191,7 +191,7 @@ class TButton extends TWebControl implements IPostBackEventHandler } /** - * @return string the command name associated with the {@link onCommand Command} event. + * @return string the command name associated with the {@link onCommand OnCommand} event. */ public function getCommandName() { @@ -199,7 +199,7 @@ class TButton extends TWebControl implements IPostBackEventHandler } /** - * Sets the command name associated with the {@link onCommand Command} event. + * Sets the command name associated with the {@link onCommand OnCommand} event. * @param string the text caption to be set */ public function setCommandName($value) @@ -208,7 +208,7 @@ class TButton extends TWebControl implements IPostBackEventHandler } /** - * @return string the parameter associated with the {@link onCommand Command} event + * @return string the parameter associated with the {@link onCommand OnCommand} event */ public function getCommandParameter() { @@ -216,7 +216,7 @@ class TButton extends TWebControl implements IPostBackEventHandler } /** - * Sets the parameter associated with the {@link onCommand Command} event. + * Sets the parameter associated with the {@link onCommand OnCommand} event. * @param string the text caption to be set */ public function setCommandParameter($value) diff --git a/framework/Web/UI/WebControls/TButtonColumn.php b/framework/Web/UI/WebControls/TButtonColumn.php index 34b4ba51..4555aa24 100644 --- a/framework/Web/UI/WebControls/TButtonColumn.php +++ b/framework/Web/UI/WebControls/TButtonColumn.php @@ -186,7 +186,7 @@ class TButtonColumn extends TDataGridColumn $button->setCausesValidation($this->getCausesValidation()); $button->setValidationGroup($this->getValidationGroup()); if($this->getDataTextField()!=='') - $button->attachEventHandler('DataBinding',array($this,'dataBindColumn')); + $button->attachEventHandler('OnDataBinding',array($this,'dataBindColumn')); $cell->getControls()->add($button); } } diff --git a/framework/Web/UI/WebControls/TCheckBox.php b/framework/Web/UI/WebControls/TCheckBox.php index 385eca06..ae6dc8e4 100644 --- a/framework/Web/UI/WebControls/TCheckBox.php +++ b/framework/Web/UI/WebControls/TCheckBox.php @@ -20,10 +20,10 @@ * property. * * To determine whether the TCheckBox component is checked, test the {@link getChecked Checked} - * property. The {@link onCheckedChanged CheckedChanged} event is raised when + * property. The {@link onCheckedChanged OnCheckedChanged} event is raised when * the {@link getChecked Checked} state of the TCheckBox component changes * between posts to the server. You can provide an event handler for - * the {@link onCheckedChanged CheckedChanged} event to to programmatically + * the {@link onCheckedChanged OnCheckedChanged} event to to programmatically * control the actions performed when the state of the TCheckBox component changes * between posts to the server. * @@ -71,7 +71,7 @@ class TCheckBox extends TWebControl implements IPostBackDataHandler, IValidatabl /** * Raises postdata changed event. - * This method raises {@link onCheckedChanged CheckedChanged} event. + * This method raises {@link onCheckedChanged OnCheckedChanged} event. * This method is primarly used by framework developers. */ public function raisePostDataChangedEvent() @@ -87,14 +87,14 @@ class TCheckBox extends TWebControl implements IPostBackDataHandler, IValidatabl } /** - * Raises CheckedChanged event when {@link getChecked Checked} changes value during postback. + * Raises OnCheckedChanged event when {@link getChecked Checked} changes value during postback. * If you override this method, be sure to call the parent implementation * so that the event delegates can be invoked. * @param TEventParameter event parameter to be passed to the event handlers */ protected function onCheckedChanged($param) { - $this->raiseEvent('CheckedChanged',$this,$param); + $this->raiseEvent('OnCheckedChanged',$this,$param); } /** diff --git a/framework/Web/UI/WebControls/TCustomValidator.php b/framework/Web/UI/WebControls/TCustomValidator.php index 546f015b..e92ae828 100644 --- a/framework/Web/UI/WebControls/TCustomValidator.php +++ b/framework/Web/UI/WebControls/TCustomValidator.php @@ -22,7 +22,7 @@ Prado::using('System.Web.UI.WebControls.TBaseValidator'); * server-side or client-side or both) on an input component. * * To create a server-side validation function, provide a handler for - * the {@link onServerValidate ServerValidate} event that performs the validation. + * the {@link onServerValidate OnServerValidate} event that performs the validation. * The data string of the input control to validate can be accessed * by {@link TServerValidateEventParameter::getValue Value} of the event parameter. * The result of the validation should be stored in the @@ -84,17 +84,17 @@ class TCustomValidator extends TBaseValidator /** * This method is invoked when the server side validation happens. - * It will raise the ServerValidate event. + * It will raise the OnServerValidate event. * The method also allows derived classes to handle the event without attaching a delegate. * Note The derived classes should call parent implementation - * to ensure the ServerValidate event is raised. + * to ensure the OnServerValidate event is raised. * @param string the value to be validated * @return boolean whether the value is valid */ public function onServerValidate($value) { $param=new TServerValidateEventParameter($value,true); - $this->raiseEvent('ServerValidate',$this,$param); + $this->raiseEvent('OnServerValidate',$this,$param); return $param->getIsValid(); } diff --git a/framework/Web/UI/WebControls/TDataBoundControl.php b/framework/Web/UI/WebControls/TDataBoundControl.php index aa177f07..5145b532 100644 --- a/framework/Web/UI/WebControls/TDataBoundControl.php +++ b/framework/Web/UI/WebControls/TDataBoundControl.php @@ -229,7 +229,7 @@ abstract class TDataBoundControl extends TWebControl if(($view=$dataSource->getView($this->getDataMember()))===null) throw new TInvalidDataValueException('databoundcontrol_datamember_invalid',$this->getDataMember()); if($this->_currentViewIsFromDataSourceID=$this->getUsingDataSourceID()) - $view->attachEventHandler('DataSourceViewChanged',array($this,'dataSourceViewChanged')); + $view->attachEventHandler('OnDataSourceViewChanged',array($this,'dataSourceViewChanged')); $this->_currentView=$view; } else @@ -264,17 +264,17 @@ abstract class TDataBoundControl extends TWebControl abstract protected function performDataBinding($data); /** - * Raises DataBound event. + * Raises OnDataBound event. * This method should be invoked after a databind is performed. * It is mainly used by framework and component developers. */ public function onDataBound($param) { - $this->raiseEvent('DataBound',$this,$param); + $this->raiseEvent('OnDataBound',$this,$param); } /** - * Sets page's PreLoad event handler as {@link onPagePreLoad}. + * Sets page's OnPreLoad event handler as {@link onPagePreLoad}. * If viewstate is disabled and the current request is a postback, * {@link setRequiresDataBinding RequiresDataBinding} will be set true. * This method overrides the parent implementation. @@ -284,7 +284,7 @@ abstract class TDataBoundControl extends TWebControl { parent::onInit($param); $page=$this->getPage(); - $page->attachEventHandler('PreLoad',array($this,'onPagePreLoad')); + $page->attachEventHandler('OnPreLoad',array($this,'onPagePreLoad')); } /** diff --git a/framework/Web/UI/WebControls/TDataGrid.php b/framework/Web/UI/WebControls/TDataGrid.php index 318fc8b3..646ead01 100644 --- a/framework/Web/UI/WebControls/TDataGrid.php +++ b/framework/Web/UI/WebControls/TDataGrid.php @@ -554,12 +554,12 @@ class TDataGrid extends TBaseDataList /** * Handles BubbleEvent. * This method overrides parent's implementation to handle - * {@link onItemCommand ItemCommand} event which is bubbled from + * {@link onItemCommand OnItemCommand} event which is bubbled from * {@link TDataGridItem} child controls. * If the event parameter is {@link TDataGridCommandEventParameter} and * the command name is a recognized one, which includes 'select', 'edit', * 'delete', 'update', and 'cancel' (case-insensitive), then a - * corresponding command event is also raised (such as {@link onEditCommand EditCommand}). + * corresponding command event is also raised (such as {@link onEditCommand OnEditCommand}). * This method should only be used by control developers. * @param TControl the sender of the event * @param TEventParameter event parameter @@ -619,100 +619,100 @@ class TDataGrid extends TBaseDataList } /** - * Raises CancelCommand event. + * Raises OnCancelCommand event. * This method is invoked when a button control raisesCommand event * withcancel command name. * @param TDataGridCommandEventParameter event parameter */ public function onCancelCommand($param) { - $this->raiseEvent('CancelCommand',$this,$param); + $this->raiseEvent('OnCancelCommand',$this,$param); } /** - * Raises DeleteCommand event. + * Raises OnDeleteCommand event. * This method is invoked when a button control raises Command event * with delete command name. * @param TDataGridCommandEventParameter event parameter */ public function onDeleteCommand($param) { - $this->raiseEvent('DeleteCommand',$this,$param); + $this->raiseEvent('OnDeleteCommand',$this,$param); } /** - * Raises EditCommand event. + * Raises OnEditCommand event. * This method is invoked when a button control raises Command event * with edit command name. * @param TDataGridCommandEventParameter event parameter */ public function onEditCommand($param) { - $this->raiseEvent('EditCommand',$this,$param); + $this->raiseEvent('OnEditCommand',$this,$param); } /** - * Raises ItemCommand event. + * Raises OnItemCommand event. * This method is invoked when a button control raises Command event. * @param TDataGridItemCommandEventParameter event parameter */ public function onItemCommand($param) { - $this->raiseEvent('ItemCommand',$this,$param); + $this->raiseEvent('OnItemCommand',$this,$param); } /** - * Raises SortCommand event. + * Raises OnSortCommand event. * This method is invoked when a button control raises Command event * with sort command name. * @param TDataGridSortCommandEventParameter event parameter */ public function onSortCommand($param) { - $this->raiseEvent('SortCommand',$this,$param); + $this->raiseEvent('OnSortCommand',$this,$param); } /** - * Raises UpdateCommand event. + * Raises OnUpdateCommand event. * This method is invoked when a button control raises Command event * with update command name. * @param TDataGridCommandEventParameter event parameter */ public function onUpdateCommand($param) { - $this->raiseEvent('UpdateCommand',$this,$param); + $this->raiseEvent('OnUpdateCommand',$this,$param); } /** - * Raises ItemCreated event. + * Raises OnItemCreated event. * This method is invoked right after a datagrid item is created and before * added to page hierarchy. * @param TDataGridItemEventParameter event parameter */ public function onItemCreated($param) { - $this->raiseEvent('ItemCreated',$this,$param); + $this->raiseEvent('OnItemCreated',$this,$param); } /** - * Raises ItemDataBound event. + * Raises OnItemDataBound event. * This method is invoked for each datagrid item after it performs * databinding. * @param TDataGridItemEventParameter event parameter */ public function onItemDataBound($param) { - $this->raiseEvent('ItemDataBound',$this,$param); + $this->raiseEvent('OnItemDataBound',$this,$param); } /** - * Raises PageIndexChanged event. + * Raises OnPageIndexChanged event. * This method is invoked when current page is changed. * @param TDataGridPageChangedEventParameter event parameter */ public function onPageIndexChanged($param) { - $this->raiseEvent('PageIndexChanged',$this,$param); + $this->raiseEvent('OnPageIndexChanged',$this,$param); } /** diff --git a/framework/Web/UI/WebControls/TDataList.php b/framework/Web/UI/WebControls/TDataList.php index 6f61f8ef..38045f77 100644 --- a/framework/Web/UI/WebControls/TDataList.php +++ b/framework/Web/UI/WebControls/TDataList.php @@ -71,20 +71,20 @@ Prado::using('System.Web.UI.WebControls.TRepeatInfo'); * The header and footer items can be accessed by {@link getHeader Header} * and {@link getFooter Footer} properties, respectively. * - * When TDataList creates an item, it will raise an {@link onItemCreated ItemCreated} + * When TDataList creates an item, it will raise an {@link onItemCreated OnItemCreated} * so that you may customize the newly created item. * When databinding is performed by TDataList, for each item once it has finished - * databinding, an {@link onItemDataBound ItemDataBound} event will be raised. + * databinding, an {@link onItemDataBound OnItemDataBound} event will be raised. * - * When an item is selected by an end-user, a {@link onSelectedIndexChanged SelectedIndexChanged} + * When an item is selected by an end-user, a {@link onSelectedIndexChanged OnSelectedIndexChanged} * event will be raised. Note, the selected index may not be actually changed. * The event mainly informs the server side that the end-user has made a selection. * - * TDataList raises an {@link onItemCommand ItemCommand} whenever a button control + * TDataList raises an {@link onItemCommand OnItemCommand} whenever a button control * within some TDataList item raises a Command event. If the command name * is one of the followings: 'edit', 'update', 'select', 'delete', 'cancel' (case-insensitive), * another event will also be raised. For example, if the command name is 'edit', - * then the new event is {@link onEditCommand SelectCommand}. + * then the new event is {@link onEditCommand OnSelectCommand}. * * @author Qiang Xue * @version $Revision: $ $Date: $ @@ -603,12 +603,12 @@ class TDataList extends TBaseDataList implements INamingContainer, IRepeatInfoUs /** * Handles BubbleEvent. * This method overrides parent's implementation to handle - * {@link onItemCommand ItemCommand} event which is bubbled from + * {@link onItemCommand OnItemCommand} event which is bubbled from * {@link TDataListItem} child controls. * If the event parameter is {@link TDataListCommandEventParameter} and * the command name is a recognized one, which includes 'select', 'edit', * 'delete', 'update', and 'cancel' (case-insensitive), then a - * corresponding command event is also raised (such as {@link onEditCommand EditCommand}). + * corresponding command event is also raised (such as {@link onEditCommand OnEditCommand}). * This method should only be used by control developers. * @param TControl the sender of the event * @param TEventParameter event parameter @@ -652,7 +652,7 @@ class TDataList extends TBaseDataList implements INamingContainer, IRepeatInfoUs /** - * Raises ItemCreated event. + * Raises OnItemCreated event. * This method is invoked after a data list item is created and instantiated with * template, but before added to the page hierarchy. * The {@link TDataListItem} control responsible for the event @@ -663,11 +663,11 @@ class TDataList extends TBaseDataList implements INamingContainer, IRepeatInfoUs */ public function onItemCreated($param) { - $this->raiseEvent('ItemCreated',$this,$param); + $this->raiseEvent('OnItemCreated',$this,$param); } /** - * Raises ItemDataBound event. + * Raises OnItemDataBound event. * This method is invoked right after an item is data bound. * The {@link TDataListItem} control responsible for the event * can be determined from the event parameter. @@ -677,62 +677,62 @@ class TDataList extends TBaseDataList implements INamingContainer, IRepeatInfoUs */ public function onItemDataBound($param) { - $this->raiseEvent('ItemDataBound',$this,$param); + $this->raiseEvent('OnItemDataBound',$this,$param); } /** - * Raises ItemCommand event. + * Raises OnItemCommand event. * This method is invoked when a child control of the data list * raises an Command event. * @param TDataListCommandEventParameter event parameter */ protected function onItemCommand($param) { - $this->raiseEvent('ItemCommand',$this,$param); + $this->raiseEvent('OnItemCommand',$this,$param); } /** - * Raises EditCommand event. + * Raises OnEditCommand event. * This method is invoked when a child control of the data list * raises an Command event and the command name is 'edit' (case-insensitive). * @param TDataListCommandEventParameter event parameter */ protected function onEditCommand($param) { - $this->raiseEvent('EditCommand',$this,$param); + $this->raiseEvent('OnEditCommand',$this,$param); } /** - * Raises DeleteCommand event. + * Raises OnDeleteCommand event. * This method is invoked when a child control of the data list * raises an Command event and the command name is 'delete' (case-insensitive). * @param TDataListCommandEventParameter event parameter */ protected function onDeleteCommand($param) { - $this->raiseEvent('DeleteCommand',$this,$param); + $this->raiseEvent('OnDeleteCommand',$this,$param); } /** - * Raises UpdateCommand event. + * Raises OnUpdateCommand event. * This method is invoked when a child control of the data list * raises an Command event and the command name is 'update' (case-insensitive). * @param TDataListCommandEventParameter event parameter */ protected function onUpdateCommand($param) { - $this->raiseEvent('UpdateCommand',$this,$param); + $this->raiseEvent('OnUpdateCommand',$this,$param); } /** - * Raises CancelCommand event. + * Raises OnCancelCommand event. * This method is invoked when a child control of the data list * raises an Command event and the command name is 'cancel' (case-insensitive). * @param TDataListCommandEventParameter event parameter */ protected function onCancelCommand($param) { - $this->raiseEvent('CancelCommand',$this,$param); + $this->raiseEvent('OnCancelCommand',$this,$param); } /** diff --git a/framework/Web/UI/WebControls/TDataSourceControl.php b/framework/Web/UI/WebControls/TDataSourceControl.php index eaf39199..51b06f9a 100644 --- a/framework/Web/UI/WebControls/TDataSourceControl.php +++ b/framework/Web/UI/WebControls/TDataSourceControl.php @@ -47,7 +47,7 @@ abstract class TDataSourceControl extends TControl implements IDataSource public function onDataSourceChanged($param) { - $this->raiseEvent('DataSourceChanged',$this,$param); + $this->raiseEvent('OnDataSourceChanged',$this,$param); } public function focus() diff --git a/framework/Web/UI/WebControls/TDataSourceView.php b/framework/Web/UI/WebControls/TDataSourceView.php index ceed981f..ab79e74c 100644 --- a/framework/Web/UI/WebControls/TDataSourceView.php +++ b/framework/Web/UI/WebControls/TDataSourceView.php @@ -171,7 +171,7 @@ abstract class TDataSourceView extends TComponent protected function onDataSourceViewChanged($param) { - $this->raiseEvent('DataSourceViewChanged',$this,$param); + $this->raiseEvent('OnDataSourceViewChanged',$this,$param); } } diff --git a/framework/Web/UI/WebControls/TFileUpload.php b/framework/Web/UI/WebControls/TFileUpload.php index ba47f4d9..4a3d3a08 100644 --- a/framework/Web/UI/WebControls/TFileUpload.php +++ b/framework/Web/UI/WebControls/TFileUpload.php @@ -23,7 +23,7 @@ * file size information. If the upload is not successful, {@link getErrorCode ErrorCode} * contains the error code describing the cause of failure. * - * TFileUpload raises {@link onFileUpload FileUpload} event if a file is uploaded + * TFileUpload raises {@link onFileUpload OnFileUpload} event if a file is uploaded * (whether it succeeds or not). * * @author Marcus Nyeholt , Qiang Xue @@ -224,14 +224,14 @@ class TFileUpload extends TWebControl implements IPostBackDataHandler, IValidata /** * This method is invoked when a file is uploaded during a postback. - * The method raises FileUpload event to fire up the event handler. + * The method raises OnFileUpload event to fire up the event handler. * If you override this method, be sure to call the parent implementation * so that the event delegates can be invoked. * @param TEventParameter event parameter to be passed to the event handlers */ protected function onFileUpload($param) { - $this->raiseEvent('FileUpload',$this,$param); + $this->raiseEvent('OnFileUpload',$this,$param); } /** diff --git a/framework/Web/UI/WebControls/THiddenField.php b/framework/Web/UI/WebControls/THiddenField.php index fe758c6b..7b112b0f 100644 --- a/framework/Web/UI/WebControls/THiddenField.php +++ b/framework/Web/UI/WebControls/THiddenField.php @@ -15,7 +15,7 @@ * * THiddenField displays a hidden input field on a Web page. * The value of the input field can be accessed via {@link getValue Value} property. - * If upon postback the value is changed, a {@link onValueChanged ValueChanged} + * If upon postback the value is changed, a {@link onValueChanged OnValueChanged} * event will be raised. * * @author Qiang Xue @@ -94,14 +94,14 @@ class THiddenField extends TControl implements IPostBackDataHandler /** * This method is invoked when the value of the {@link getValue Value} property changes between posts to the server. - * The method raises 'ValueChanged' event to fire up the event delegates. + * The method raises 'OnValueChanged' event to fire up the event delegates. * If you override this method, be sure to call the parent implementation * so that the attached event handlers can be invoked. * @param TEventParameter event parameter to be passed to the event handlers */ public function onValueChanged($param) { - $this->raiseEvent('ValueChanged',$this,$param); + $this->raiseEvent('OnValueChanged',$this,$param); } /** diff --git a/framework/Web/UI/WebControls/THyperLinkColumn.php b/framework/Web/UI/WebControls/THyperLinkColumn.php index 34991845..6a14ea5b 100644 --- a/framework/Web/UI/WebControls/THyperLinkColumn.php +++ b/framework/Web/UI/WebControls/THyperLinkColumn.php @@ -176,7 +176,7 @@ class THyperLinkColumn extends TDataGridColumn $link->setNavigateUrl($this->getNavigateUrl()); $link->setTarget($this->getTarget()); if($this->getDataTextField()!=='' || $this->getDataNavigateUrlField()!=='') - $link->attachEventHandler('DataBinding',array($this,'dataBindColumn')); + $link->attachEventHandler('OnDataBinding',array($this,'dataBindColumn')); $cell->getControls()->add($link); } } diff --git a/framework/Web/UI/WebControls/TImageButton.php b/framework/Web/UI/WebControls/TImageButton.php index 7674cf56..dfa1752c 100644 --- a/framework/Web/UI/WebControls/TImageButton.php +++ b/framework/Web/UI/WebControls/TImageButton.php @@ -27,7 +27,7 @@ Prado::using('System.Web.UI.WebControls.TImage'); * associated with the button. This allows you to create multiple TLinkButton * components on a Web page and programmatically determine which one is clicked * with what parameter. You can provide an event handler for - * {@link onCommand Command} event to programmatically control the actions performed + * {@link onCommand OnCommand} event to programmatically control the actions performed * when the command button is clicked. In the event handler, you can determine * the {@link setCommandName CommandName} property value and * the {@link setCommandParameter CommandParameter} property value @@ -38,9 +38,9 @@ Prado::using('System.Web.UI.WebControls.TImage'); * A submit button does not have a command name associated with the button * and clicking on it simply posts the Web page back to the server. * By default, a TImageButton control is a submit button. - * You can provide an event handler for the {@link onClick Click} event + * You can provide an event handler for the {@link onClick OnClick} event * to programmatically control the actions performed when the submit button is clicked. - * The coordinates of the clicking point can be obtained from the {@link onClick Click} + * The coordinates of the clicking point can be obtained from the {@link onClick OnClick} * event parameter, which is of type {@link TImageClickEventParameter}. * * Clicking on button can trigger form validation, if @@ -147,26 +147,26 @@ class TImageButton extends TImage implements IPostBackDataHandler, IPostBackEven /** * This method is invoked when the button is clicked. - * The method raises 'Click' event to fire up the event handlers. + * The method raises 'OnClick' event to fire up the event handlers. * If you override this method, be sure to call the parent implementation * so that the event handler can be invoked. * @param TImageClickEventParameter event parameter to be passed to the event handlers */ public function onClick($param) { - $this->raiseEvent('Click',$this,$param); + $this->raiseEvent('OnClick',$this,$param); } /** * This method is invoked when the button is clicked. - * The method raises 'Command' event to fire up the event handlers. + * The method raises 'OnCommand' event to fire up the event handlers. * If you override this method, be sure to call the parent implementation * so that the event handlers can be invoked. * @param TCommandEventParameter event parameter to be passed to the event handlers */ public function onCommand($param) { - $this->raiseEvent('Command',$this,$param); + $this->raiseEvent('OnCommand',$this,$param); $this->raiseBubbleEvent($this,$param); } @@ -175,7 +175,7 @@ class TImageButton extends TImage implements IPostBackDataHandler, IPostBackEven * This method is required by {@link IPostBackEventHandler} interface. * If {@link getCausesValidation CausesValidation} is true, it will * invoke the page's {@link TPage::validate validate} method first. - * It will raise {@link onClick Click} and {@link onCommand Command} events. + * It will raise {@link onClick OnClick} and {@link onCommand OnCommand} events. * This method is mainly used by framework and control developers. * @param TEventParameter the event parameter */ @@ -204,7 +204,7 @@ class TImageButton extends TImage implements IPostBackDataHandler, IPostBackEven } /** - * @return string the command name associated with the {@link onCommand Command} event. + * @return string the command name associated with the {@link onCommand OnCommand} event. */ public function getCommandName() { @@ -212,7 +212,7 @@ class TImageButton extends TImage implements IPostBackDataHandler, IPostBackEven } /** - * Sets the command name associated with the {@link onCommand Command} event. + * Sets the command name associated with the {@link onCommand OnCommand} event. * @param string the text caption to be set */ public function setCommandName($value) @@ -221,7 +221,7 @@ class TImageButton extends TImage implements IPostBackDataHandler, IPostBackEven } /** - * @return string the parameter associated with the {@link onCommand Command} event + * @return string the parameter associated with the {@link onCommand OnCommand} event */ public function getCommandParameter() { @@ -229,7 +229,7 @@ class TImageButton extends TImage implements IPostBackDataHandler, IPostBackEven } /** - * Sets the parameter associated with the {@link onCommand Command} event. + * Sets the parameter associated with the {@link onCommand OnCommand} event. * @param string the text caption to be set */ public function setCommandParameter($value) diff --git a/framework/Web/UI/WebControls/TLinkButton.php b/framework/Web/UI/WebControls/TLinkButton.php index 113a3a69..c24119e5 100644 --- a/framework/Web/UI/WebControls/TLinkButton.php +++ b/framework/Web/UI/WebControls/TLinkButton.php @@ -24,7 +24,7 @@ * associated with the button. This allows you to create multiple TLinkButton * components on a Web page and programmatically determine which one is clicked * with what parameter. You can provide an event handler for - * {@link onCommand Command} event to programmatically control the actions performed + * {@link onCommand OnCommand} event to programmatically control the actions performed * when the command button is clicked. In the event handler, you can determine * the {@link setCommandName CommandName} property value and * the {@link setCommandParameter CommandParameter} property value @@ -35,7 +35,7 @@ * A submit button does not have a command name associated with the button * and clicking on it simply posts the Web page back to the server. * By default, a TLinkButton component is a submit button. - * You can provide an event handler for the {@link onClick Click} event + * You can provide an event handler for the {@link onClick OnClick} event * to programmatically control the actions performed when the submit button is clicked. * * Clicking on button can trigger form validation, if @@ -138,7 +138,7 @@ class TLinkButton extends TWebControl implements IPostBackEventHandler } /** - * @return string the command name associated with the {@link onCommand Command} event. + * @return string the command name associated with the {@link onCommand OnCommand} event. */ public function getCommandName() { @@ -146,7 +146,7 @@ class TLinkButton extends TWebControl implements IPostBackEventHandler } /** - * Sets the command name associated with the {@link onCommand Command} event. + * Sets the command name associated with the {@link onCommand OnCommand} event. * @param string the text caption to be set */ public function setCommandName($value) @@ -155,7 +155,7 @@ class TLinkButton extends TWebControl implements IPostBackEventHandler } /** - * @return string the parameter associated with the {@link onCommand Command} event + * @return string the parameter associated with the {@link onCommand OnCommand} event */ public function getCommandParameter() { @@ -163,7 +163,7 @@ class TLinkButton extends TWebControl implements IPostBackEventHandler } /** - * Sets the parameter associated with the {@link onCommand Command} event. + * Sets the parameter associated with the {@link onCommand OnCommand} event. * @param string the text caption to be set */ public function setCommandParameter($value) @@ -209,7 +209,7 @@ class TLinkButton extends TWebControl implements IPostBackEventHandler * This method is required by {@link IPostBackEventHandler} interface. * If {@link getCausesValidation CausesValidation} is true, it will * invoke the page's {@link TPage::validate validate} method first. - * It will raise {@link onClick Click} and {@link onCommand Command} events. + * It will raise {@link onClick OnClick} and {@link onCommand OnCommand} events. * This method is mainly used by framework and control developers. * @param TEventParameter the event parameter */ @@ -223,26 +223,26 @@ class TLinkButton extends TWebControl implements IPostBackEventHandler /** * This method is invoked when the button is clicked. - * The method raises 'Click' event to fire up the event handlers. + * The method raises 'OnClick' event to fire up the event handlers. * If you override this method, be sure to call the parent implementation * so that the event handler can be invoked. * @param TEventParameter event parameter to be passed to the event handlers */ public function onClick($param) { - $this->raiseEvent('Click',$this,$param); + $this->raiseEvent('OnClick',$this,$param); } /** * This method is invoked when the button is clicked. - * The method raises 'Command' event to fire up the event handlers. + * The method raises 'OnCommand' event to fire up the event handlers. * If you override this method, be sure to call the parent implementation * so that the event handlers can be invoked. * @param TCommandEventParameter event parameter to be passed to the event handlers */ public function onCommand($param) { - $this->raiseEvent('Command',$this,$param); + $this->raiseEvent('OnCommand',$this,$param); $this->raiseBubbleEvent($this,$param); } } diff --git a/framework/Web/UI/WebControls/TListControl.php b/framework/Web/UI/WebControls/TListControl.php index d15a7bf1..38a43173 100644 --- a/framework/Web/UI/WebControls/TListControl.php +++ b/framework/Web/UI/WebControls/TListControl.php @@ -497,25 +497,25 @@ abstract class TListControl extends TDataBoundControl } /** - * Raises SelectedIndexChanged event when selection is changed. + * Raises OnSelectedIndexChanged event when selection is changed. * This method is invoked when the list control has its selection changed * by end-users. * @param TEventParameter event parameter */ public function onSelectedIndexChanged($param) { - $this->raiseEvent('SelectedIndexChanged',$this,$param); + $this->raiseEvent('OnSelectedIndexChanged',$this,$param); } /** - * Raises TextChanged event when selection is changed. + * Raises OnTextChanged event when selection is changed. * This method is invoked when the list control has its selection changed * by end-users. * @param TEventParameter event parameter */ public function onTextChanged($param) { - $this->raiseEvent('TextChanged',$this,$param); + $this->raiseEvent('OnTextChanged',$this,$param); } /** diff --git a/framework/Web/UI/WebControls/TRadioButton.php b/framework/Web/UI/WebControls/TRadioButton.php index d965b64f..ee53107a 100644 --- a/framework/Web/UI/WebControls/TRadioButton.php +++ b/framework/Web/UI/WebControls/TRadioButton.php @@ -29,10 +29,10 @@ Prado::using('System.Web.UI.WebControls.TRadioButtonList'); * property. * * To determine whether the TRadioButton component is checked, test the {@link getChecked Checked} - * property. The {@link onCheckedChanged CheckedChanged} event is raised when + * property. The {@link onCheckedChanged OnCheckedChanged} event is raised when * the {@link getChecked Checked} state of the TRadioButton component changes * between posts to the server. You can provide an event handler for - * the {@link onCheckedChanged CheckedChanged} event to to programmatically + * the {@link onCheckedChanged OnCheckedChanged} event to to programmatically * control the actions performed when the state of the TRadioButton component changes * between posts to the server. * diff --git a/framework/Web/UI/WebControls/TRepeater.php b/framework/Web/UI/WebControls/TRepeater.php index a75fd63e..92d87b64 100644 --- a/framework/Web/UI/WebControls/TRepeater.php +++ b/framework/Web/UI/WebControls/TRepeater.php @@ -39,15 +39,15 @@ Prado::using('System.Web.UI.WebControls.TDataBoundControl'); * The header and footer items can be accessed by {@link getHeader Header} * and {@link getFooter Footer} properties, respectively. * - * When TRepeater creates an item, it will raise an {@link onItemCreated ItemCreated} + * When TRepeater creates an item, it will raise an {@link onItemCreated OnItemCreated} * so that you may customize the newly created item. * When databinding is performed by TRepeater, for each item once it has finished - * databinding, an {@link onItemDataBound ItemDataBound} event will be raised. + * databinding, an {@link onItemDataBound OnItemDataBound} event will be raised. * - * TRepeater raises an {@link onItemCommand ItemCommand} whenever a button control + * TRepeater raises an {@link onItemCommand OnItemCommand} whenever a button control * within some repeater item raises a Command event. Therefore, * you can handle all sorts of Command event in a central place by - * writing an event handler for {@link onItemCommand ItemCommand}. + * writing an event handler for {@link onItemCommand OnItemCommand}. * * @author Qiang Xue * @version $Revision: $ $Date: $ @@ -415,7 +415,7 @@ class TRepeater extends TDataBoundControl implements INamingContainer /** * Handles BubbleEvent. * This method overrides parent's implementation to handle - * {@link onItemCommand ItemCommand} event which is bubbled from + * {@link onItemCommand OnItemCommand} event which is bubbled from * {@link TRepeaterItem} child controls. * This method should only be used by control developers. * @param TControl the sender of the event @@ -434,7 +434,7 @@ class TRepeater extends TDataBoundControl implements INamingContainer } /** - * Raises ItemCreated event. + * Raises OnItemCreated event. * This method is invoked after a repeater item is created and instantiated with * template, but before added to the page hierarchy. * The {@link TRepeaterItem} control responsible for the event @@ -445,11 +445,11 @@ class TRepeater extends TDataBoundControl implements INamingContainer */ protected function onItemCreated($param) { - $this->raiseEvent('ItemCreated',$this,$param); + $this->raiseEvent('OnItemCreated',$this,$param); } /** - * Raises ItemDataBound event. + * Raises OnItemDataBound event. * This method is invoked right after an item is data bound. * The {@link TRepeaterItem} control responsible for the event * can be determined from the event parameter. @@ -459,11 +459,11 @@ class TRepeater extends TDataBoundControl implements INamingContainer */ protected function onItemDataBound($param) { - $this->raiseEvent('ItemDataBound',$this,$param); + $this->raiseEvent('OnItemDataBound',$this,$param); } /** - * Raises ItemCommand event. + * Raises OnItemCommand event. * This method is invoked after a button control in * a template raises Command event. * The {@link TRepeaterItem} control responsible for the event @@ -478,7 +478,7 @@ class TRepeater extends TDataBoundControl implements INamingContainer */ protected function onItemCommand($param) { - $this->raiseEvent('ItemCommand',$this,$param); + $this->raiseEvent('OnItemCommand',$this,$param); } } diff --git a/framework/Web/UI/WebControls/TTextBox.php b/framework/Web/UI/WebControls/TTextBox.php index 276982ac..12f90c7b 100644 --- a/framework/Web/UI/WebControls/TTextBox.php +++ b/framework/Web/UI/WebControls/TTextBox.php @@ -212,15 +212,16 @@ class TTextBox extends TWebControl implements IPostBackDataHandler, IValidatable } /** + * Raises OnTextChanged event. * This method is invoked when the value of the {@link getText Text} - * property changes on postback. The method raises TextChanged event. + * property changes on postback. * If you override this method, be sure to call the parent implementation to ensure * the invocation of the attached event handlers. * @param TEventParameter event parameter to be passed to the event handlers */ protected function onTextChanged($param) { - $this->raiseEvent('TextChanged',$this,$param); + $this->raiseEvent('OnTextChanged',$this,$param); } /** -- cgit v1.2.3