• Модуль: disk
  • Путь к файлу: ~/bitrix/modules/disk/lib/sharing.php
  • Класс: BitrixDiskSharing
  • Вызов: Sharing::loadByNotifyTag
static function loadByNotifyTag($tag)
{
	$tagData = explode('|', $tag);
	if( !(
		$tagData[0] === Driver::INTERNAL_MODULE_ID &&
		$tagData[1] === 'SHARING' &&
		isset($tagData[2], $tagData[3]) && is_numeric($tagData[2])
	))
	{
		return null;
	}

	$model = static::load(array(
		'REAL_OBJECT_ID' => (int)$tagData[2],
		'=TO_ENTITY' => $tagData[3],
	));

	if(!$model)
	{
		return null;
	}

	return $model;
}