Esempio n. 1
0
 /**
  * Retrieves a DOMElement which corresponds to this element and all
  * child properties.  This is used to build an entry back into a DOM
  * and eventually XML text for sending to the server upon updates, or
  * for application storage/persistence.
  *
  * @param DOMDocument $doc The DOMDocument used to construct DOMElements
  * @return DOMElement The DOMElement representing this element and all
  * child properties.
  */
 public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
 {
     $element = parent::getDOM($doc, $majorVersion, $minorVersion);
     if ($this->_value !== null) {
         $element->setAttribute('value', $this->_value);
     }
     return $element;
 }
Esempio n. 2
0
 public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
 {
     $element = parent::getDOM($doc, $majorVersion, $minorVersion);
     if ($this->_draft != null) {
         $element->appendChild($this->_draft->getDOM($element->ownerDocument));
     }
     return $element;
 }
Esempio n. 3
0
 public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
 {
     $element = parent::getDOM($doc, $majorVersion, $minorVersion);
     if ($this->_rel !== null) {
         $element->setAttribute('rel', $this->_rel);
     }
     if ($this->_feedLink !== null) {
         $element->appendChild($this->_feedLink->getDOM($element->ownerDocument));
     }
     return $element;
 }
Esempio n. 4
0
 public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
 {
     $element = parent::getDOM($doc, $majorVersion, $minorVersion);
     if ($this->_uri !== null) {
         $element->setAttribute('uri', $this->_uri);
     }
     if ($this->_version !== null) {
         $element->setAttribute('version', $this->_version);
     }
     return $element;
 }
Esempio n. 5
0
 public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
 {
     $element = parent::getDOM($doc, $majorVersion, $minorVersion);
     if ($this->_name != null) {
         $element->appendChild($this->_name->getDOM($element->ownerDocument));
     }
     if ($this->_email != null) {
         $element->appendChild($this->_email->getDOM($element->ownerDocument));
     }
     if ($this->_uri != null) {
         $element->appendChild($this->_uri->getDOM($element->ownerDocument));
     }
     return $element;
 }
Esempio n. 6
0
 public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
 {
     $element = parent::getDOM($doc, $majorVersion, $minorVersion);
     if ($this->_id !== null) {
         $element->setAttribute('id', $this->_id);
     }
     if ($this->_href !== null) {
         $element->setAttribute('href', $this->_href);
     }
     if ($this->_when !== null) {
         $element->appendChild($this->_when->getDOM($element->ownerDocument));
     }
     return $element;
 }
Esempio n. 7
0
 public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
 {
     $element = parent::getDOM($doc, $majorVersion, $minorVersion);
     if ($this->_term !== null) {
         $element->setAttribute('term', $this->_term);
     }
     if ($this->_scheme !== null) {
         $element->setAttribute('scheme', $this->_scheme);
     }
     if ($this->_label !== null) {
         $element->setAttribute('label', $this->_label);
     }
     return $element;
 }
Esempio n. 8
0
 /**
  * Retrieves a DOMElement which corresponds to this element and all
  * child properties.  This is used to build an entry back into a DOM
  * and eventually XML text for sending to the server upon updates, or
  * for application storage/persistence.
  *
  * @param DOMDocument $doc The DOMDocument used to construct DOMElements
  * @return DOMElement The DOMElement representing this element and all
  * child properties.
  */
 public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
 {
     $element = parent::getDOM($doc, $majorVersion, $minorVersion);
     if ($this->_specialized !== null) {
         $element->setAttribute('specialized', $this->_specialized ? "true" : "false");
     }
     if ($this->_entryLink !== null) {
         $element->appendChild($this->_entryLink->getDOM($element->ownerDocument));
     }
     if ($this->_originalEvent !== null) {
         $element->appendChild($this->_originalEvent->getDOM($element->ownerDocument));
     }
     return $element;
 }
Esempio n. 9
0
 public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
 {
     $element = parent::getDOM($doc, $majorVersion, $minorVersion);
     if ($this->_href !== null) {
         $element->setAttribute('href', $this->_href);
     }
     if ($this->_readOnly !== null) {
         $element->setAttribute('readOnly', $this->_readOnly ? "true" : "false");
     }
     if ($this->_rel !== null) {
         $element->setAttribute('rel', $this->_rel);
     }
     if ($this->_entry !== null) {
         $element->appendChild($this->_entry->getDOM($element->ownerDocument));
     }
     return $element;
 }
