public function addContributor($name, $email = '', $url = '')
 {
     if (parent::isFilledString($name) == TRUE) {
         if (!isset($this->contributors)) {
             $this->contributors = new AtomBuilderObjectList(0, 1000);
         }
         // end if
         $tmp_person = new AtomBuilderPerson($name);
         if (parent::isFilledString($email) == TRUE) {
             $tmp_person->setEmail($email);
         }
         // end if
         if (parent::isFilledString($url) == TRUE) {
             $tmp_person->setURL($url);
         }
         // end if
         $this->contributors->addObject($tmp_person);
     }
     // end if
 }
 protected function getPerson(AtomBuilderPerson $person, $tagname = '', $parentnode)
 {
     $newnode = $this->xml->createElement($tagname);
     $parentnode->appendChild($newnode);
     $personname = $this->xml->createElement('name');
     $personname->appendChild($this->xml->createTextNode($person->getName()));
     $newnode->appendChild($personname);
     if ($person->getEmail() != FALSE) {
         $personmail = $this->xml->createElement('email');
         $personmail->appendChild($this->xml->createTextNode($person->getEmail()));
         $newnode->appendChild($personmail);
     }
     // end if
     if ($person->getURL() != FALSE) {
         $personurl = $this->xml->createElement('uri');
         $personurl->appendChild($this->xml->createTextNode($person->getURL()));
         $newnode->appendChild($personurl);
     }
     // end if
 }