|
Elgg
Version 6.3
|
Table column rendered by a function. More...
Public Member Functions | ||||||||||
| __construct (callable $renderer, protected $heading) | ||||||||||
| Constructor. More... | ||||||||||
| renderHeading () | ||||||||||
{Get the rendered heading cell as HTML.Cell will be auto-wrapped with a TH element if the returned string doesn't begin with "<th" or "<td".
| ||||||||||
| renderCell ($item, $type, $item_vars) | ||||||||||
{Render a value cell as HTML.Cell will be auto-wrapped with a TD element if the returned string doesn't begin with "<th" or "<td".
| ||||||||||
Protected Attributes | |
| $renderer | |
Table column rendered by a function.
Definition at line 9 of file CallableColumn.php.
| Elgg\Views\TableColumn\CallableColumn::__construct | ( | callable | $renderer, |
| protected | $heading | ||
| ) |
Constructor.
| callable | $renderer | Rendering function |
| string | $heading | Heading |
Definition at line 22 of file CallableColumn.php.
| Elgg\Views\TableColumn\CallableColumn::renderCell | ( | $item, | |
| $type, | |||
| $item_vars | |||
| ) |
{Render a value cell as HTML.Cell will be auto-wrapped with a TD element if the returned string doesn't begin with "<th" or "<td".
| mixed | $item | Object/row from which to pull the value |
| string | $type | Type of object |
| array | $item_vars | Parameters from the listing function |
Implements Elgg\Views\TableColumn.
Definition at line 36 of file CallableColumn.php.
| Elgg\Views\TableColumn\CallableColumn::renderHeading | ( | ) |
{Get the rendered heading cell as HTML.Cell will be auto-wrapped with a TH element if the returned string doesn't begin with "<th" or "<td".
Implements Elgg\Views\TableColumn.
Definition at line 29 of file CallableColumn.php.
|
protected |
Definition at line 14 of file CallableColumn.php.