BackendLayout
Class to represent a backend layout.
Table of Contents
Properties
- $configuration : string
- $data : array<string|int, mixed>
- $description : string
- $iconPath : string
- $identifier : string
- $structure : array<string|int, mixed>
- The structured data of the configuration represented as array.
- $title : string
Methods
- __construct() : mixed
- create() : BackendLayout
- getColCount() : int
- getColumnPositionNumbers() : array<string|int, string>
- getConfiguration() : string
- getData() : array<string|int, mixed>
- getDescription() : string
- getIconPath() : string
- getIdentifier() : string
- getRowCount() : int
- getStructure() : array<string|int, mixed>
- getTitle() : string
- getUsedColumns() : array<string|int, mixed>
- Returns the columns registered for this layout as $key => $value pair where the key is the colPos and the value is the title.
- setConfiguration() : void
- setData() : void
- setDescription() : void
- setIconPath() : void
- setIdentifier() : void
- setStructure() : void
- setTitle() : void
Properties
$configuration
protected
string
$configuration
= ''
$data
protected
array<string|int, mixed>
$data
= []
$description
protected
string
$description
= ''
$iconPath
protected
string
$iconPath
= ''
$identifier
protected
string
$identifier
$structure
The structured data of the configuration represented as array.
protected
array<string|int, mixed>
$structure
= []
$title
protected
string
$title
Methods
__construct()
public
__construct(string $identifier, string $title, string|array<string|int, mixed> $configuration) : mixed
Parameters
- $identifier : string
- $title : string
- $configuration : string|array<string|int, mixed>
create()
public
static create(string $identifier, string $title, string|array<string|int, mixed> $configuration) : BackendLayout
Parameters
- $identifier : string
- $title : string
- $configuration : string|array<string|int, mixed>
Return values
BackendLayoutgetColCount()
public
getColCount() : int
Return values
intgetColumnPositionNumbers()
public
getColumnPositionNumbers() : array<string|int, string>
Return values
array<string|int, string>getConfiguration()
public
getConfiguration() : string
Return values
stringgetData()
public
getData() : array<string|int, mixed>
Return values
array<string|int, mixed>getDescription()
public
getDescription() : string
Return values
stringgetIconPath()
public
getIconPath() : string
Return values
stringgetIdentifier()
public
getIdentifier() : string
Return values
stringgetRowCount()
public
getRowCount() : int
Return values
intgetStructure()
public
getStructure() : array<string|int, mixed>
Return values
array<string|int, mixed>getTitle()
public
getTitle() : string
Return values
stringgetUsedColumns()
Returns the columns registered for this layout as $key => $value pair where the key is the colPos and the value is the title.
public
getUsedColumns() : array<string|int, mixed>
"1" => "Left" etc. Please note that the title can contain LLL references ready for translation.
Return values
array<string|int, mixed>setConfiguration()
public
setConfiguration(string $configuration) : void
Parameters
- $configuration : string
setData()
public
setData(array<string|int, mixed> $data) : void
Parameters
- $data : array<string|int, mixed>
setDescription()
public
setDescription(string $description) : void
Parameters
- $description : string
setIconPath()
public
setIconPath(string $iconPath) : void
Parameters
- $iconPath : string
setIdentifier()
public
setIdentifier(string $identifier) : void
Parameters
- $identifier : string
setStructure()
public
setStructure(array<string|int, mixed> $structure) : void
Parameters
- $structure : array<string|int, mixed>
setTitle()
public
setTitle(string $title) : void
Parameters
- $title : string