Function Module_groups->find_table_headings
Definitions
site/pages/modules/groups.php
- Find table column widths and headings.
- Visibility: protected
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $has_images | boolean | No | No | required parameter | N/A | N/A | Whether there are rank images |
| $has_rank | boolean | No | No | required parameter | N/A | N/A | Whether there are rank promotions |
| $pending_applications | boolean | No | No | False | N/A | N/A | Whether to show the pending applications column |
Returns
- A pair: column widths, table headings
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Find table column widths and headings.
*
* @param boolean $has_images Whether there are rank images
* @param boolean $has_rank Whether there are rank promotions
* @param boolean $pending_applications Whether to show the pending applications column
* @return array A pair: column widths, table headings
*/
protected function find_table_headings(bool $has_images, bool $has_rank, bool $pending_applications = false) : array
* Find table column widths and headings.
*
* @param boolean $has_images Whether there are rank images
* @param boolean $has_rank Whether there are rank promotions
* @param boolean $pending_applications Whether to show the pending applications column
* @return array A pair: column widths, table headings
*/
protected function find_table_headings(bool $has_images, bool $has_rank, bool $pending_applications = false) : array

