[ Index ] |
|
Code source de PRADO 3.0.6 |
[Code source] [Imprimer] [Statistiques]
TRadioButton class file
Author: | Qiang Xue <qiang.xue@gmail.com> |
Copyright: | Copyright © 2005 PradoSoft |
License: | http://www.pradosoft.com/license/ |
Version: | $Id: TRadioButton.php 1397 2006-09-07 07:55:53Z wei $ |
Poids: | 271 lignes (9 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
TRadioButton:: (11 méthodes):
__construct()
onInit()
onUnLoad()
loadPostData()
getGroupName()
setGroupName()
getUniqueGroupName()
setUniqueGroupName()
getRadioButtonsInGroup()
getValueAttribute()
renderInputTag()
Classe: TRadioButton - X-Ref
TRadioButton class__construct() X-Ref |
Constructor. Registers the radiobutton in a global radiobutton collection. If overridden, the parent implementation must be invoked first. |
onInit($param) X-Ref |
Registers the radio button groupings. If overriding onInit method, ensure to call parent implemenation. param: TEventParameter event parameter to be passed to the event handlers |
onUnLoad($param) X-Ref |
Unregisters the radio button groupings. If overriding onInit method, ensure to call parent implemenation. param: TEventParameter event parameter to be passed to the event handlers |
loadPostData($key,$values) X-Ref |
Loads user input data. This method is primarly used by framework developers. param: string the key that can be used to retrieve data from the input data collection param: array the input data collection return: boolean whether the data of the control has been changed |
getGroupName() X-Ref |
return: string the name of the group that the radio button belongs to. Defaults to empty. |
setGroupName($value) X-Ref |
Sets the name of the group that the radio button belongs to. The group is unique among the control's naming container. param: string the group name |
getUniqueGroupName() X-Ref |
return: string the name used to fetch radiobutton post data |
setUniqueGroupName($value) X-Ref |
Sets the unique group name that the radio button belongs to. A unique group is a radiobutton group unique among the whole page hierarchy, while the {@link setGroupName GroupName} specifies a group that is unique among the control's naming container only. For example, each cell of a {@link TDataGrid} is a naming container. If you specify {@link setGroupName GroupName} for a radiobutton in a cell, it groups together radiobutton within a cell, but not the other, even though they have the same {@link setGroupName GroupName}. On the contratry, if {@link setUniqueGroupName UniqueGroupName} is used instead, it will group all appropriate radio buttons on the whole page hierarchy. Note, when both {@link setUniqueGroupName UniqueGroupName} and {@link setGroupName GroupName}, the former takes precedence. param: string the group name |
getRadioButtonsInGroup() X-Ref |
Gets an array of radiobuttons whose group name is the same as this radiobutton's. Note, only those radiobuttons that are on the current page hierarchy may be returned in the result. return: array list of TRadioButton with the same group |
getValueAttribute() X-Ref |
return: string the value attribute to be rendered |
renderInputTag($writer,$clientID,$onclick) X-Ref |
Renders a radiobutton input element. param: THtmlWriter the writer for the rendering purpose param: string checkbox id param: string onclick js |
Généré le : Sun Feb 25 21:07:04 2007 | par Balluche grâce à PHPXref 0.7 |