Exemplo n.º 1
0
 public static function getNewId()
 {
     return 'tag:daseproject.org,' . date('Y') . ':' . Dase_Util::getUniqueName();
 }
Exemplo n.º 2
0
 function injectAtomFeedData(Dase_Atom_Feed $feed, $app_root)
 {
     if (!$this->id) {
         return false;
     }
     $c = $this->getCollection();
     if (is_numeric($this->updated)) {
         $updated = date(DATE_ATOM, $this->updated);
     } else {
         $updated = $this->updated;
     }
     $feed->setUpdated($updated);
     $feed->setTitle($this->getTitle());
     $feed->setId('tag:daseproject.org,2008:' . Dase_Util::getUniqueName());
     $feed->addLink($app_root . '/item/' . $this->p_collection_ascii_id . '/' . $this->serial_number . '.atom', 'self');
     $feed->addAuthor();
     return $feed;
 }