Documentation

fetchDateFieldValue

array public static
\Bitrix\Main\UI\Filter\Options::fetchDateFieldValue(
 string $key = "",
 array $filterFields = array()
);

Static method gets date field value.

Parameters

ParameterDescriptionVersion
$keyKey
$filterFieldsArray with filter fields.

Returned values:
  • custom_date (arbitrary date) - returned value:
    "DATE_CREATE_days" => array("1", "2"),
    "DATE_CREATE_months" => array("4", "8"),
    "DATE_CREATE_years" => array("2017")
  • date (date) - field values will be returned as set of fields with postfixes _datesel, _from, _to, _days, _year, _quarter.
    "FIELD_datesel" => "Value type",
    "FIELD_from" => "Range start",
    "FIELD_to" => "Range end",
    "FIELD_days" => "Number of days",
    "FIELD_year" => "Year",
    "FIELD_quarter" => "Quarter number",
    "FIELD_month" => "Month sequence number. Without leading zero"
    

Example



© «Bitrix24», 2001-2024
Up