• Модуль: disk
  • Путь к файлу: ~/bitrix/modules/disk/lib/volume/task.php
  • Класс: BitrixDiskVolumeTask
  • Вызов: Task::getIndicator
public function getIndicator()
{
	if (!$this->indicator instanceof VolumeIVolumeIndicator)
	{
		try
		{
			/** @var VolumeIVolumeIndicator $indicatorType */
			$indicatorType = $this->getIndicatorType();
			$this->indicator = VolumeBase::getIndicator($indicatorType::getIndicatorId());
			$this->indicator->setOwner($this->getOwnerId());
			if ($this->getId() > 0)
			{
				if (
					count($this->param) > 0 &&
					(int)$this->param['ID'] === $this->id
				)
				{
					$this->indicator->restoreFilter($this->param);
				}
				else
				{
					$this->indicator->restoreFilter($this->id);
				}
			}
		}
		catch(BitrixMainObjectException $ex)
		{
			return false;
		}
	}
	return $this->indicator;
}