• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/ui.php
  • Класс: BitrixTasksUI
  • Вызов: UI::convertActionPathToBarNotation
static function convertActionPathToBarNotation($path, array $map = array())
{
	if($path == '')
	{
		return $path;
	}

	if(!empty($map))
	{
		foreach($map as $from => $to)
		{
			$path = str_replace(
				array('#'.$from.'#', '#'.ToLower($from).'#', '#'.ToUpper($from).'#'),
				'{{'.$to.'}}',
				$path);
		}
	}
	else
	{
		$path = preg_replace_callback('/#([^#]+)#/', function($matches){
			return '{{'.ToUpper($matches[1]).'}}';
		}, $path);
	}

	return $path;
}