Skip to content

Class EventDate

Extends Field, Implements PreviewableFieldInterface, SortableFieldInterface

Properties

allowNeverEnding

public bool $allowNeverEnding

allDay

public bool $allDay

Methods

displayName

public static displayName(): string
return string

icon

public static icon(): string
return string

dbType

public static dbType(): array
return array

phpType

public static phpType(): string
return string

getElementValidationRules

public getElementValidationRules(): array
return array

serializeValue

public serializeValue(?EventDate $value, ?ElementInterface $element): mixed
$value ?EventDate
$element ?ElementInterface
return mixed

queryCondition

public static queryCondition(array $instances, mixed $value, array& $params): array|string|ExpressionInterface|false|null
$instances array
$value mixed
$params array
return array|string|ExpressionInterface|false|null

normalizeValue

public normalizeValue(mixed $value, ?ElementInterface $element): mixed
$value mixed
$element ?ElementInterface
return mixed

getSortOption

public getSortOption(): array
return array

getPreviewHtml

public getPreviewHtml(mixed $value, ElementInterface $element): string
$value mixed
$element ElementInterface
return string

previewPlaceholderHtml

public previewPlaceholderHtml(mixed $value, ?ElementInterface $element): string
$value mixed
$element ?ElementInterface
return string

getInputHtml

public getInputHtml(mixed $value, ?ElementInterface $element = null): string
$value mixed
$element ?ElementInterface
return string

getSettingsHtml

public getSettingsHtml(): string
return string