TypeModel::createFromSectionModel

  1. Bitrix24 API (v. 23.675.0)
  2. calendar
  3. TypeModel
  4. createFromSectionModel
  • Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/access/model/typemodel.php
  • Класс: BitrixCalendarAccessModelTypeModel
  • Вызов: TypeModel::createFromSectionModel
static function createFromSectionModel(SectionModel $sectionModel): self
{
	if ($sectionModel->getType() !== '')
	{
		$model = self::createFromXmlId($sectionModel->getType());
	}
	else
	{
		$model = self::createNew();
	}

	return $model;
}

Добавить комментарий