PHP Интерфейс Elgg\Views\TableColumn

Показать файл Открыть проект

Открытые методы

Метод Описание
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 "

Описание методов

renderCell() публичный Метод

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
Результат string e.g. "My Great Title" or "My Great Title

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 "
". You must filter/escape any user content.
public renderHeading ( ) : string
Результат string e.g. "Title" or "Title