TileView
Class TileView
Table of Contents
Constants
- COLOR_GREY = '#eef2f4'
- MAX_COUNT = 4
- SECTION_ALL = 'all'
- SECTION_FREQ = 'freq'
- SECTION_LAST = 'last'
- SECTION_MY = 'my'
- SECTION_SYS = 'system'
Methods
- __construct() : mixed
- Constructor.
- addSection() : $this
- Add section.
- addTile() : $this
- Add tile.
- create() : static
- Create instance.
- get() : array<string|int, mixed>
- Get data for view.
- getSections() : array<string|int, mixed>
- Get sections.
- getTile() : array<string|int, mixed>
- Get tile.
- getTiles() : array<string|int, mixed>
- Get tiles.
- removeSections() : $this
- Remove sections.
- removeTiles() : $this
- Remove tiles.
Constants
COLOR_GREY
public
mixed
COLOR_GREY
= '#eef2f4'
MAX_COUNT
public
mixed
MAX_COUNT
= 4
SECTION_ALL
public
mixed
SECTION_ALL
= 'all'
SECTION_FREQ
public
mixed
SECTION_FREQ
= 'freq'
SECTION_LAST
public
mixed
SECTION_LAST
= 'last'
SECTION_MY
public
mixed
SECTION_MY
= 'my'
SECTION_SYS
public
mixed
SECTION_SYS
= 'system'
Methods
__construct()
Constructor.
public
__construct() : mixed
addSection()
Add section.
public
addSection(string $id[, string $name = null ]) : $this
Parameters
- $id : string
-
ID.
- $name : string = null
-
Name.
Return values
$thisaddTile()
Add tile.
public
addTile(string|null $id, string $name[, array<string|int, mixed> $data = [] ][, string $bgColor = null ][, string $color = null ]) : $this
Parameters
- $id : string|null
-
ID.
- $name : string
-
Name.
- $data : array<string|int, mixed> = []
-
Data.
- $bgColor : string = null
-
Background color.
- $color : string = null
-
Color.
Return values
$thiscreate()
Create instance.
public
static create() : static
Return values
staticget()
Get data for view.
public
get() : array<string|int, mixed>
Return values
array<string|int, mixed>getSections()
Get sections.
public
getSections() : array<string|int, mixed>
Return values
array<string|int, mixed>getTile()
Get tile.
public
getTile(string|null $id, string $name[, array<string|int, mixed> $data = [] ][, string $bgColor = null ][, string $color = null ]) : array<string|int, mixed>
Parameters
- $id : string|null
-
ID.
- $name : string
-
Name.
- $data : array<string|int, mixed> = []
-
Data.
- $bgColor : string = null
-
Background color.
- $color : string = null
-
Color.
Return values
array<string|int, mixed>getTiles()
Get tiles.
public
getTiles() : array<string|int, mixed>
Return values
array<string|int, mixed>removeSections()
Remove sections.
public
removeSections() : $this
Return values
$thisremoveTiles()
Remove tiles.
public
removeTiles() : $this