Column definition
mr_html_table_column
__construct
(string $field, [string $heading = ''], [array $config = array()])
-
string
$field: The SQL field that the column represents. This param can take several forms. Example: tablealias.fieldname OR someothername AS fieldname If preferred, you can set the field via config and pass the resulting fieldname here.
-
string
$heading: Column heading
-
array
$config: Override default configs
Add a column format
-
mixed
$format: This can be mr_format_abstract or a string representing the format's name. If a string, then keep passing args which will be passed to the format's constructor
Redefined in descendants as:
Add column heading to passed param
void
add_heading
( &$headings, array $headings)
-
array
$headings: List of headings
-
&$headings
Redefined in descendants as:
Derive cell value from row
mixed
get_cell
(array $row)
-
array
$row: Generally database record object
Get the column name
string
get_name
()
Get the select field for the SQL query
mixed
get_select_field
()
Redefined in descendants as:
Return sorting rules for this column
array
get_sorting
()
Does this column have a heading
boolean
has_heading
()
Redefined in descendants as:
A config setter - overwrites old value
-
string
$name: Name of the config to set
-
mixed
$value: The value of the config
Redefined in descendants as: