method
public
static
LeadSumStatisticEntry::nullSafeCompareDates()
Сигнатура
public static nullSafeCompareDates([Date|null $first = null ][, Date|null $second = null ]) : int
Описание
Возвращает значение меньше 0, если первая дата раньше второй.
Возвращает 0, если они равны.
Возвращает значение больше 0, если первая дата позже второй.
Параметры
$first
Date|null
= null
Первая дата.
$second
Date|null
= null
Вторая дата.
Возвращаемое значение
int
Как применяется в LeadSumStatisticEntry
LeadSumStatisticEntry::nullSafeCompareDates() — метод класса \Bitrix\Crm\Statistics\LeadSumStatisticEntry модуля «CRM».
Статический метод — вызывается через имя класса LeadSumStatisticEntry, без создания объекта.
use Bitrix\Main\Loader;
use Bitrix\Crm\Statistics\LeadSumStatisticEntry;
Loader::includeModule('crm');
$result = LeadSumStatisticEntry::nullSafeCompareDates();
// $result: intДругие методы LeadSumStatisticEntry
getAll()Получить всеgetBindingInfos()Получить сведения о привязкахgetBusySlotCount()Получить количество занятых слотовgetCurrent()Получить текущий экземплярgetEntityTypeID()Получить идентификатор типа сущностиgetLatest()Получить последниеgetSlotBindingMap()Получить карту привязокgetSlotFieldInfos()Получить данные полейgetSlotInfos()Получить данные слотовgetTypeName()Получить имя типа записиisRegistered()Проверить, зарегистрирована ли сущностьisValid()Проверить, действительна ли запись
nullSafeCompareDates() есть и у других классов модуля «CRM»: ActivityChannelStatisticEntry, DealChannelStatisticEntry, DealSumStatisticEntry, InvoiceSumStatisticEntry, LeadChannelStatisticEntry, StatisticEntryBase.
Исходный файл: source/crm/lib/statistics/leadsumstatisticentry.php:104

