Packageindex Classtrees Modulegroups Elementlist Report XML Files

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" => ... | ))

See Also$options

 
Direct known subclasses: CGroup

Methods inherited from CControl

ccontrol, getvalue, outvalue, invalue, validatevalue

Methods inherited from CMarkup

cmarkup, write

Methods inherited from CSnippet

csnippet, append, qualify, getglobal, setglobal, write, flush, writecode

Public Method Summary

void

CSelect( $attrs)

Constructor.

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 CMarkup

$attrs, $nodata

Fields inherited from CSnippet

$id

Private Field Summary

string

$multiple

If multiple === "auto" then 'multiple' tag attribute is generated automatically.
unknown

$options

Specify 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"<<




Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta