Exemple #1
0
 /**
  * Given a DOMNode representing an attribute, tries to map the data into
  * instance members.  If no mapping is defined, the name and value are
  * stored in an array.
  *
  * @param DOMNode $attribute The DOMNode attribute needed to be handled
  */
 protected function takeAttributeFromDOM($attribute)
 {
     switch ($attribute->localName) {
         case 'value':
             $this->_value = $attribute->nodeValue;
             break;
         default:
             parent::takeAttributeFromDOM($attribute);
     }
 }
Exemple #2
0
 protected function takeAttributeFromDOM($attribute)
 {
     switch ($attribute->localName) {
         case 'id':
             $this->_id = $attribute->nodeValue;
             break;
         case 'href':
             $this->_href = $attribute->nodeValue;
             break;
         default:
             parent::takeAttributeFromDOM($attribute);
     }
 }
Exemple #3
0
 protected function takeAttributeFromDOM($attribute)
 {
     switch ($attribute->localName) {
         case 'label':
             $this->_label = $attribute->nodeValue;
             break;
         case 'rel':
             $this->_rel = $attribute->nodeValue;
             break;
         case 'valueString':
             $this->_valueString = $attribute->nodeValue;
             break;
         default:
             parent::takeAttributeFromDOM($attribute);
     }
 }
Exemple #4
0
 protected function takeAttributeFromDOM($attribute)
 {
     switch ($attribute->localName) {
         case 'term':
             $this->_term = $attribute->nodeValue;
             break;
         case 'scheme':
             $this->_scheme = $attribute->nodeValue;
             break;
         case 'label':
             $this->_label = $attribute->nodeValue;
             break;
         default:
             parent::takeAttributeFromDOM($attribute);
     }
 }
Exemple #5
0
 /**
  * Given a DOMNode representing an attribute, tries to map the data into
  * instance members.  If no mapping is defined, the name and value are
  * stored in an array.
  *
  * @param DOMNode $attribute The DOMNode attribute needed to be handled
  */
 protected function takeAttributeFromDOM($attribute)
 {
     switch ($attribute->localName) {
         case 'min':
             $this->_min = $attribute->nodeValue;
             break;
         case 'max':
             $this->_max = $attribute->nodeValue;
             break;
         case 'numRaters':
             $this->_numRaters = $attribute->nodeValue;
             break;
         case 'average':
             $this->_average = $attribute->nodeValue;
             break;
         case 'value':
             $this->_value = $attribute->nodeValue;
         default:
             parent::takeAttributeFromDOM($attribute);
     }
 }
Exemple #6
0
 protected function takeAttributeFromDOM($attribute)
 {
     switch ($attribute->localName) {
         case 'href':
             $this->_href = $attribute->nodeValue;
             break;
         case 'rel':
             $this->_rel = $attribute->nodeValue;
             break;
         case 'type':
             $this->_type = $attribute->nodeValue;
             break;
         case 'hreflang':
             $this->_hrefLang = $attribute->nodeValue;
             break;
         case 'title':
             $this->_title = $attribute->nodeValue;
             break;
         case 'length':
             $this->_length = $attribute->nodeValue;
             break;
         default:
             parent::takeAttributeFromDOM($attribute);
     }
 }
Exemple #7
0
 protected function takeAttributeFromDOM($attribute)
 {
     switch ($attribute->localName) {
         case 'startTime':
             $this->_startTime = $attribute->nodeValue;
             break;
         case 'endTime':
             $this->_endTime = $attribute->nodeValue;
             break;
         case 'valueString':
             $this->_valueString = $attribute->nodeValue;
             break;
         default:
             parent::takeAttributeFromDOM($attribute);
     }
 }
Exemple #8
0
 protected function takeAttributeFromDOM($attribute)
 {
     switch ($attribute->localName) {
         case 'countHint':
             $this->_countHint = $attribute->nodeValue;
             break;
         case 'href':
             $this->_href = $attribute->nodeValue;
             break;
         case 'readOnly':
             if ($attribute->nodeValue == "true") {
                 $this->_readOnly = true;
             } else {
                 if ($attribute->nodeValue == "false") {
                     $this->_readOnly = false;
                 } else {
                     throw new \Zend\GData\App\InvalidArgumentException("Expected 'true' or 'false' for gCal:selected#value.");
                 }
             }
             break;
         case 'rel':
             $this->_rel = $attribute->nodeValue;
             break;
         default:
             parent::takeAttributeFromDOM($attribute);
     }
 }
 /**
  * Given a DOMNode representing an attribute, tries to map the data into
  * instance members.  If no mapping is defined, the name and value are
  * stored in an array.
  *
  * @param DOMNode $attribute The DOMNode attribute needed to be handled
  */
 protected function takeAttributeFromDOM($attribute)
 {
     switch ($attribute->localName) {
         case 'specialized':
             if ($attribute->nodeValue == "true") {
                 $this->_specialized = true;
             } else {
                 if ($attribute->nodeValue == "false") {
                     $this->_specialized = false;
                 } else {
                     throw new \Zend\GData\App\InvalidArgumentException("Expected 'true' or 'false' for gCal:selected#value.");
                 }
             }
             break;
         default:
             parent::takeAttributeFromDOM($attribute);
     }
 }
Exemple #10
0
 protected function takeAttributeFromDOM($attribute)
 {
     switch ($attribute->localName) {
         case 'absoluteTime':
             $this->_absoluteTime = $attribute->nodeValue;
             break;
         case 'method':
             $this->_method = $attribute->nodeValue;
             break;
         case 'days':
             $this->_days = $attribute->nodeValue;
             break;
         case 'hours':
             $this->_hours = $attribute->nodeValue;
             break;
         case 'minutes':
             $this->_minutes = $attribute->nodeValue;
             break;
         default:
             parent::takeAttributeFromDOM($attribute);
     }
 }