Packageindex Classtrees Modulegroups Elementlist Report XML Files

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("<td>"));

 
Direct known subclasses: CButton, CControl

Methods inherited from CSnippet

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

Public Method Summary

void

CMarkup([ mixed $attrs ])

Constructor.

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

Private Field Summary

string

$attrs

string

$nodata

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: <tag attrs> 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<<




Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta