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