Esempio n. 10
0
 public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
 {
     $element = parent::getDOM($doc, $majorVersion, $minorVersion);
     if ($this->_startTime !== null) {
         $element->setAttribute('startTime', $this->_startTime);
     }
     if ($this->_endTime !== null) {
         $element->setAttribute('endTime', $this->_endTime);
     }
     if ($this->_valueString !== null) {
         $element->setAttribute('valueString', $this->_valueString);
     }
     if ($this->_reminders !== null) {
         foreach ($this->_reminders as $reminder) {
             $element->appendChild($reminder->getDOM($element->ownerDocument));
         }
     }
     return $element;
 }
Esempio n. 11
0
 /**
  * Retrieves a DOMElement which corresponds to this element and all
  * child properties.  This is used to build an entry back into a DOM
  * and eventually XML text for sending to the server upon updates, or
  * for application storage/persistence.
  *
  * @param DOMDocument $doc The DOMDocument used to construct DOMElements
  * @return DOMElement The DOMElement representing this element and all
  *          child properties.
  */
 public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
 {
     $element = parent::getDOM($doc, $majorVersion, $minorVersion);
     if ($this->_min !== null) {
         $element->setAttribute('min', $this->_min);
     }
     if ($this->_max !== null) {
         $element->setAttribute('max', $this->_max);
     }
     if ($this->_numRaters !== null) {
         $element->setAttribute('numRaters', $this->_numRaters);
     }
     if ($this->_average !== null) {
         $element->setAttribute('average', $this->_average);
     }
     if ($this->_value !== null) {
         $element->setAttribute('value', $this->_value);
     }
     return $element;
 }
Esempio n. 12
0
 public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
 {
     $element = parent::getDOM($doc, $majorVersion, $minorVersion);
     if ($this->_absoluteTime !== null) {
         $element->setAttribute('absoluteTime', $this->_absoluteTime);
     }
     if ($this->_method !== null) {
         $element->setAttribute('method', $this->_method);
     }
     if ($this->_days !== null) {
         $element->setAttribute('days', $this->_days);
     }
     if ($this->_hours !== null) {
         $element->setAttribute('hours', $this->_hours);
     }
     if ($this->_minutes !== null) {
         $element->setAttribute('minutes', $this->_minutes);
     }
     return $element;
 }
Esempio n. 13
0
 public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
 {
     $element = parent::getDOM($doc, $majorVersion, $minorVersion);
     if ($this->_href !== null) {
         $element->setAttribute('href', $this->_href);
     }
     if ($this->_rel !== null) {
         $element->setAttribute('rel', $this->_rel);
     }
     if ($this->_type !== null) {
         $element->setAttribute('type', $this->_type);
     }
     if ($this->_hrefLang !== null) {
         $element->setAttribute('hreflang', $this->_hrefLang);
     }
     if ($this->_title !== null) {
         $element->setAttribute('title', $this->_title);
     }
     if ($this->_length !== null) {
         $element->setAttribute('length', $this->_length);
     }
     return $element;
 }
Esempio n. 14
0
 /**
  * Retrieves a DOMElement which corresponds to this element and all
  * child properties.  This is used to build an entry back into a DOM
  * and eventually XML text for sending to the server upon updates, or
  * for application storage/persistence.
  *
  * @param DOMDocument $doc The DOMDocument used to construct DOMElements
  * @return DOMElement The DOMElement representing this element and all
  * child properties.
  */
 public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
 {
     $element = parent::getDOM($doc, $majorVersion, $minorVersion);
     if ($this->_email !== null) {
         $element->setAttribute('email', $this->_email);
     }
     if ($this->_rel !== null) {
         $element->setAttribute('rel', $this->_rel);
     }
     if ($this->_valueString !== null) {
         $element->setAttribute('valueString', $this->_valueString);
     }
     if ($this->_attendeeStatus !== null) {
         $element->appendChild($this->_attendeeStatus->getDOM($element->ownerDocument));
     }
     if ($this->_attendeeType !== null) {
         $element->appendChild($this->_attendeeType->getDOM($element->ownerDocument));
     }
     if ($this->_entryLink !== null) {
         $element->appendChild($this->_entryLink->getDOM($element->ownerDocument));
     }
     return $element;
 }