• Модуль: disk
  • Путь к файлу: ~/bitrix/modules/disk/lib/volume/module/voximplant.php
  • Класс: BitrixDiskVolumeModuleVoximplant
  • Вызов: Voximplant::getUpdateTime
static function getUpdateTime(VolumeFragment $fragment): ?BitrixMainTypeDateTime
{
	$timestampUpdate = null;
	if ($fragment->getIndicatorType() == VolumeFolder::className() || $fragment->getIndicatorType() == VolumeFolderTree::className())
	{
		$folder = $fragment->getFolder();
		if (!$folder instanceof DiskFolder)
		{
			throw new ArgumentTypeException('Fragment must be subclass of '.DiskFolder::className());
		}
		$timestampUpdate = $folder->getUpdateTime()->toUserTime();
	}

	return $timestampUpdate;
}