YAP  2.5
 All Data Structures Namespaces Files Functions Variables
CYap_DetailView Class Reference

Public Member Functions

 CYap_DetailView ($Lang)
 
 LoadFormats ($fmt)
 
 BeginTable ()
 
 HeaderStart ()
 
 Cell ($label='', $txt_in='', $FieldName, $fmt='NONE')
 
 EndTable ()
 
 FlushCode ()
 
 Out ($text)
 

Data Fields

 $CurrentCol
 
 $PendingRow
 
 $PendingHeader
 
 $EchoText
 
 $HtmlCode
 
 $Lang
 
 $formats
 

Detailed Description

Definition at line 310 of file CYap_Table.php.

Member Function Documentation

BeginTable ( )

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

Definition at line 383 of file CYap_Table.php.

Cell (   $label = '',
  $txt_in = '',
  $FieldName,
  $fmt = 'NONE' 
)

Set the cell contents. First cell

Parameters
string$textcell's text
integer$offsetnth cell to set. default the next one. The first cell is 0
string$FieldNameName of the field to be printed
formatname. It is the index of $formats and it set the format to use to show the cell contents Cyap::_ManageFormats() build the array public

Definition at line 420 of file CYap_Table.php.

CYap_DetailView (   $Lang)

Class initializer

Parameters
string$langlanguage selection

Definition at line 356 of file CYap_Table.php.

EndTable ( )

Show out the html tags to close the table public

Definition at line 436 of file CYap_Table.php.

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 public

See Also
Out()
$EchoText

Definition at line 449 of file CYap_Table.php.

HeaderStart ( )

Start a new table header row if exists public

Definition at line 395 of file CYap_Table.php.

LoadFormats (   $fmt)

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

Parameters
$fmtarray it contains the formats command. The array is build by CYap::_ManageFormats
See Also
Cyap::_ManageFormats() public

Definition at line 373 of file CYap_Table.php.

Out (   $text)

Check according to the class set if echo the HTML code or not

Parameters
string$textprivate

Definition at line 459 of file CYap_Table.php.

Field Documentation

integer $CurrentCol

Last column set by Cell()

See Also
Cell()

Definition at line 319 of file CYap_Table.php.

boolean $EchoText

Should the class echoed the HTML code or cache it

Definition at line 334 of file CYap_Table.php.

$formats

Definition at line 351 of file CYap_Table.php.

string $HtmlCode

Text not echoed

Definition at line 339 of file CYap_Table.php.

array $Lang

Language text

Definition at line 344 of file CYap_Table.php.

boolean $PendingHeader

Do i have any pending table headr?

Definition at line 329 of file CYap_Table.php.

boolean $PendingRow

Do i have any pending row?

Definition at line 324 of file CYap_Table.php.


The documentation for this class was generated from the following file: