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

