PHP Класс MetaModels\Dca\MetaModelDcaBuilder

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$container MetaModels\IMetaModelsServiceContainer The service container.

Открытые методы

Метод Описание
__construct ( MetaModels\IMetaModelsServiceContainer $container ) Create a new instance.
buildChildOperationButton ( string $idParameter, array $arrRow, string $href, string $label, string $name, string $icon, string $attributes, string $table ) : string This method exists only for being compatible when MetaModels are being used as child table from DC_Table context.
getBackendIcon ( string $icon, string $defaultIcon = 'system/modules/metamodels/assets/images/icons/metamodels.png' ) : string Get a 16x16 pixel resized icon of the passed image if it exists, return the default icon otherwise.
injectOperationButton ( MetaModels\BackendIntegration\InputScreen\IInputScreen $screen ) : void Inject an input screen into the DCA of a table.

Защищенные методы

Метод Описание
getDB ( ) : Database Get Contao Database instance.
getDispatcher ( ) : Symfony\Component\EventDispatcher\EventDispatcherInterface Retrieve the event dispatcher from the DIC.

Описание методов

__construct() публичный Метод

Create a new instance.
public __construct ( MetaModels\IMetaModelsServiceContainer $container )
$container MetaModels\IMetaModelsServiceContainer The container.

buildChildOperationButton() публичный Метод

This method exists only for being compatible when MetaModels are being used as child table from DC_Table context.
public buildChildOperationButton ( string $idParameter, array $arrRow, string $href, string $label, string $name, string $icon, string $attributes, string $table ) : string
$idParameter string The id parameter in use.
$arrRow array The current data row.
$href string The href to be appended.
$label string The operation label.
$name string The operation name.
$icon string The icon path.
$attributes string The button attributes.
$table string The table name.
Результат string

getBackendIcon() публичный Метод

Get a 16x16 pixel resized icon of the passed image if it exists, return the default icon otherwise.
public getBackendIcon ( string $icon, string $defaultIcon = 'system/modules/metamodels/assets/images/icons/metamodels.png' ) : string
$icon string The icon to resize.
$defaultIcon string The default icon.
Результат string

getDB() защищенный Метод

Get Contao Database instance.
protected getDB ( ) : Database
Результат Database

getDispatcher() защищенный Метод

Retrieve the event dispatcher from the DIC.
protected getDispatcher ( ) : Symfony\Component\EventDispatcher\EventDispatcherInterface
Результат Symfony\Component\EventDispatcher\EventDispatcherInterface

injectOperationButton() публичный Метод

Inject an input screen into the DCA of a table.
public injectOperationButton ( MetaModels\BackendIntegration\InputScreen\IInputScreen $screen ) : void
$screen MetaModels\BackendIntegration\InputScreen\IInputScreen The input screen that shall get injected.
Результат void

Описание свойств

$container защищенное свойство

The service container.
protected IMetaModelsServiceContainer,MetaModels $container
Результат MetaModels\IMetaModelsServiceContainer