/**
* Retrieve the date range - relative or absolute and assign it to the form.
*
+ * @deprecated
+ *
* @param CRM_Core_Form $form
* The form the dates should be added to.
* @param string $fieldName
$dateFormat = 'searchDate', $displayTime = FALSE,
$attributes = ['class' => 'crm-select2']
) {
+ CRM_Core_Error::deprecatedFunctionWarning('function will be removed');
$selector
= CRM_Core_Form_Date::returnDateRangeSelector(
$form, $fieldName, $count,
/**
* Build the date range array that will provide the form option values.
*
+ * @deprecated
+ *
* It can be - relative or absolute.
*
* @param CRM_Core_Form $form
$required = FALSE, $operators = [],
$dateFormat = 'searchDate', $displayTime = FALSE
) {
+ CRM_Core_Error::deprecatedFunctionWarning('function will be removed');
$selector = [
'' => ts('- any -'),
0 => ts('Choose Date Range'),
/**
* Build the date range - relative or absolute.
*
+ * @deprecated
+ *
* @param CRM_Core_Form $form
* The form object that we are operating on.
* @param string $fieldName
$displayTime = FALSE,
$attributes
) {
+ CRM_Core_Error::deprecatedFunctionWarning('function will be removed');
$form->add('select',
"{$fieldName}_relative",
ts('Relative Date Range'),