|
Elgg
Version master
|
Table column rendered by a view. More...
Public Member Functions | ||||||||||
| __construct (protected string $view, ?string $heading=null, protected array $vars=[]) | ||||||||||
| 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 | |
| string | $heading |
Table column rendered by a view.
Definition at line 10 of file ViewColumn.php.
| Elgg\Views\TableColumn\ViewColumn::__construct | ( | protected string | $view, |
| ?string | $heading = null, |
||
| protected array | $vars = [] |
||
| ) |
Constructor.
| string | $view | The view to render the value |
| string | null | $heading | Heading |
| array | $vars | Vars to merge into the view vars |
Definition at line 21 of file ViewColumn.php.
| Elgg\Views\TableColumn\ViewColumn::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 39 of file ViewColumn.php.
| Elgg\Views\TableColumn\ViewColumn::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 32 of file ViewColumn.php.
|
protected |
Definition at line 12 of file ViewColumn.php.