• Модуль: bizproc
  • Путь к файлу: ~/bitrix/modules/bizproc/lib/validator.php
  • Класс: BitrixBizprocValidator
  • Вызов: Validator::validate
protected function validate(string $type, $value): bool
{
	if ($type === self::TYPE_ARRAY)
	{
		return is_array($value);
	}
	elseif ($type === self::TYPE_NUMERIC)
	{
		return is_numeric($value);
	}
	else
	{
		return is_string($value);
	}
}