• Модуль: dav
  • Путь к файлу: ~/bitrix/modules/dav/classes/general/icalendar.php
  • Класс: CDavICalendarComponent
  • Вызов: CDavICalendarComponent::__Render
public function __Render($restrictedProperties = null)
{
	$bUnrestricted = (!isset($restrictedProperties) || count($restrictedProperties) == 0);

	$result = "BEGIN:".$this->type."rn";
	foreach ($this->arProperties as $prop)
	{
		if (method_exists($prop, 'Render'))
		{
			if ($bUnrestricted || isset($restrictedProperties[$prop]))
				$result .= $prop->Render()."rn";
		}
	}
	foreach ($this->arComponents as $comp)
		$result .= $comp->Render();
	$result .= "END:".$this->type."rn";

	return $result;
}