• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/V2/Settings/Preset/Preset.php
  • Класс: BitrixImV2SettingsPresetPreset
  • Вызов: Preset::initPersonal
public function initPersonal(int $userId): Preset
{
	$this->id = Configuration::createUserPreset($userId);
	$this->sort = Configuration::USER_PRESET_SORT;
	$this->personalUserId = $userId;

	$this->notify = new Notify($this->id);
	$this->general = new General($this->id);

	$this->general->fillDataBase();
	$this->notify->fillDataBase($this->general->isSimpleNotifySchema(), $this->general->getSimpleNotifyScheme());

	static::$instances[$this->id] = $this;

	return $this;
}