• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/util/process.php
  • Класс: BitrixTasksUtilProcess
  • Вызов: Process::getStagePercent
public function getStagePercent($stage)
	{
		if(intval($stage) < 0)
		{
			return 0;
		}

		if((string) intval($stage) == (string) $stage)
		{
			$stage = $this->getStageCodeByIndex($stage);
		}
		else
		{
			if(!isset($this->stages[$stage]))
				throw new FlowException('No such stage: "'.$stage.'"');
		}

		return $this->stages[$stage]['PERCENT'];
	}