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

Public Member Functions

 CYap_TableView ($Lang)
 
 LoadFormats ($fmt)
 
 BeginTable ()
 
 HeaderStart ()
 
 HeaderCell ($Href, $Label, $offset=-1)
 
 HeaderClose ()
 
 NewRow ()
 
 Cell ($txt_in, $FieldName, $offset=-1, $fmt='NONE')
 
 SpecialCell ($link, $type, $offset=-1)
 
 AddRowCell ($link)
 
 EndTable ()
 
 FlushCode ()
 
 Out ($text)
 

Data Fields

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

Detailed Description

Definition at line 42 of file CYap_Table.php.

Member Function Documentation

AddRowCell (   $link)

Add a new row that contains only one cell: the new row link

Parameters
string$linkthe link code to write into the cell public

Definition at line 270 of file CYap_Table.php.

BeginTable ( )

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

Definition at line 121 of file CYap_Table.php.

Cell (   $txt_in,
  $FieldName,
  $offset = -1,
  $fmt = 'NONE' 
)

Set the cell contents. First cell Fieldname: 'DETAIL', 'MODIFY' and 'DELETE' point the link to this functions

Parameters
string$textcell's text
string$FieldNameName of the field to be printed
integer$offsetnth cell to set. default the next one. The first cell is 0
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 213 of file CYap_Table.php.

CYap_TableView (   $Lang)

Definition at line 90 of file CYap_Table.php.

EndTable ( )

Definition at line 281 of file CYap_Table.php.

FlushCode ( )

Definition at line 286 of file CYap_Table.php.

HeaderCell (   $Href,
  $Label,
  $offset = -1 
)

Set the header cell contents. First cell

Parameters
string$HrefPage to call when the user click on the column's header
string$LabelColumn's label
integer$offsetnth cell to set. default the next one. The first cell is 0 public

Definition at line 152 of file CYap_Table.php.

HeaderClose ( )

Close the table header (if any). After this function, the class may accept the table contents. public

Definition at line 172 of file CYap_Table.php.

HeaderStart ( )

Start a new table header row if exists public

Definition at line 133 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 111 of file CYap_Table.php.

NewRow ( )

Start a new table row and close the prevoius one if exists public

Definition at line 186 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 296 of file CYap_Table.php.

SpecialCell (   $link,
  $type,
  $offset = -1 
)

Definition at line 243 of file CYap_Table.php.

Field Documentation

$colSpecial

Definition at line 81 of file CYap_Table.php.

integer $CurrentCol

Last column set by Cell()

See Also
Cell()

Definition at line 51 of file CYap_Table.php.

boolean $EchoText

Should the class echoed the HTML code or cache it

Definition at line 66 of file CYap_Table.php.

$formats

Definition at line 88 of file CYap_Table.php.

string $HtmlCode

Text not echoed

Definition at line 71 of file CYap_Table.php.

array $Lang

Language text

Definition at line 76 of file CYap_Table.php.

boolean $PendingHeader

Do i have any pending table headr?

Definition at line 61 of file CYap_Table.php.

boolean $PendingRow

Do i have any pending row?

Definition at line 56 of file CYap_Table.php.


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