PHP Интерфейс CRUDlex\EntityDefinitionFactoryInterface

Показать файл Открыть проект

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

Метод Описание
createEntityDefinition ( string $table, array $fields, string $label, array $localeLabels, array $standardFieldLabels, ServiceProvider $serviceProvider ) : EntityDefinition Creates an EntityDefinition instance.

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

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

Creates an EntityDefinition instance.
public createEntityDefinition ( string $table, array $fields, string $label, array $localeLabels, array $standardFieldLabels, ServiceProvider $serviceProvider ) : EntityDefinition
$table string the table of the entity
$fields array the fieldstructure just like the CRUD YAML
$label string the label of the entity
$localeLabels array the labels of the entity in the locales
$standardFieldLabels array labels for the fields "id", "created_at" and "updated_at"
$serviceProvider ServiceProvider The current service provider
Результат EntityDefinition the new instance