Static_Paginated_Grid __construct(
string
$name, string
$web_page, integer
$columns_number, [
$page_size = 10], integer
$current_page, integer
$total_pages
)
|
|
Enter description here...
Parameters:
|
string |
$name: |
Name of the grid |
|
string |
$web_page: |
Page that will controll the grid |
|
integer |
$columns_number: |
How many coluns will grid have |
|
integer |
$current_page: |
Current page |
|
integer |
$total_pages: |
Total pages |
|
|
$page_size: |
|
Redefinition of:
- Static_Grid::__construct()
- Constructor
void add_external_parameter(
string
$name, mixed
$value
)
|
|
Adds external parameter
Parameters:
|
string |
$name: |
|
|
mixed |
$value: |
|
API Tags:
Information Tags:
| Throws: | TE_Key_Already_Exists |
integer calculate_first_page(
)
|
|
Calculate index of first page
API Tags:
| Internal: | |
| Access: | protected |
integer calculate_last_page(
)
|
|
Calculate index of last page
API Tags:
| Internal: | |
| Access: | protected |
integer calculate_next_page(
)
|
|
Calculates next page index
API Tags:
| Internal: | |
| Access: | protected |
integer calculate_prev_page(
)
|
|
Calculate previous page index
API Tags:
| Internal: | |
| Access: | protected |
void calculate_records_from(
)
|
|
Calculates and returns start record number
API Tags:
void calculate_records_to(
)
|
|
Calculates and returnt end record number
API Tags:
integer get_current_page(
)
|
|
Returns current page number
API Tags:
array get_external_params(
)
|
|
Returns external parameters pairs
API Tags:
Returns page size
API Tags:
string get_static_html(
string
$path, unknown_type
$language
)
|
|
Returns generated HTML
Parameters:
|
string |
$path: |
Path to template file |
|
unknown_type |
$language: |
Navite language code |
API Tags:
Redefinition of:
- Static_Grid::get_static_html()
- Returns generated HTML
Redefined in descendants as:
integer get_total_pages(
)
|
|
Retursn total pages
API Tags:
integer get_total_rows(
)
|
|
Returns total rows (current sql_count)
API Tags:
TPLE_Exports get_tple_exports(
)
|
|
Returns TPLE exports for the grid
API Tags:
Redefinition of:
- Static_Grid::get_tple_exports()
- Get TPLE Exports
Redefined in descendants as:
Returns web events that may be generated by the grid
API Tags:
Redefined in descendants as:
Returns web page
API Tags:
string prepare_first_page_link(
)
|
|
Prepares link for the first page
API Tags:
| Internal: | |
| Access: | protected |
array prepare_jump_to_page_arr(
)
|
|
Prepares options array for "jump to page" select
API Tags:
string prepare_last_page_link(
)
|
|
Prepare link for last page
API Tags:
| Internal: | |
| Access: | protected |
string prepare_next_page_link(
)
|
|
Prepare link for next page
API Tags:
| Internal: | |
| Access: | protected |
string prepare_page_link(
)
|
|
Prepares page link
API Tags:
| Internal: | |
| Access: | private |
string prepare_prev_page_link(
)
|
|
Prepares previous page link
API Tags:
| Internal: | |
| Access: | protected |
Convert row to usable by the class format
API Tags:
| Internal: | |
| Access: | protected |
Redefined in descendants as:
void set_cp_and_tp(
integer
$current_page, integer
$total_pages
)
|
|
Set current page and total pages
Just a handy function that combines two other funcs
Parameters:
|
integer |
$current_page: |
|
|
integer |
$total_pages: |
|
API Tags:
void set_current_page(
integer
$current_page
)
|
|
Sets current page number
Parameters:
API Tags:
void set_external_params(
array
$external_params
)
|
|
Sets external parameters pairs
$external_params have to contain key => value pairs where $key wil become name of the parameter.
Parameters:
API Tags:
void set_page_size(
integer
$page_size
)
|
|
Sets page size
Parameters:
API Tags:
void set_total_pages(
integer
$total_pages
)
|
|
Sets total pages
Parameters:
API Tags:
void set_total_rows(
unknown_type
$total_rows
)
|
|
Sets total rows.
Parameters:
|
unknown_type |
$total_rows: |
|
API Tags: