EventDate
- Full name:
\boundstate\events\fields\EventDate
- Parent class:
Field
- This class implements:
PreviewableFieldInterface,
SortableFieldInterface
Properties
allowNeverEnding
public bool $allowNeverEnding
allDay
Methods
displayName
public static displayName(): string
icon
public static icon(): string
dbType
public static dbType(): array
phpType
public static phpType(): string
getElementValidationRules
public getElementValidationRules(): array
serializeValue
public serializeValue(?\boundstate\events\models\EventDate $value, ?\craft\base\ElementInterface $element): mixed
Parameters:
| Parameter |
Type |
Description |
$value |
?\boundstate\events\models\EventDate |
|
$element |
?\craft\base\ElementInterface |
|
queryCondition
public static queryCondition(array $instances, mixed $value, array& $params): array|string|\yii\db\ExpressionInterface|false|null
- This method is static.
Parameters:
| Parameter |
Type |
Description |
$instances |
array |
|
$value |
mixed |
|
$params |
array |
|
normalizeValue
public normalizeValue(mixed $value, ?\craft\base\ElementInterface $element): mixed
Parameters:
| Parameter |
Type |
Description |
$value |
mixed |
|
$element |
?\craft\base\ElementInterface |
|
getSortOption
public getSortOption(): array
getPreviewHtml
public getPreviewHtml(mixed $value, \craft\base\ElementInterface $element): string
Parameters:
| Parameter |
Type |
Description |
$value |
mixed |
|
$element |
\craft\base\ElementInterface |
|
previewPlaceholderHtml
public previewPlaceholderHtml(mixed $value, ?\craft\base\ElementInterface $element): string
Parameters:
| Parameter |
Type |
Description |
$value |
mixed |
|
$element |
?\craft\base\ElementInterface |
|
public getInputHtml(mixed $value, ?\craft\base\ElementInterface $element = null): string
Parameters:
| Parameter |
Type |
Description |
$value |
mixed |
|
$element |
?\craft\base\ElementInterface |
|
getSettingsHtml
public getSettingsHtml(): string