AbstractListTable
in package
Tags
Table of Contents
- $isLoaded : bool
- $items : array<string|int, mixed>
- $name : string
- $settings : array<string|int, mixed>
- __construct() : mixed
- display() : mixed
- displayRows() : mixed
- Only intended to use in templates. See display() method.
- getColumns() : array<string|int, mixed>
- getId() : string
- hasItems() : bool
- load() : mixed
- displayColumn() : mixed
- displayOwnColumn() : bool
- displayRow() : mixed
- loadItems() : mixed
Properties
$isLoaded
protected
bool
$isLoaded
= false
Tags
$items
protected
array<string|int, mixed>
$items
= array()
Tags
$name
protected
string
$name
Tags
$settings
protected
array<string|int, mixed>
$settings
= array()
Tags
Methods
__construct()
public
__construct(string|array<string|int, mixed> $args[, array<string|int, mixed> $items = array() ]) : mixed
Parameters
- $args : string|array<string|int, mixed>
-
Name (singular) or array of args. @param string $args['singular'] Required.
- $items : array<string|int, mixed> = array()
-
Optional.
Tags
Return values
mixed —display()
public
display() : mixed
Tags
Return values
mixed —displayRows()
Only intended to use in templates. See display() method.
public
displayRows() : mixed
Tags
Return values
mixed —getColumns()
public
abstract getColumns() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —getId()
public
getId() : string
Tags
Return values
string —hasItems()
public
hasItems() : bool
Tags
Return values
bool —load()
public
load() : mixed
Tags
Return values
mixed —displayColumn()
protected
abstract displayColumn(string $columnName, mixed $item) : mixed
Parameters
- $columnName : string
- $item : mixed
Tags
Return values
mixed —displayOwnColumn()
protected
displayOwnColumn(string $columnName, mixed $item, array<string|int, mixed> $columnAtts) : bool
Parameters
- $columnName : string
- $item : mixed
- $columnAtts : array<string|int, mixed>
-
Default column attributes.
Tags
Return values
bool —False it this method does nothing and we need to call displayColumn() instead.
displayRow()
protected
displayRow(mixed $item) : mixed
Parameters
- $item : mixed
Tags
Return values
mixed —loadItems()
protected
loadItems() : mixed