DOES::getDescriptionFormatted

  1. Bitrix24 API (v. 23.675.0)
  2. tasks
  3. DOES
  4. getDescriptionFormatted
  • Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/dispatcher.php
  • Класс: BitrixTasksDOES
  • Вызов: DOES::getDescriptionFormatted
public function getDescriptionFormatted()
{
	$formatted = '';

	$desc = $this->getDescription();

	foreach($desc as $method)
	{
		$argsFormatted = array();
		if(is_array($method['ARGUMENTS']))
		{
			foreach($method['ARGUMENTS'] as $arg)
			{
				$argsFormatted[] = $arg['TYPE'].' '.$arg['NAME'].($arg['REQUIRED'] ? '*' : '');
			}
		}

		$formatted[] = $method['QUERY'].'('.implode(', ', $argsFormatted).')'.($method['DOC'] !== '' ? ' - '.$method['DOC'] : '');
	}

	return implode(PHP_EOL, $formatted);
}

Добавить комментарий