2015-11-13 20:57:32 +01:00
|
|
|
<?php
|
|
|
|
|
2021-10-11 16:10:47 +02:00
|
|
|
class PodcastController extends Zend_Controller_Action
|
|
|
|
{
|
|
|
|
public function init()
|
|
|
|
{
|
2015-11-13 20:57:32 +01:00
|
|
|
$headScript = $this->view->headScript();
|
2022-09-19 11:58:31 +02:00
|
|
|
AirtimeTableView::injectTableJavaScriptDependencies($headScript);
|
2015-11-13 20:57:32 +01:00
|
|
|
|
2022-09-19 11:58:31 +02:00
|
|
|
$this->view->headScript()->appendFile(Assets::url('js/airtime/library/library.js'), 'text/javascript');
|
|
|
|
$this->view->headScript()->appendFile(Assets::url('js/airtime/library/events/library_showbuilder.js'), 'text/javascript');
|
2015-11-13 20:57:32 +01:00
|
|
|
|
2022-09-19 11:58:31 +02:00
|
|
|
$this->view->headScript()->appendFile(Assets::url('js/airtime/widgets/table.js'), 'text/javascript');
|
|
|
|
$this->view->headScript()->appendFile(Assets::url('js/airtime/library/podcast.js'), 'text/javascript');
|
2015-11-13 20:57:32 +01:00
|
|
|
|
2022-09-19 11:58:31 +02:00
|
|
|
$this->view->headLink()->appendStylesheet(Assets::url('css/datatables/css/ColVis.css'));
|
|
|
|
$this->view->headLink()->appendStylesheet(Assets::url('css/datatables/css/dataTables.colReorder.min.css'));
|
2015-11-13 20:57:32 +01:00
|
|
|
|
2022-09-19 11:58:31 +02:00
|
|
|
$this->view->headLink()->appendStylesheet(Assets::url('css/station_podcast.css'));
|
|
|
|
$this->view->headLink()->appendStylesheet(Assets::url('css/dashboard.css'));
|
2015-11-13 20:57:32 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2021-10-11 16:10:47 +02:00
|
|
|
* Renders the Station podcast view.
|
2015-11-13 20:57:32 +01:00
|
|
|
*/
|
2021-10-11 16:10:47 +02:00
|
|
|
public function stationAction()
|
|
|
|
{
|
2015-11-13 20:57:32 +01:00
|
|
|
$stationPodcastId = Application_Model_Preference::getStationPodcastId();
|
|
|
|
$podcast = Application_Service_PodcastService::getPodcastById($stationPodcastId);
|
|
|
|
$this->view->podcast = json_encode($podcast);
|
|
|
|
$this->view->form = new Application_Form_StationPodcast();
|
|
|
|
}
|
2019-08-18 15:57:24 +02:00
|
|
|
}
|