TYPO3  7.6
Public Member Functions | Protected Attributes | List of all members
BackendLayoutCollection Class Reference

Public Member Functions

 __construct ($identifier)
 
 getIdentifier ()
 
 setIdentifier ($identifier)
 
 add (BackendLayout $backendLayout)
 
 get ($identifier)
 
 getAll ()
 

Protected Attributes

 $identifier
 
 $backendLayouts = array()
 

Detailed Description

Collection of backend layouts.

Definition at line 20 of file BackendLayoutCollection.php.

Constructor & Destructor Documentation

__construct (   $identifier)
Parameters
string$identifier

Definition at line 35 of file BackendLayoutCollection.php.

References BackendLayoutCollection\$identifier, and BackendLayoutCollection\setIdentifier().

Member Function Documentation

add ( BackendLayout  $backendLayout)

Adds a backend layout to this collection.

Parameters
BackendLayout$backendLayout
Exceptions
\LogicException

Definition at line 70 of file BackendLayoutCollection.php.

References BackendLayoutCollection\$identifier, and BackendLayout\getIdentifier().

Referenced by DefaultDataProvider\addBackendLayouts(), and PageTsBackendLayoutDataProvider\addBackendLayouts().

get (   $identifier)

Gets a backend layout by (regular) identifier.

Parameters
string$identifier
Returns
NULL|BackendLayout

Definition at line 97 of file BackendLayoutCollection.php.

References BackendLayoutCollection\$identifier.

getAll ( )

Gets all backend layouts in this collection.

Returns
array|BackendLayout[]

Definition at line 113 of file BackendLayoutCollection.php.

References BackendLayoutCollection\$backendLayouts.

getIdentifier ( )
Returns
string

Definition at line 43 of file BackendLayoutCollection.php.

References BackendLayoutCollection\$identifier.

setIdentifier (   $identifier)
Parameters
string$identifier
Exceptions
\UnexpectedValueException

Definition at line 52 of file BackendLayoutCollection.php.

References BackendLayoutCollection\$identifier.

Referenced by BackendLayoutCollection\__construct().

Member Data Documentation

$backendLayouts = array()
protected

Definition at line 30 of file BackendLayoutCollection.php.

Referenced by BackendLayoutCollection\getAll().

$identifier
protected