TYPO3
7.6
|
Public Member Functions | |
addBackendLayouts (DataProviderContext $dataProviderContext, BackendLayoutCollection $backendLayoutCollection) | |
getBackendLayout ($identifier, $pageId) | |
Protected Member Functions | |
createDefaultBackendLayout () | |
createBackendLayout (array $data) | |
getIconPath ($icon) | |
getLayoutData ($fieldName, array $pageTsConfig, $pageUid) | |
getStoragePid (array $pageTsConfig) | |
getPageTSconfigIds (array $pageTsConfig) | |
getDatabaseConnection () | |
Backend layout data provider class
Definition at line 22 of file DefaultDataProvider.php.
addBackendLayouts | ( | DataProviderContext | $dataProviderContext, |
BackendLayoutCollection | $backendLayoutCollection | ||
) |
Adds backend layouts to the given backend layout collection. The default backend layout ('default_default') is not added since it's the default fallback if nothing is specified.
DataProviderContext | $dataProviderContext | |
BackendLayoutCollection | $backendLayoutCollection |
Implements DataProviderInterface.
Definition at line 33 of file DefaultDataProvider.php.
References BackendLayoutCollection\add(), DefaultDataProvider\createBackendLayout(), DataProviderContext\getFieldName(), DefaultDataProvider\getLayoutData(), DataProviderContext\getPageId(), and DataProviderContext\getPageTsConfig().
|
protected |
Creates a new backend layout using the given record data.
array | $data |
Definition at line 94 of file DefaultDataProvider.php.
References BackendLayout\create(), and DefaultDataProvider\getIconPath().
Referenced by DefaultDataProvider\addBackendLayouts(), and DefaultDataProvider\getBackendLayout().
|
protected |
Creates a backend layout with the default configuration.
Definition at line 79 of file DefaultDataProvider.php.
References BackendLayout\create(), and BackendLayoutView\getDefaultColumnLayout().
Referenced by DefaultDataProvider\getBackendLayout().
getBackendLayout | ( | $identifier, | |
$pageId | |||
) |
Gets a backend layout by (regular) identifier.
string | $identifier | |
int | $pageId |
Implements DataProviderInterface.
Definition at line 54 of file DefaultDataProvider.php.
References BackendUtility\BEenableFields(), DefaultDataProvider\createBackendLayout(), DefaultDataProvider\createDefaultBackendLayout(), BackendUtility\deleteClause(), and DefaultDataProvider\getDatabaseConnection().
|
protected |
Definition at line 197 of file DefaultDataProvider.php.
References $GLOBALS.
Referenced by DefaultDataProvider\getBackendLayout(), and DefaultDataProvider\getLayoutData().
|
protected |
Gets and sanitizes the icon path.
string | $icon | Name of the icon file |
Definition at line 108 of file DefaultDataProvider.php.
References $GLOBALS.
Referenced by DefaultDataProvider\createBackendLayout().
|
protected |
Get all layouts from the core's default data provider.
string | $fieldName | the name of the field the layouts are provided for (either backend_layout or backend_layout_next_level) |
array | $pageTsConfig | PageTSconfig of the given page |
int | $pageUid | the ID of the page wea re getting the layouts for |
Definition at line 128 of file DefaultDataProvider.php.
References BackendUtility\BEenableFields(), BackendUtility\deleteClause(), DefaultDataProvider\getDatabaseConnection(), DefaultDataProvider\getPageTSconfigIds(), and DefaultDataProvider\getStoragePid().
Referenced by DefaultDataProvider\addBackendLayouts().
|
protected |
Returns the page TSconfig from TCEFORM.
array | $pageTsConfig |
Definition at line 176 of file DefaultDataProvider.php.
Referenced by DefaultDataProvider\getLayoutData().
|
protected |
Returns the storage PID from TCEFORM.
array | $pageTsConfig |
Definition at line 159 of file DefaultDataProvider.php.
Referenced by DefaultDataProvider\getLayoutData().