Beispiel #1
0
 /**
  * @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);
 }
Beispiel #2
0
 /**
  * @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);
 }