PHP Interface Elgg\Views\TableColumn

Show file Open project: elgg/elgg

Public Methods

Method Description
renderCell ( mixed $item, string $type, array $item_vars ) : string Render a value cell as HTML. Cell will be auto-wrapped with a TD element if the returned string doesn't begin with "
renderHeading ( ) : string Get the rendered heading cell as HTML. Cell will be auto-wrapped with a TH element if the returned string doesn't begin with "

Method Details

renderCell() public method

Render a value cell as HTML. Cell will be auto-wrapped with a TD element if the returned string doesn't begin with "
". You must filter/escape any user content.
public renderCell ( mixed $item, string $type, array $item_vars ) : string
$item mixed Object/row from which to pull the value
$type string Type of object
$item_vars array Parameters from the listing function
return string e.g. "My Great Title" or "My Great Title

renderHeading() public method

Get the rendered heading cell as HTML. Cell will be auto-wrapped with a TH element if the returned string doesn't begin with "
". You must filter/escape any user content.
public renderHeading ( ) : string
return string e.g. "Title" or "Title