UI
in package
User Interface class.
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- Page() : mixed
- Dispach a page structure based on class parameters and call attributes
- Section() : string|null
- Section is the core element of AviUi.
- setProperties() : mixed
Properties
$content
public
mixed
$content
= []
$header
public
mixed
$header
= []
$log
public
mixed
$log
$page
public
mixed
$page
= ['stylesheet' => [], 'javascript' => []]
$response
public
mixed
$response
= ''
Methods
__construct()
public
__construct([mixed $options = [] ]) : mixed
Parameters
- $options : mixed = []
Page()
Dispach a page structure based on class parameters and call attributes
public
Page([array<string|int, mixed> $attributes = [] ]) : mixed
Parameters
- $attributes : array<string|int, mixed> = []
Section()
Section is the core element of AviUi.
public
Section(string $sectionName[, array<string|int, mixed> $properties = [] ][, bool $return = false ]) : string|null
This method generate a section in a form of html element or text
Parameters
- $sectionName : string
-
(mandatory) The name of the section
- $properties : array<string|int, mixed> = []
-
the section properties type: obj | html | php class: the class atribute of html element wrapper: true | false, specify if the section content is wrapped in html element tag: section, the html element tag
- $return : bool = false
-
(optional) default = false If true the section content is returned only, not displayed
Return values
string|nullsetProperties()
private
setProperties([mixed $options = null ]) : mixed
Parameters
- $options : mixed = null