method
public
static
UserTypePropertyEmployee::compareValues()
Сигнатура
public static compareValues(mixed $valueA, mixed $valueB) : int
Параметры
$valueA
mixed
Первое значение.
$valueB
mixed
Значение секунды.
Возвращаемое значение
int
Как применяется в UserTypePropertyEmployee
UserTypePropertyEmployee::compareValues() — метод класса \Bitrix\Iblock\BizprocType\UserTypePropertyEmployee модуля «Информационные блоки».
Статический метод — вызывается через имя класса UserTypePropertyEmployee, без создания объекта.
use Bitrix\Main\Loader;
use Bitrix\Iblock\BizprocType\UserTypePropertyEmployee;
Loader::includeModule('iblock');
$valueA = null;
$valueB = null;
$result = UserTypePropertyEmployee::compareValues($valueA, $valueB);
// $result: intДругие методы UserTypePropertyEmployee
addError()addErrors()addFormat()canRenderControl()clearValueMultiple()clearValueSingle()convertFrom()convertPropertyToView()convertTo()convertValueMultiple()convertValueSingle()externalizeValue()
compareValues() есть и у других классов модуля «Информационные блоки»: UserTypeProperty, UserTypePropertyDiskFile, UserTypePropertyElist, UserTypePropertyHtml.
Исходный файл: source/iblock/lib/bizproctype/usertypepropertyemployee.php:852

