CRM_Core_Form_Date
class CRM_Core_Form_Date
Constants
DATE_yyyy_mm_dd |
Various Date Formats. |
DATE_mm_dd_yy |
Various Date Formats. |
DATE_mm_dd_yyyy |
Various Date Formats. |
DATE_Month_dd_yyyy |
Various Date Formats. |
DATE_dd_mon_yy |
Various Date Formats. |
DATE_dd_mm_yyyy |
Various Date Formats. |
Methods
static
static
buildDateRange(CRM_Core_Form $form, string $fieldName, int $count = 1, string $from = '_from', string $to = '_to', string $fromLabel = 'From:', bool $required = FALSE, array $operators = [], string $dateFormat = 'searchDate', bool|string $displayTime = FALSE, array $attributes = ['class' => 'crm-select2'])
Retrieve the date range - relative or absolute and assign it to the form.
static array
returnDateRangeSelector(CRM_Core_Form $form, string $fieldName, int $count = 1, string $from = '_from', string $to = '_to', string $fromLabel = 'From:', bool $required = FALSE, array $operators = [], string $dateFormat = 'searchDate', bool $displayTime = FALSE)
Build the date range array that will provide the form option values.
static
addDateRangeToForm(CRM_Core_Form $form, string $fieldName, array $selector, string $from = '_from', string $to = '_to', string $fromLabel = 'From:', bool $required = FALSE, string $dateFormat = 'searchDate', bool $displayTime = FALSE, array $attributes)
Build the date range - relative or absolute.
Details
at line 46
static
buildAllowedDateFormats(CRM_Core_Form $form)
Build the date-format form.
at line 85
static
buildDateRange(CRM_Core_Form $form, string $fieldName, int $count = 1, string $from = '_from', string $to = '_to', string $fromLabel = 'From:', bool $required = FALSE, array $operators = [], string $dateFormat = 'searchDate', bool|string $displayTime = FALSE, array $attributes = ['class' => 'crm-select2'])
Retrieve the date range - relative or absolute and assign it to the form.
at line 128
static array
returnDateRangeSelector(CRM_Core_Form $form, string $fieldName, int $count = 1, string $from = '_from', string $to = '_to', string $fromLabel = 'From:', bool $required = FALSE, array $operators = [], string $dateFormat = 'searchDate', bool $displayTime = FALSE)
Build the date range array that will provide the form option values.
It can be - relative or absolute.
at line 172
static
addDateRangeToForm(CRM_Core_Form $form, string $fieldName, array $selector, string $from = '_from', string $to = '_to', string $fromLabel = 'From:', bool $required = FALSE, string $dateFormat = 'searchDate', bool $displayTime = FALSE, array $attributes)
Build the date range - relative or absolute.