phpDocumentor CYap
[ Back ] [ class tree: CYap ] [ index: CYap ] [ all elements ]

Class: CYap_DetailView

Source Location: /CYap_Table.php

Class CYap_DetailView

Property Summary
integer   $CurrentCol   Last column set by Cell()
boolean   $EchoText   Should the class echoed the HTML code or cache it
array   $formats   Store the output fotmats command
string   $HtmlCode   Text not echoed
array   $Lang   Language text
boolean   $PendingHeader   Do i have any pending table headr?
boolean   $PendingRow   Do i have any pending row?

[ Top ]
Method Summary
CYap_DetailView   CYap_DetailView()   Class initializer
void   BeginTable()   Shows the open table tag, and initialise the module to print the
void   Cell()   Set the cell contents. First cell
void   EndTable()   Show out the html tags to close the table
void   FlushCode()   Flush the code. If $this->EchoText is set to false, the class append
void   HeaderStart()   Start a new table header row
void   LoadFormats()   Load the formats used to display the fields. The formats are loaded from yap's configuration file.
void   Out()   Check according to the class set if

[ Top ]
Properties
integer   $CurrentCol [line 319]

Last column set by Cell()

API Tags:
See:  CYap_DetailView::Cell()


[ Top ]
boolean   $EchoText [line 334]

Should the class echoed the HTML code or cache it


[ Top ]
array   $formats [line 351]

Store the output fotmats command

API Tags:
Uses:  Cyap::_ManageFormats() - build the array
Uses:  CYap_DetailView::LoadFormats() - Set this var


[ Top ]
string   $HtmlCode [line 339]

Text not echoed


[ Top ]
array   $Lang [line 344]

Language text


[ Top ]
boolean   $PendingHeader [line 329]

Do i have any pending table headr?


[ Top ]
boolean   $PendingRow [line 324]

Do i have any pending row?


[ Top ]
Methods
Constructor CYap_DetailView  [line 356]

  CYap_DetailView CYap_DetailView( mixed $Lang, string $lang  )

Class initializer

Parameters:
string   $lang:  language selection


[ Top ]
BeginTable  [line 383]

  void BeginTable( )

Shows the open table tag, and initialise the module to print the

the table contents


API Tags:
Access:  public


[ Top ]
Cell  [line 415]

  void Cell( [mixed $label = ''], [mixed $txt_in = ''], string $FieldName, [format $fmt = 'NONE'], string $text, integer $offset  )

Set the cell contents. First cell

Parameters:
string   $text:  cell's text
integer   $offset:  nth cell to set. default the next one. The first cell is 0
string   $FieldName:  Name of the field to be printed
format   $fmt:  name. It is the index of $formats and it set the format to use to show the cell contents

API Tags:
Access:  public
Uses:  Cyap::_ManageFormats() - build the array


[ Top ]
EndTable  [line 431]

  void EndTable( )

Show out the html tags to close the table


API Tags:
Access:  public


[ Top ]
FlushCode  [line 444]

  void FlushCode( )

Flush the code. If $this->EchoText is set to false, the class append

the text to $this->HtmlCode. Call this function to show out $this->HtmlCode


API Tags:
See:  CYap_DetailView::$EchoText
See:  CYap_DetailView::Out()
Access:  public


[ Top ]
HeaderStart  [line 395]

  void HeaderStart( )

Start a new table header row

if exists


API Tags:
Access:  public


[ Top ]
LoadFormats  [line 373]

  void LoadFormats( $fmt $fmt  )

Load the formats used to display the fields. The formats are loaded from yap's configuration file.

Parameters:
$fmt   $fmt:  array it contains the formats command. The array is build by CYap::_ManageFormats

API Tags:
Access:  public
See:  Cyap::_ManageFormats()

Information Tags:
Usedby:  CYap_DetailView::$formats - Set this var
Usedby:  CYap_TableView::$formats - Set this var

[ Top ]
Out  [line 454]

  void Out( string $text  )

Check according to the class set if

echo the HTML code or not

Parameters:
string   $text: 

API Tags:
Access:  private


[ Top ]

Documentation generated on Sat, 26 Feb 2005 14:10:04 +0100 by phpDocumentor 1.3.0RC3