Property | Type | Description | |
---|---|---|---|
$container | MetaModels\IMetaModelsServiceContainer | The service container. |
Method | Description | |
---|---|---|
__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. |
Method | Description | |
---|---|---|
getDB ( ) : Database | Get Contao Database instance. | |
getDispatcher ( ) : Symfony\Component\EventDispatcher\EventDispatcherInterface | Retrieve the event dispatcher from the DIC. |
public __construct ( MetaModels\IMetaModelsServiceContainer $container ) | ||
$container | MetaModels\IMetaModelsServiceContainer | The container. |
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. |
return | string |
protected getDB ( ) : Database | ||
return | Database |
protected getDispatcher ( ) : Symfony\Component\EventDispatcher\EventDispatcherInterface | ||
return | Symfony\Component\EventDispatcher\EventDispatcherInterface |
public injectOperationButton ( MetaModels\BackendIntegration\InputScreen\IInputScreen $screen ) : void | ||
$screen | MetaModels\BackendIntegration\InputScreen\IInputScreen | The input screen that shall get injected. |
return | void |