• Модуль: bizproc
  • Путь к файлу: ~/bitrix/modules/bizproc/lib/automation/engine/template.php
  • Класс: BitrixBizprocAutomationEngineTemplate
  • Вызов: Template::getRobotsByNames
public function getRobotsByNames(array $names): array
{
	return array_uintersect($this->getRobots(), $names, function ($lhs, $rhs) {
		$lhsName = is_string($lhs) ? $lhs : $lhs->getName();
		$rhsName = is_string($rhs) ? $rhs : $rhs->getName();

		return strcmp($lhsName, $rhsName);
	});
}