Esempio n. 1
0
 function itemSetToRSSArray($podcast_item_set)
 {
     if (!$podcast_item_set->isReady()) {
         return null;
     }
     while ($item = $podcast_item_set->getData()) {
         $items[] = array("title" => $item['title'], "pubDate" => date('D, j M Y G:i:s T', strtotime($item['date'])), "guid" => $this->getGuid($item['file']), "enclosure" => array("_attributes" => array("url" => $this->getFileLink($item['file']), "length" => Podcast::convert_time($item['length']), "type" => "audio/mpeg")), "link" => $this->getItemLink($item['id']), "itunes:author" => $item['author'], "itunes:subtitle" => $item['subtitle'], "itunes:summary" => $item['description'], "description" => $item['description'], "itunes:category" => $item['category'], "itunes:duration" => $item['length'], "itunes:explicit" => 'no', "itunes:keywords" => $item['keywords']);
     }
     return $items;
 }