Go to the source code of this file.
|
| $items = $vars['items'] |
| View a table of items. More...
|
|
| $count = elgg_extract('count', $vars) |
|
| $pagination = elgg_extract('pagination', $vars, true) |
|
| $position = elgg_extract('position', $vars, 'after') |
|
| $no_results = elgg_extract('no_results', $vars, '') |
|
| $cell_views = elgg_extract('cell_views', $vars, ['page/components/table/cell/default']) |
|
| $columns = elgg_extract('columns', $vars) |
|
if(empty($columns)||!is_array($columns)) if(!is_array($items)||count($items)==0) | $headings = '' |
|
| $table_classes = ['elgg-list', 'elgg-table'] |
|
if(isset($vars['list_class'])) | $nav = ($pagination) ? elgg_view('navigation/pagination', $vars) : '' |
|
| $rows = '' |
|
foreach($items as $item) | $body = "$headings<tbody>$rows</tbody>" |
|
| if ( $position=='before'||$position=='both') |
|
◆ $body
◆ $cell_views
◆ $columns
◆ $count
◆ $headings
foreach ( $columns as $column) $headings = '' |
◆ $items
View a table of items.
@uses $vars['columns'] Array of Elgg\Views\TableColumn If the trimmed rendering doesn't start with "<td" or "<th", then the cell is auto-wrapped with a TD/TH element.
@uses $vars['items'] Array of ElggEntity, ElggAnnotation or ElggRiverItem objects @uses $vars['offset'] Index of the first list item in complete list @uses $vars['limit'] Number of items per page. Only used as input to pagination. @uses $vars['count'] Number of items in the complete list @uses $vars['base_url'] Base URL of list (optional) @uses $vars['url_fragment'] URL fragment to add to links if not present in base_url (optional) @uses $vars['pagination'] Show pagination? (default: true) @uses $vars['position'] Position of the pagination: before, after, or both @uses $vars['full_view'] Show the full view of the items (default: false) @uses $vars['list_class'] Additional CSS class for the
@uses $vars['item_class'] Additional CSS class for the
elements @uses $vars['item_view'] Alternative view to render list items @uses $vars['no_results'] Message to display if no results (string|Closure)
Definition at line 26 of file table.php.
◆ $nav
◆ $no_results
◆ $pagination
◆ $position
◆ $rows
◆ $table_classes
◆ if