miViewRecordsManage the representation in table format of data, which is readed from miModelSQLRecordset object
Located in /view/ViewRecords.inc (line 25)
void
ShowPage
(string $mainTemplate, string $rowsTemplate, string $page, string $msg, [string $recordsPerPage = MI_RECORDS_PER_PAGE])
Constructor miViewRecords (line 65)
miViewRecords constructor. It takes one parameter - object of class miModelSQLRecordset or its subclasses
Example:
1 <?php
2 $recordset = new miModelSQLRecordset('tableName');
3 $ViewRecords = new miViewRecords($recordset);
4 ?>
addMainUiElements (line 336)
In this function subclasses will add specific elements to the main template page
addUiElements (line 323)
In this function subclasses will add table specific processing
assign (line 291)
Assigns a value to a specify main page element
getViewParams (line 89)
Gets the view params object
Parse (line 183)
Parse data in template files.
setMainPageElements (line 142)
Sets main page elements
setPage (line 102)
Sets the current page to show and the number of records per page
setPager (line 130)
Sets Object of class miDefaultRecordsetPager or its subclasses.
miDefaultRecordsetPager object is needed to manage the movement between pages. miViewRecords class sets an object of miDefaultRecordsetPager in it's constructor. Example:
1 <?php
2 $recordset = new miModelSQLRecordset('tableName');
3 $ViewRecords = new miViewRecords($recordset);
4 $pager = new miDefaultRecordsetPager;
5 $ViewRecords->setPager($pager);
6 ?>
setViewParams (line 78)
Sets the view params object
Show (line 165)
Shows page with data in table format.
Example:
1 <?php
2 $recordset = new miModelSQLRecordset('tableName');
3 $ViewRecords = new miViewRecords($recordset);
4 $ViewRecords->Show($mainTemplate, $rowsTemplate, $msg)
5 ?>
ShowPage (line 236)
Shows specify page
Example:
1 <?php
2 $recordset = new miModelSQLRecordset('tableName');
3 $ViewRecords = new miViewRecords($recordset);
4 $ViewRecords->ShowPage($mainTemplate, $rowsTemplate, $msg)
5 ?>
transposeRows (line 254)
Transposes the $rows array from array of hashes into a hash of arrays. All values are escaped with htmlentities(), except the values for keys starting with HTML_
Documentation generated on Mon, 18 Oct 2004 14:58:33 +0300 by phpDocumentor 1.2.3