EventModel::setParentEventSectionFields

  1. Bitrix24 API (v. 23.675.0)
  2. calendar
  3. EventModel
  4. setParentEventSectionFields
  • Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/access/model/eventmodel.php
  • Класс: BitrixCalendarAccessModelEventModel
  • Вызов: EventModel::setParentEventSectionFields
public function setParentEventSectionFields(array $fields): self
{
	if (($fields['OWNER_ID'] ?? null) && (int)$fields['OWNER_ID'])
	{
		$this->setParentEventOwnerId((int)$fields['OWNER_ID']);
	}

	if (($fields['SECTION_ID'] ?? null) && (int)$fields['SECTION_ID'])
	{
		$this->setParentEventSectionId((int)$fields['SECTION_ID']);
	}

	if (($fields['CAL_TYPE'] ?? null) && is_string($fields['CAL_TYPE']))
	{
		$this->setParentEventSectionType($fields['CAL_TYPE']);
	}

	return $this;
}

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