Esempio n. 1
0
File: Text.php Progetto: rexmac/zf2
 protected function takeAttributeFromDOM($attribute)
 {
     switch ($attribute->localName) {
         case 'type':
             $this->_type = $attribute->nodeValue;
             break;
         default:
             parent::takeAttributeFromDOM($attribute);
     }
 }
Esempio n. 2
0
 protected function takeAttributeFromDOM($attribute)
 {
     switch ($attribute->localName) {
         case 'uri':
             $this->_uri = $attribute->nodeValue;
             break;
         case 'version':
             $this->_version = $attribute->nodeValue;
             break;
         default:
             parent::takeAttributeFromDOM($attribute);
     }
 }
Esempio n. 3
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);
     }
 }
Esempio n. 4
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);
     }
 }
Esempio n. 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 'url':
             $this->_url = $attribute->nodeValue;
             break;
         case 'height':
             $this->_height = $attribute->nodeValue;
             break;
         case 'width':
             $this->_width = $attribute->nodeValue;
             break;
         default:
             parent::takeAttributeFromDOM($attribute);
     }
 }