FieldDto
in package
FinalYes
Tags
Table of Contents
Properties
- $assets : AssetsDto
- $columns : string|null
- $cssClass : string
- $customOptions : KeyValueStore
- $defaultColumns : string
- $displayedOn : KeyValueStore
- $doctrineMetadata : KeyValueStore
- $fieldFqcn : string|null
- $formattedValue : mixed
- $formatValueCallable : mixed
- $formThemePaths : array<string|int, mixed>
- $formType : string|null
- $formTypeOptions : KeyValueStore
- $help : mixed
- $label : mixed
- $permission : string|null
- $propertyName : string|null
- $sortable : bool|null
- $templateName : string|null
- $templatePath : string|null
- $textAlign : string|null
- $translationParameters : array<string|int, mixed>
- $value : mixed
- $virtual : bool|null
Methods
- __clone() : mixed
- __construct() : mixed
- addCssAsset() : void
- addFormTheme() : void
- addHtmlContentToBody() : void
- addHtmlContentToHead() : void
- addJsAsset() : void
- addWebpackEncoreAsset() : void
- getAssets() : AssetsDto
- getColumns() : string|null
- getCssClass() : string
- getCustomOption() : mixed
- getCustomOptions() : KeyValueStore
- getDefaultColumns() : string
- getDisplayedOn() : KeyValueStore
- getDoctrineMetadata() : KeyValueStore
- getFieldFqcn() : string|null
- getFormattedValue() : mixed
- Returns the value to be displayed for the field (it could be the same as the value stored in the field or not).
- getFormatValueCallable() : callable|null
- getFormThemes() : array<string|int, mixed>
- getFormType() : string|null
- getFormTypeOption() : mixed
- getFormTypeOptions() : array<string|int, mixed>
- getHelp() : TranslatableInterface|string|null
- getLabel() : TranslatableInterface|string|false|null
- getPermission() : string|null
- getProperty() : string
- getTemplateName() : string|null
- getTemplatePath() : string|null
- getTextAlign() : string|null
- getTranslationParameters() : array<string|int, mixed>
- getUniqueId() : string
- getValue() : mixed
- Returns the original unmodified value stored in the entity field.
- isDisplayedOn() : bool
- isFormDecorationField() : bool
- isSortable() : bool|null
- isVirtual() : bool|null
- setAssets() : void
- setColumns() : void
- setCssClass() : void
- setCustomOption() : void
- setCustomOptions() : void
- setDefaultColumns() : void
- setDisplayedOn() : void
- setDoctrineMetadata() : void
- setFormattedValue() : void
- setFormatValueCallable() : void
- setFormThemes() : void
- setFormType() : void
- setFormTypeOption() : void
- setFormTypeOptionIfNotSet() : void
- setFormTypeOptions() : void
- setHelp() : void
- setLabel() : void
- setPermission() : void
- setProperty() : void
- setSortable() : void
- setTemplateName() : void
- setTemplatePath() : void
- setTextAlign() : void
- setTranslationParameters() : void
- setUniqueId() : void
- setValue() : void
- setVirtual() : void
Properties
$assets
private
AssetsDto
$assets
$columns
private
string|null
$columns
= null
$cssClass
private
string
$cssClass
= ''
$customOptions
private
KeyValueStore
$customOptions
$defaultColumns
private
string
$defaultColumns
= ''
$displayedOn
private
KeyValueStore
$displayedOn
$doctrineMetadata
private
KeyValueStore
$doctrineMetadata
$fieldFqcn
private
string|null
$fieldFqcn
= null
$formattedValue
private
mixed
$formattedValue
= null
$formatValueCallable
private
mixed
$formatValueCallable
$formThemePaths
private
array<string|int, mixed>
$formThemePaths
= []
$formType
private
string|null
$formType
= null
$formTypeOptions
private
KeyValueStore
$formTypeOptions
$help
private
mixed
$help
$label
private
mixed
$label
$permission
private
string|null
$permission
= null
$propertyName
private
string|null
$propertyName
= null
$sortable
private
bool|null
$sortable
= null
$templateName
private
string|null
$templateName
= 'crud/field/text'
$templatePath
private
string|null
$templatePath
= null
$textAlign
private
string|null
$textAlign
= null
$translationParameters
private
array<string|int, mixed>
$translationParameters
= []
$value
private
mixed
$value
= null
$virtual
private
bool|null
$virtual
= null
Methods
__clone()
public
__clone() : mixed
__construct()
public
__construct() : mixed
addCssAsset()
public
addCssAsset(AssetDto $assetDto) : void
Parameters
- $assetDto : AssetDto
addFormTheme()
public
addFormTheme(string $formThemePath) : void
Parameters
- $formThemePath : string
addHtmlContentToBody()
public
addHtmlContentToBody(string $htmlContent) : void
Parameters
- $htmlContent : string
addHtmlContentToHead()
public
addHtmlContentToHead(string $htmlContent) : void
Parameters
- $htmlContent : string
addJsAsset()
public
addJsAsset(AssetDto $assetDto) : void
Parameters
- $assetDto : AssetDto
addWebpackEncoreAsset()
public
addWebpackEncoreAsset(AssetDto $assetDto) : void
Parameters
- $assetDto : AssetDto
getAssets()
public
getAssets() : AssetsDto
Return values
AssetsDtogetColumns()
public
getColumns() : string|null
Return values
string|nullgetCssClass()
public
getCssClass() : string
Return values
stringgetCustomOption()
public
getCustomOption(string $optionName) : mixed
Parameters
- $optionName : string
getCustomOptions()
public
getCustomOptions() : KeyValueStore
Return values
KeyValueStoregetDefaultColumns()
public
getDefaultColumns() : string
Return values
stringgetDisplayedOn()
public
getDisplayedOn() : KeyValueStore
Return values
KeyValueStoregetDoctrineMetadata()
public
getDoctrineMetadata() : KeyValueStore
Return values
KeyValueStoregetFieldFqcn()
public
getFieldFqcn() : string|null
Return values
string|nullgetFormattedValue()
Returns the value to be displayed for the field (it could be the same as the value stored in the field or not).
public
getFormattedValue() : mixed
getFormatValueCallable()
public
getFormatValueCallable() : callable|null
Return values
callable|nullgetFormThemes()
public
getFormThemes() : array<string|int, mixed>
Return values
array<string|int, mixed>getFormType()
public
getFormType() : string|null
Return values
string|nullgetFormTypeOption()
public
getFormTypeOption(string $optionName) : mixed
Parameters
- $optionName : string
getFormTypeOptions()
public
getFormTypeOptions() : array<string|int, mixed>
Return values
array<string|int, mixed>getHelp()
public
getHelp() : TranslatableInterface|string|null
Return values
TranslatableInterface|string|nullgetLabel()
public
getLabel() : TranslatableInterface|string|false|null
Return values
TranslatableInterface|string|false|nullgetPermission()
public
getPermission() : string|null
Return values
string|nullgetProperty()
public
getProperty() : string
Return values
stringgetTemplateName()
public
getTemplateName() : string|null
Return values
string|nullgetTemplatePath()
public
getTemplatePath() : string|null
Return values
string|nullgetTextAlign()
public
getTextAlign() : string|null
Return values
string|nullgetTranslationParameters()
public
getTranslationParameters() : array<string|int, mixed>
Return values
array<string|int, mixed>getUniqueId()
public
getUniqueId() : string
Return values
stringgetValue()
Returns the original unmodified value stored in the entity field.
public
getValue() : mixed
isDisplayedOn()
public
isDisplayedOn(string $pageName) : bool
Parameters
- $pageName : string
Return values
boolisFormDecorationField()
public
isFormDecorationField() : bool
Return values
boolisSortable()
public
isSortable() : bool|null
Return values
bool|nullisVirtual()
public
isVirtual() : bool|null
Return values
bool|nullsetAssets()
public
setAssets(AssetsDto $assets) : void
Parameters
- $assets : AssetsDto
setColumns()
public
setColumns(string|null $columnCssClasses) : void
Parameters
- $columnCssClasses : string|null
setCssClass()
public
setCssClass(string $cssClass) : void
Parameters
- $cssClass : string
setCustomOption()
public
setCustomOption(string $optionName, mixed $optionValue) : void
Parameters
- $optionName : string
- $optionValue : mixed
setCustomOptions()
public
setCustomOptions(array<string|int, mixed> $customOptions) : void
Parameters
- $customOptions : array<string|int, mixed>
setDefaultColumns()
public
setDefaultColumns(string $columnCssClasses) : void
Parameters
- $columnCssClasses : string
setDisplayedOn()
public
setDisplayedOn(KeyValueStore $displayedOn) : void
Parameters
- $displayedOn : KeyValueStore
setDoctrineMetadata()
public
setDoctrineMetadata(array<string|int, mixed> $metadata) : void
Parameters
- $metadata : array<string|int, mixed>
setFormattedValue()
public
setFormattedValue(mixed $formattedValue) : void
Parameters
- $formattedValue : mixed
setFormatValueCallable()
public
setFormatValueCallable(callable|null $callable) : void
Parameters
- $callable : callable|null
setFormThemes()
public
setFormThemes(array<string|int, mixed> $formThemePaths) : void
Parameters
- $formThemePaths : array<string|int, mixed>
setFormType()
public
setFormType(string $formTypeFqcn) : void
Parameters
- $formTypeFqcn : string
setFormTypeOption()
public
setFormTypeOption(string $optionName, mixed $optionValue) : void
Parameters
- $optionName : string
-
You can use "dot" notation to set nested options (e.g. 'attr.class')
- $optionValue : mixed
setFormTypeOptionIfNotSet()
public
setFormTypeOptionIfNotSet(string $optionName, mixed $optionValue) : void
Parameters
- $optionName : string
-
You can use "dot" notation to set nested options (e.g. 'attr.class')
- $optionValue : mixed
setFormTypeOptions()
public
setFormTypeOptions(array<string|int, mixed> $formTypeOptions) : void
Parameters
- $formTypeOptions : array<string|int, mixed>
setHelp()
public
setHelp(TranslatableInterface|string $help) : void
Parameters
- $help : TranslatableInterface|string
setLabel()
public
setLabel(mixed $label) : void
Parameters
- $label : mixed
setPermission()
public
setPermission(string $permission) : void
Parameters
- $permission : string
setProperty()
public
setProperty(string $propertyName) : void
Parameters
- $propertyName : string
setSortable()
public
setSortable(bool $isSortable) : void
Parameters
- $isSortable : bool
setTemplateName()
public
setTemplateName(string|null $templateName) : void
Parameters
- $templateName : string|null
setTemplatePath()
public
setTemplatePath(string|null $templatePath) : void
Parameters
- $templatePath : string|null
setTextAlign()
public
setTextAlign(string $textAlign) : void
Parameters
- $textAlign : string
setTranslationParameters()
public
setTranslationParameters(array<string|int, mixed> $translationParameters) : void
Parameters
- $translationParameters : array<string|int, mixed>
setUniqueId()
public
setUniqueId(string $uniqueId) : void
Parameters
- $uniqueId : string
setValue()
public
setValue(mixed $value) : void
Parameters
- $value : mixed
setVirtual()
public
setVirtual(bool $isVirtual) : void
Parameters
- $isVirtual : bool