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

