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