• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/util/type.php
  • Класс: BitrixTasksUtilType
  • Вызов: Type::isIterable
static function isIterable($arg)
{
	if(is_array($arg))
	{
		return true;
	}

	if(is_object($arg))
	{
		$iFaces = class_implements($arg);
		return isset($iFaces['Iterator']) || isset($iFaces['IteratorAggregate']);
	}

	return false;
}