- Модуль: disk
- Путь к файлу: ~/bitrix/modules/disk/lib/internals/rights/setupsession.php
- Класс: BitrixDiskInternalsRightsSetupSession
- Вызов: SetupSession::register
static function register($objectId, $createdBy = null)
{
self::closeDuplicates($objectId);
$model = self::add(
array(
'OBJECT_ID' => $objectId,
'CREATED_BY' => $createdBy,
),
new InternalsErrorErrorCollection()
);
if ($model)
{
//this is internal event. It's possible, that we will delete it. Don't use it.
$event = new Event(
Driver::INTERNAL_MODULE_ID,
"onRightsSetupSessionRegister",
array(
'sessionModel' => $model,
)
);
$event->send();
}
return $model;
}