PHP Interface Elgg\Views\TableColumn

Afficher le fichier Open project: elgg/elgg

Méthodes publiques

Méthode 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 méthode

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
Résultat string e.g. "My Great Title" or "My Great Title

renderHeading() public méthode

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
Résultat string e.g. "Title" or "Title