/** * @see CultureFeed_Cdb_IElement::parseFromCdbXml(SimpleXMLElement * $xmlElement) * @return CultureFeed_Cdb_Data_Calendar_Exceptions */ public static function parseFromCdbXml(SimpleXMLElement $xmlElement) { $exceptions = new CultureFeed_Cdb_Data_Calendar_Exceptions(); foreach ($xmlElement->timestamp as $timestampElement) { $exceptions->add(CultureFeed_Cdb_Data_Calendar_Timestamp::parseFromCdbXml($timestampElement)); } return $exceptions; }
/** * @see CultureFeed_Cdb_IElement::parseFromCdbXml(SimpleXMLElement $xmlElement) * @return CultureFeed_Cdb_Data_PeriodList */ public static function parseFromCdbXml(SimpleXMLElement $xmlElement) { $timestampList = new CultureFeed_Cdb_Data_Calendar_TimestampList(); if (!empty($xmlElement->timestamp)) { foreach ($xmlElement->timestamp as $timestampElement) { $timestampList->add(CultureFeed_Cdb_Data_Calendar_Timestamp::parseFromCdbXml($timestampElement)); } } return $timestampList; }