• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/util/assert.php
  • Класс: BitrixTasksUtilAssert
  • Вызов: Assert::expectArrayOfUniqueStringNotNull
static function expectArrayOfUniqueStringNotNull($arg, $argName = '', $customMsg = '')
{
	if(!is_array($arg))
		throw new MainArgumentException(self::formMessage('TASKS_ASSERT_ARRAY_EXPECTED', $argName, $customMsg));

	$arg = array_unique(array_values($arg));

	foreach($arg as $k => $v)
	{
		$v = (string) $v;
		if($v == '')
			throw new MainArgumentException(self::formMessage('TASKS_ASSERT_ARRAY_OF_STRING_NOT_NULL_EXPECTED', $argName, $customMsg));

		$arg[$k] = $v;
	}

	return $arg;
}