CC-1665: Scheduled stream rebroadcasting and recording

-ability to edit playlists
This commit is contained in:
Martin Konecny 2012-08-03 15:59:34 -04:00
parent c3783a15b2
commit 0ea66fc33f
6 changed files with 89 additions and 28 deletions

View file

@ -7,6 +7,7 @@ class WebstreamController extends Zend_Controller_Action
$ajaxContext = $this->_helper->getHelper('AjaxContext');
$ajaxContext->addActionContext('new', 'json')
->addActionContext('save', 'json')
->addActionContext('edit', 'json')
->initContext();
//TODO
//$this->pl_sess = new Zend_Session_Namespace(UI_PLAYLIST_SESSNAME);
@ -29,6 +30,20 @@ class WebstreamController extends Zend_Controller_Action
*/
}
public function editAction()
{
$request = $this->getRequest();
$id = $request->getParam("id");
if (is_null($id)) {
throw new Exception("Missing parameter 'id'");
}
$this->view->ws = new Application_Model_Webstream($id);
$this->view->html = $this->view->render('webstream/webstream.phtml');
}
public function saveAction()
{
$request = $this->getRequest();