公有成员 | |
| FLEA_WebControls ($extendsDir=null) | |
| control ($type, $name, $attribs=null, $return=false) | |
| attribsToString ($attribs) | |
| extractAttribs (&$attribs, $req) | |
| mergeAttribs (&$attribs) | |
| & | _getView () |
| _ctlTextbox ($name, $attribs) | |
| _ctlPassword ($name, $attribs) | |
| _ctlMemo ($name, $attribs) | |
| _ctlCheckbox ($name, $attribs) | |
| _ctlCheckBoxGroup ($name, $attribs) | |
| _ctlRadio ($name, $attribs) | |
| _ctlRadioGroup ($name, $attribs) | |
| _ctlListBox ($name, $attribs) | |
| _ctlDropdownList ($name, $attribs) | |
| _ctlFileUpload ($name, $attribs) | |
| _ctlButton ($name, $attribs, $buttonType= 'button') | |
| _ctlSubmit ($name, $attribs) | |
| _ctlReset ($name, $attribs) | |
| _ctlLabel ($name, $attribs) | |
| _ctlStatic ($name, $attribs) | |
| _ctlHidden ($name, $attribs) | |
| __baseCtlInput ($name, $attribs, $type) | |
| __baseCtlCheckboxOrRadio ($name, $attribs, $type) | |
| __baseCtlCheckboxOrRadioGroup ($name, $attribs, $type, $suffix) | |
| __processMultiDimArray (&$items, &$key, &$caption, $key2caption=false) | |
公有属性 | |
| $_extends = array() | |
| $_extendsDir = array() | |
在文件WebControls.php第29行定义。
| FLEA_WebControls::FLEA_WebControls | ( | $ | extendsDir = null |
) |
| FLEA_WebControls::control | ( | $ | type, | |
| $ | name, | |||
| $ | attribs = null, |
|||
| $ | return = false | |||
| ) |
构造一个控件的 HTML 代码
| string | $type | |
| string | $name | |
| array | $attribs | |
| boolean | $return |
在文件WebControls.php第77行定义。
| FLEA_WebControls::attribsToString | ( | $ | attribs | ) |
构造控件的属性字符串
| array | $attribs |
在文件WebControls.php第120行定义。
参考自 __baseCtlCheckboxOrRadio()及__baseCtlCheckboxOrRadioGroup().
| FLEA_WebControls::extractAttribs | ( | &$ | attribs, | |
| $ | req | |||
| ) |
从属性数组中导出需要的属性
| array | $attribs | |
| array | $req |
在文件WebControls.php第137行定义。
参考自 __baseCtlCheckboxOrRadio()及__baseCtlCheckboxOrRadioGroup().
| FLEA_WebControls::mergeAttribs | ( | &$ | attribs | ) |
| & FLEA_WebControls::_getView | ( | ) |
| FLEA_WebControls::_ctlTextbox | ( | $ | name, | |
| $ | attribs | |||
| ) |
| FLEA_WebControls::_ctlPassword | ( | $ | name, | |
| $ | attribs | |||
| ) |
| FLEA_WebControls::_ctlMemo | ( | $ | name, | |
| $ | attribs | |||
| ) |
| FLEA_WebControls::_ctlCheckbox | ( | $ | name, | |
| $ | attribs | |||
| ) |
| FLEA_WebControls::_ctlCheckBoxGroup | ( | $ | name, | |
| $ | attribs | |||
| ) |
| FLEA_WebControls::_ctlRadio | ( | $ | name, | |
| $ | attribs | |||
| ) |
| FLEA_WebControls::_ctlRadioGroup | ( | $ | name, | |
| $ | attribs | |||
| ) |
| FLEA_WebControls::_ctlListBox | ( | $ | name, | |
| $ | attribs | |||
| ) |
| FLEA_WebControls::_ctlDropdownList | ( | $ | name, | |
| $ | attribs | |||
| ) |
| FLEA_WebControls::_ctlFileUpload | ( | $ | name, | |
| $ | attribs | |||
| ) |
| FLEA_WebControls::_ctlButton | ( | $ | name, | |
| $ | attribs, | |||
| $ | buttonType = 'button' | |||
| ) |
| FLEA_WebControls::_ctlSubmit | ( | $ | name, | |
| $ | attribs | |||
| ) |
| FLEA_WebControls::_ctlReset | ( | $ | name, | |
| $ | attribs | |||
| ) |
| FLEA_WebControls::_ctlLabel | ( | $ | name, | |
| $ | attribs | |||
| ) |
构造一个标签控件
| string | $name | |
| array | $attribs |
在文件WebControls.php第493行定义。
参考自 __baseCtlCheckboxOrRadio()及__baseCtlCheckboxOrRadioGroup().
| FLEA_WebControls::_ctlStatic | ( | $ | name, | |
| $ | attribs | |||
| ) |
| FLEA_WebControls::_ctlHidden | ( | $ | name, | |
| $ | attribs | |||
| ) |
| FLEA_WebControls::__baseCtlInput | ( | $ | name, | |
| $ | attribs, | |||
| $ | type | |||
| ) |
| FLEA_WebControls::__baseCtlCheckboxOrRadio | ( | $ | name, | |
| $ | attribs, | |||
| $ | type | |||
| ) |
| FLEA_WebControls::__baseCtlCheckboxOrRadioGroup | ( | $ | name, | |
| $ | attribs, | |||
| $ | type, | |||
| $ | suffix | |||
| ) |
构造一个多选框或单选按钮组
| string | $name | |
| array | $attribs | |
| string | $type | |
| string | $suffix |
在文件WebControls.php第623行定义。
参考 __processMultiDimArray()、_ctlLabel()、attribsToString()及extractAttribs().
| FLEA_WebControls::__processMultiDimArray | ( | &$ | items, | |
| &$ | key, | |||
| &$ | caption, | |||
| $ | key2caption = false | |||
| ) |
将多维数组转换为一维数组
| array | $items | |
| string | $key | |
| string | $caption | |
| boolean | $key2caption |
在文件WebControls.php第747行定义。
| FLEA_WebControls::$_extends = array() |
在文件WebControls.php第36行定义。
| FLEA_WebControls::$_extendsDir = array() |
在文件WebControls.php第43行定义。
1.5.3