2015-10-13 16:14:23 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
class PodcastFactory
|
|
|
|
{
|
|
|
|
public static function create($feedUrl)
|
|
|
|
{
|
|
|
|
// check if station podcast exists and if not, create one
|
2015-10-19 17:54:53 +02:00
|
|
|
$stationPodcastId = Application_Model_Preference::getStationPodcastId();
|
|
|
|
if (empty($stationPodcastId)) {
|
|
|
|
Application_Service_PodcastService::createStationPodcast();
|
|
|
|
}
|
2015-10-13 16:14:23 +02:00
|
|
|
|
2015-10-14 16:58:13 +02:00
|
|
|
return Application_Service_PodcastService::createFromFeedUrl($feedUrl);
|
2015-10-13 16:14:23 +02:00
|
|
|
}
|
2021-10-11 16:10:47 +02:00
|
|
|
}
|