SAAS-1058: Podcast table schema
SAAS-1059: Add description field to cc_files
This commit is contained in:
parent
2d2ed25fcc
commit
28493497fd
32 changed files with 7660 additions and 18 deletions
|
@ -0,0 +1,59 @@
|
|||
<?php
|
||||
|
||||
class Rest_PodcastController extends Zend_Rest_Controller
|
||||
{
|
||||
public function init()
|
||||
{
|
||||
$this->view->layout()->disableLayout();
|
||||
|
||||
// Remove reliance on .phtml files to render requests
|
||||
$this->_helper->viewRenderer->setNoRender(true);
|
||||
}
|
||||
|
||||
public function indexAction()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function getAction()
|
||||
{
|
||||
$id = $this->getId();
|
||||
if (!$id) {
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
//https://github.com/aaronsnoswell/itunes-podcast-feed/blob/master/feed.php
|
||||
|
||||
} catch (Exception $e) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public function postAction()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function putAction()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function deleteAction()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private function getId()
|
||||
{
|
||||
if (!$id = $this->_getParam('id', false)) {
|
||||
$resp = $this->getResponse();
|
||||
$resp->setHttpResponseCode(400);
|
||||
$resp->appendBody("ERROR: No podcast ID specified.");
|
||||
return false;
|
||||
}
|
||||
return $id;
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue