|
|
File: g:\Work\WWW\php\tbox\lib/cselect.phps
PHP Documentation - PHP/Toolbox::Form
CSelect
CSnippet | +-- CMarkup | +-- CControl | +-- CSelect
The form selection ccontrol.
|
private class CSelect extends CControl
The form selection ccontrol.
| new CSelect(array(
| "label" => ...,
| "options" => ...
| ))
|
|
Direct known subclasses: CGroup
|
|
|
|
|
|
Private Method Summary |
void |
render()Main rendering method.No additional comments. |
void |
renderReadonly()Readonly rendering method.No additional comments. |
|
Fields inherited from CControl |
$nodata |
|
|
Fields inherited from CSnippet |
$id |
|
Private Field Summary |
string |
$multipleIf multiple === "auto" then 'multiple' tag attribute is generated automatically. |
unknown |
$optionsSpecify options as |
integer |
$sizeThreshold??? * |
string |
$type |
|
Public Method Details |
CSelect |
public void CSelect( $attrs )
|
|
Constructor.
|
Parameter |
|
|
$attrs |
|
|
No additional comments. |
|
Returns |
void |
|
|
Private Method Details |
render |
private void render( )
|
|
Main rendering method.
It never has to be used directly, use it via the parent form method
$form->renderControl($form->controls["name"]);
instead.
No additional comments.
|
Returns |
void |
|
renderReadonly |
private void renderReadonly( )
|
|
Readonly rendering method.
It's called by parent form when in Readonly mode.
It produces a plain text and a hidden field.
No additional comments.
|
Returns |
void |
|
|
Private Field Details |
$multiple |
private string $multiple
>>"auto" <<
If multiple === "auto" then 'multiple' tag attribute is generated automatically.
It appears if the value of control's variable is array.
|
|
$options |
private unknown $options
>> <<
Specify options as
- array("label"=>"value",...)
- array("value",...)
- "value|..."
|
|
$sizeThreshold |
private integer $sizeThreshold
>>8 <<
??? *
|
|
$type |
private string $type
>>"select" <<
|
|
|
|
|
PHPDoc 1.0beta |