RecurringEventRules::getFields

  1. Bitrix24 API (v. 23.675.0)
  2. calendar
  3. RecurringEventRules
  4. getFields
  • Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/core/event/properties/recurringeventrules.php
  • Класс: BitrixCalendarCoreEventPropertiesRecurringEventRules
  • Вызов: RecurringEventRules::getFields
public function getFields(): array
{
	$fields = [];

	$fields['frequency'] = $this->frequency;

	if ($this->count > 0)
	{
		$fields['count'] = $this->count;
	}

	if (isset($this->until))
	{
		$fields['until'] = $this->until->format($this->dateFormat);
	}

	if (isset($this->interval))
	{
		$fields['interval'] = $this->interval;
	}

	if (isset($this->byDay))
	{
		$fields['byday'] = $this->byDay;
	}

	return $fields;
}

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