Beispiel #1
0
 public function toSource()
 {
     $source = new XML_Atom_Source($this->_id, $this->_title, $this->_updated);
     $source->setSubTitle($this->_sub_title);
     $source->setIcon($this->_icon);
     $source->setLogo($this->_logo);
     $source->setRights($this->_rights);
     $source->setGenerator($this->_generator);
     foreach ($this->_authors as $author) {
         $source->addAuthor($author);
     }
     foreach ($this->_contributors as $contributor) {
         $source->addContributor($contributor);
     }
     foreach ($this->_categories as $category) {
         $source->addCategory($category);
     }
     foreach ($this->_links as $link) {
         $source->addLink($link);
     }
 }