CYap_TableView CYap_TableView(
mixed
$Lang
)
|
|
void AddRowCell(
string
$link
)
|
|
Add a new row that contains only one cell: the new row link
Parameters:
|
string |
$link: |
the link code to write into the cell |
API Tags:
Shows the open table tag, and initialise the module to print the
the table contents
API Tags:
void Cell(
mixed
$txt_in, string
$FieldName, [integer
$offset = -1], [format
$fmt = 'NONE'], string
$text
)
|
|
Set the cell contents. First cell
Fieldname: 'DETAIL', 'MODIFY' and 'DELETE' point the link to this functions
Parameters:
|
string |
$text: |
cell's text |
|
string |
$FieldName: |
Name of the field to be printed |
|
integer |
$offset: |
nth cell to set. default the next one. The first cell is 0 |
|
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 |
void HeaderCell(
string
$Href, string
$Label, [integer
$offset = -1]
)
|
|
Set the header cell contents. First cell
Parameters:
|
string |
$Href: |
Page to call when the user click on the column's header |
|
string |
$Label: |
Column's label |
|
integer |
$offset: |
nth cell to set. default the next one. The first cell is 0 |
API Tags:
Close the table header (if any). After this function, the class may accept the table contents.
API Tags:
Start a new table header row
if exists
API Tags:
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:
Start a new table row and close the prevoius one
if exists
API Tags:
Check according to the class set if
echo the HTML code or not
Parameters:
API Tags:
void SpecialCell(
mixed
$link, mixed
$type, [mixed
$offset = -1]
)
|
|