Added AutoPlaylist Functionality to Show Scheduler enabling shows to have tracks added automatically.

This commit is contained in:
Robb Ebright 2017-02-13 09:35:09 -05:00 committed by Lucas Bickel
parent e3785e25f9
commit 32a1a66378
29 changed files with 1535 additions and 47 deletions

View file

@ -129,6 +129,34 @@ class Application_Model_Show
return $this->_showId;
}
public function getHasAutoPlaylist()
{
$show = CcShowQuery::create()->findPK($this->_showId);
$hasAutoPlaylist = $show->getDbHasAutoPlaylist();
return $hasAutoPlaylist;
}
public function setHasAutoPlaylist($value)
{
$show = CcShowQuery::create()->findPK($this->_showId);
$show->setDbHasAutoPlaylist($value);
}
public function getAutoPlaylistId()
{
$show = CcShowQuery::create()->findPK($this->_showId);
$autoPlaylistId = $show->getDbAutoPlaylistId();
return $autoPlaylistId;
}
public function setAutoPlaylistId($playlistid)
{
$show = CcShowQuery::create()->findPK($this->_showId);
$show->setDbAutoPlaylistId($playlistid);
}
public function getHosts()
{
$sql = <<<SQL