|
|
File: g:\Work\WWW\php\tbox\lib/cmarkup.phps
PHP Documentation - PHP/Toolbox::Form
CMarkup
CSnippet | +-- CMarkup
Basic form markup class.
|
private class CMarkup extends CSnippet
Basic form markup class.
$form->addControl(NO_INDEX, new CMarkup(""));
|
|
|
Direct known subclasses: CButton, CControl
|
|
|
|
Private Method Summary |
void |
render()No additional comments. |
void |
renderReadonly()No additional comments. |
void |
write( $s)Just 'echoes' the string by default.No additional comments. |
|
Fields inherited from CSnippet |
$id |
|
|
Public Method Details |
CMarkup |
public void CMarkup( [ mixed $attrs ] )
|
|
Constructor.
|
Parameter |
|
mixed |
$attrs |
= >>""<<
|
|
- you can specify it as an array (us usual for CSnippet)
or just string as well. In latter case the specified string
just appended to html-tag as attribute string:
If you need to specify it together with other fields you have to
append it to array, e.g.:
array("field"=>$value, "attrs"=>"nowrap")
Note that it is inherited by all ccontrols and cbutton as well. |
|
Returns |
void |
|
|
Private Method Details |
render |
private void render( )
|
|
No additional comments.
|
Returns |
void |
|
renderReadonly |
private void renderReadonly( )
|
|
No additional comments.
|
Returns |
void |
|
write |
private void write( $s )
|
|
Just 'echoes' the string by default.
Use it to override this default behavior,
e.g. to redirect output to file.
No additional comments.
|
Parameter |
|
|
$s |
|
|
No additional comments. |
|
Returns |
void |
|
|
Private Field Details |
$attrs |
private string $attrs
>>"" <<
|
|
$nodata |
private string $nodata
>>TRUE <<
|
|
|
|
|
PHPDoc 1.0beta |