\apex\transaction\tablefee_schedule

Summary

Methods
Properties
Constants
get_attributes()
get_total()
get_rows()
format_row()
$columns
$rows_per_page
$has_search
$form_field
$form_name
$form_value
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$columns

$columns : 

Type

$rows_per_page

$rows_per_page : 

Type

$has_search

$has_search : 

Type

$form_field

$form_field : 

Type

$form_name

$form_name : 

Type

$form_value

$form_value : 

Type

Methods

get_attributes()

get_attributes(array  $data = array()) 

Process attributes passed to function tag

Passes all attributes passed within the tag in the TPL template, and is used for things such as to show / hide templates, or set variables to be used within the WHERE clause of the SQL statements, etc.

Parameters

array $data

The attributes contained within the tag that called the table.

get_total()

get_total(string  $search_term = '') : integer

Get total number of rows.

Obtains the total number of rows within the table, and is used to create the necessary pagination link.

Parameters

string $search_term

Only applicable if the AJAX search box has been submitted, and is the term being searched for.

Returns

integer —

The total number of rows available for this table.

get_rows()

get_rows(integer  $start, string  $search_term = '', string  $order_by = 'name asc') : array

Get table rows to display.

Gathers and formats the exact table rows to display within the web browser. This method is called when initially viewing the template, plus for AJAX based search, pagination, and sorting.

Parameters

integer $start

The number to start retrieving rows at, used within the LIMIT clause of the SQL statement.

string $search_term

Only applicable if the AJAX based search base is submitted, and is the term being searched form.

string $order_by

Must have a default value, but changes when the sort arrows in column headers are clicked. Used within the ORDER BY clause in the SQL statement.

Returns

array —

An array of associative arrays giving key-value pairs of the rows to display.

format_row()

format_row(array  $row) : array

Formats a single row for display within the web browser.

Has one database table row passed to it, an associative array, which can then be formatted as necessary for display within the web brwoser. This takes the raw contents from the database and converts it to displable format.

Parameters

array $row

The row from the database.

Returns

array —

The resulting array that should be displayed to the browser.