/** * @see CultureFeed_Cdb_IElement::appendToDOM() */ public function appendToDOM(DOMELement $element) { $dom = $element->ownerDocument; $bookingElement = $dom->createElement('bookingperiod'); $bookingElement->appendChild($dom->createElement('datefrom', date('Y-m-d', $this->dateFrom))); $bookingElement->appendChild($dom->createElement('dateto', date('Y-m-d', $this->dateTill))); $element->appendChild($bookingElement); }
/** * @see CultureFeed_Cdb_IElement::appendToDOM() */ public function appendToDOM(DOMELement $element) { $dom = $element->ownerDocument; $exceptionsElement = $dom->createElement('exceptions'); foreach ($this as $timestamp) { $timestamp->appendToDom($exceptionsElement); } $element->appendChild($exceptionsElement); }
/** * @see CultureFeed_Cdb_IElement::appendToDOM() */ public function appendToDOM(DOMELement $element) { $dom = $element->ownerDocument; $openingElement = $dom->createElement('openingtime'); $openingElement->setAttribute('from', $this->openFrom); if ($this->openTill) { $openingElement->setAttribute('to', $this->openTill); } $element->appendChild($openingElement); }
/** * @see CultureFeed_Cdb_IElement::appendToDOM() */ public function appendToDOM(DOMELement $element) { $dom = $element->ownerDocument; $schemeElement = $dom->createElement('weekscheme'); foreach ($this->days as $day) { if ($day) { $day->appendToDom($schemeElement); } } $element->appendChild($schemeElement); }
/** * @see CultureFeed_Cdb_IElement::appendToDOM() */ public function appendToDOM(DOMELement $element) { $dom = $element->ownerDocument; $organiserElement = $dom->createElement('organiser'); if ($this->label) { $labelElement = $dom->createElement('label'); $labelElement->appendChild($dom->createTextNode($this->label)); if ($this->cdbid) { $labelElement->setAttribute('cdbid', $this->cdbid); } $organiserElement->appendChild($labelElement); } $element->appendChild($organiserElement); }
/** * @see CultureFeed_Cdb_IElement::appendToDOM() */ public function appendToDOM(DOMELement $element) { $dom = $element->ownerDocument; $calendarElement = $dom->createElement('calendar'); $openingTimesElement = $dom->createElement('permanentopeningtimes'); $permanentElement = $dom->createElement('permanent'); if ($this->exceptions) { $this->exceptions->appendToDOM($permanentElement); } if ($this->weekScheme) { $this->weekScheme->appendToDom($permanentElement); } $openingTimesElement->appendChild($permanentElement); $calendarElement->appendChild($openingTimesElement); $element->appendChild($calendarElement); }
/** * @see CultureFeed_Cdb_IElement::appendToDOM() */ public function appendToDOM(DOMELement $element) { $dom = $element->ownerDocument; $urlElement = $dom->createElement('url'); $urlElement->appendChild($dom->createTextNode($this->url)); if ($this->main) { $urlElement->setAttribute('main', 'true'); } if ($this->reservation) { $urlElement->setAttribute('reservation', 'true'); } $element->appendChild($urlElement); }
/** * @see CultureFeed_Cdb_IElement::appendToDOM() */ public function appendToDOM(DOMELement $element) { $dom = $element->ownerDocument; $periodElement = $dom->createElement('period'); $periodElement->appendChild($dom->createElement('datefrom', $this->dateFrom)); $periodElement->appendChild($dom->createElement('dateto', $this->dateTo)); if ($this->exceptions) { $this->exceptions->appendToDOM($periodElement); } if ($this->weekScheme) { $this->weekScheme->appendToDom($periodElement); } $element->appendChild($periodElement); }
/** * @see CultureFeed_Cdb_IElement::appendToDOM() */ public function appendToDOM(DOMELement $element) { $dom = $element->ownerDocument; $addressElement = $dom->createElement('address'); $element->appendChild($addressElement); if ($this->physicalAddress) { $this->physicalAddress->appendToDOM($addressElement); } if ($this->virtualAddress) { $this->virtualAddress->appendToDOM($addressElement); } }
/** * @see CultureFeed_Cdb_IElement::appendToDOM() */ public function appendToDOM(DOMELement $element) { $dom = $element->ownerDocument; $timestampElement = $dom->createElement('timestamp'); if ($this->openType) { $timestampElement->setAttribute('opentype', $this->openType); } $dateElement = $dom->createElement('date', $this->date); $timestampElement->appendChild($dateElement); if ($this->startTime) { $timeStartElement = $dom->createElement('timestart', $this->startTime); $timestampElement->appendChild($timeStartElement); } if ($this->endTime) { $timeEndElement = $dom->createElement('timeend'); $timeEndElement->appendChild($dom->createTextNode($this->endTime)); $timestampElement->appendChild($timeEndElement); } $element->appendChild($timestampElement); }
/** * @see CultureFeed_Cdb_IElement::appendToDOM() */ public function appendToDOM(DOMELement $element) { $dom = $element->ownerDocument; $dayElement = $dom->createElement($this->dayName); if ($this->openType) { $dayElement->setAttribute('opentype', $this->openType); } foreach ($this->openingTimes as $openingTime) { $openingTime->appendToDOM($dayElement); } $element->appendChild($dayElement); }
/** * @see CultureFeed_Cdb_IElement::appendToDOM() */ public function appendToDOM(DOMELement $element) { $dom = $element->ownerDocument; $locationElement = $dom->createElement('location'); if ($this->address) { $this->address->appendToDOM($locationElement); } if ($this->label) { $labelElement = $dom->createElement('label'); $labelElement->appendChild($dom->createTextNode($this->label)); if ($this->cdbid) { $labelElement->setAttribute('cdbid', $this->cdbid); } $locationElement->appendChild($labelElement); } if ($this->actor) { $this->actor->appendToDOM($locationElement); } $element->appendChild($locationElement); }
/** * @see CultureFeed_Cdb_IElement::appendToDOM() */ public function appendToDOM(DOMELement $element) { $dom = $element->ownerDocument; $priceElement = $dom->createElement('price'); if (isset($this->title)) { $titleElement = $dom->createElement('title'); $titleElement->appendChild($dom->createTextNode($this->title)); $priceElement->appendChild($titleElement); } if (isset($this->value)) { $valueElement = $dom->createElement('pricevalue'); $valueElement->appendChild($dom->createTextNode($this->value)); $priceElement->appendChild($valueElement); } if ($this->description) { $descriptionElement = $dom->createElement('pricedescription'); $descriptionElement->appendChild($dom->createTextNode($this->description)); $priceElement->appendChild($descriptionElement); } $element->appendChild($priceElement); }
/** * @see CultureFeed_Cdb_IElement::appendToDOM() */ public function appendToDOM(DOMELement $element) { $dom = $element->ownerDocument; $mailElement = $dom->createElement('mail', $this->address); if ($this->main) { $mailElement->setAttribute('main', 'true'); } if ($this->reservation) { $mailElement->setAttribute('reservation', 'true'); } $element->appendChild($mailElement); }
/** * @see CultureFeed_Cdb_IElement::appendToDOM() */ public function appendToDOM(DOMELement $element) { $dom = $element->ownerDocument; $phoneElement = $dom->createElement('phone', $this->number); if ($this->type) { $phoneElement->setAttribute('type', $this->type); } if ($this->main) { $phoneElement->setAttribute('main', 'true'); } if ($this->reservation) { $phoneElement->setAttribute('reservation', 'true'); } $element->appendChild($phoneElement); }