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 }