• Модуль: dav
  • Путь к файлу: ~/bitrix/modules/dav/classes/general/icalendar.php
  • Класс: CDavICalendar
  • Вызов: CDavICalendar::GetComponentsByProperty
public function GetComponentsByProperty($type, $property, $propertyValue = null)
{
	$arComponents = $this->component->GetComponents($type, true);

	$arKeys = array_keys($arComponents);
	foreach ($arKeys as $key)
	{
		$val = $arComponents[$key]->GetPropertyValue($property);
		if ($val == null || $propertyValue != null && $val != $propertyValue)
			unset($arComponents[$key]);
	}

	$arComponents = array_values($arComponents);

	return $arComponents;
}