34 public function __construct($view, $heading = null, $vars = []) {
38 if (!is_string($heading)) {
39 $heading =
elgg_echo(
"ViewColumn:view:$view");
42 $this->heading = $heading;
49 return $this->heading;
56 $vars = array_merge($this->vars, [
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...
renderHeading()
{Get the rendered heading cell as HTML.Cell will be auto-wrapped with a TH element if the returned st...
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Table column rendered by a view.
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
__construct($view, $heading=null, $vars=[])
Constructor.
A renderer for a column of table cells and a header.