22 if (!is_string($heading)) {
23 $heading =
elgg_echo(
"ViewColumn:view:{$view}");
40 $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.
if(!empty($avatar)&&!$avatar->isValid()) elseif(empty($avatar)) if(!$owner->saveIconFromUploadedFile('avatar')) if(!elgg_trigger_event('profileiconupdate', $owner->type, $owner)) $view
__construct(protected string $view, string $heading=null, protected array $vars=[])
Constructor.
A renderer for a column of table cells and a header.