Class EventDate
Extends Field, Implements PreviewableFieldInterface, SortableFieldInterface
Constants
ALL_DAY_NEVER
Events always have start and end times
ALL_DAY_ALWAYS
Events always last all day
ALL_DAY_OPTIONAL
Authors choose whether each event lasts all day
Properties
allowNeverEnding
public bool $allowNeverEnding
allDayMode
Whether events last all day (one of the ALL_DAY_* constants)
public string $allDayMode
Methods
displayName
public static displayName(): string
icon
public static icon(): string
dbType
public static dbType(): array
phpType
public static phpType(): string
__construct
public __construct(mixed $config = []): mixed
|
|
|
$config |
mixed |
|
| return |
mixed |
|
getElementValidationRules
public getElementValidationRules(): array
serializeValue
public serializeValue(?EventDate $value, ?ElementInterface $element): ?array
queryCondition
public static queryCondition(array $instances, mixed $value, array& $params): array|string|ExpressionInterface|false|null
getElementConditionRuleType
public getElementConditionRuleType(): array|string|null
normalizeValue
public normalizeValue(mixed $value, ?ElementInterface $element): mixed
normalizeValueFromRequest
public normalizeValueFromRequest(mixed $value, ?ElementInterface $element): mixed
getSortOption
public getSortOption(): array
getPreviewHtml
public getPreviewHtml(mixed $value, ElementInterface $element): string
previewPlaceholderHtml
public previewPlaceholderHtml(mixed $value, ?ElementInterface $element): string
public getInputHtml(mixed $value, ?ElementInterface $element = null): string
getStaticHtml
public getStaticHtml(mixed $value, ElementInterface $element): string
getSettingsHtml
public getSettingsHtml(): string