DcaUtil
in package
Table of Contents
Properties
- $contaoFramework : ContaoFramework
Methods
- __construct() : mixed
- executeCallback() : mixed|null
- Execute a callback with given arguments.
- explodePalette() : array<string|int, mixed>
- Explode a palette string.
- getDcaFields() : array<string|int, mixed>
- Return a list of dca fields for given table.
- getPaletteFields() : array<string|int, mixed>
- Return all fields of a palette including its subpalettes as array.
Properties
$contaoFramework read-only
private
ContaoFramework
$contaoFramework
Methods
__construct()
public
__construct(ContaoFramework $contaoFramework) : mixed
Parameters
- $contaoFramework : ContaoFramework
executeCallback()
Execute a callback with given arguments.
public
executeCallback(array<string|int, mixed>|callable|null $callback, mixed ...$arguments) : mixed|null
Parameters
- $callback : array<string|int, mixed>|callable|null
-
The callback can be a callable or an array with the first element being the class name and the second element being the method name.
- $arguments : mixed
Return values
mixed|null —The retrieved value or null if the callback is not callable or an error occurred.
explodePalette()
Explode a palette string.
public
explodePalette(string $palette) : array<string|int, mixed>
Parameters
- $palette : string
Return values
array<string|int, mixed>getDcaFields()
Return a list of dca fields for given table.
public
getDcaFields(string $table[, GetDcaFieldsOptions|null $options = null ]) : array<string|int, mixed>
Fields can be filtered by given options.
Parameters
- $table : string
- $options : GetDcaFieldsOptions|null = null
Return values
array<string|int, mixed>getPaletteFields()
Return all fields of a palette including its subpalettes as array.
public
getPaletteFields(string $table, string $palette[, array{skip_subpalettes?: bool} $options = [] ]) : array<string|int, mixed>
Options:
- skip_subpalettes (bool): Don't add subpalette fields to result. Default false
Parameters
- $table : string
- $palette : string
- $options : array{skip_subpalettes?: bool} = []