Skip to content

EventDate


  • Full name: \boundstate\events\fields\EventDate
  • Parent class: Field
  • This class implements: PreviewableFieldInterface, SortableFieldInterface

Properties

allowNeverEnding

public bool $allowNeverEnding

allDay

public bool $allDay

Methods

displayName

public static displayName(): string
  • This method is static.

icon

public static icon(): string
  • This method is static.

dbType

public static dbType(): array
  • This method is static.

phpType

public static phpType(): string
  • This method is static.

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

getInputHtml

public getInputHtml(mixed $value, ?\craft\base\ElementInterface $element = null): string

Parameters:

Parameter Type Description
$value mixed
$element ?\craft\base\ElementInterface

getSettingsHtml

public getSettingsHtml(): string