PHP 인터페이스 CRUDlex\EntityDefinitionFactoryInterface

파일 보기 프로젝트 열기: philiplb/crudlex

공개 메소드들

메소드 설명
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