added UI to toggle autoplaylist repeat option
This commit is contained in:
parent
7a944ac9ce
commit
c12ad4ea4f
13 changed files with 64 additions and 2 deletions
|
@ -135,6 +135,13 @@ class Application_Model_Show
|
|||
$hasAutoPlaylist = $show->getDbHasAutoPlaylist();
|
||||
return $hasAutoPlaylist;
|
||||
}
|
||||
|
||||
public function getAutoPlaylistRepeat() {
|
||||
$show = CcShowQuery::create()->findPK($this->_showId);
|
||||
$AutoPlaylistRepeat = $show->getDbAutoPlaylistRepeat();
|
||||
return $AutoPlaylistRepeat;
|
||||
}
|
||||
|
||||
|
||||
public function setHasAutoPlaylist($value)
|
||||
{
|
||||
|
|
|
@ -96,7 +96,15 @@ SQL;
|
|||
return $show->getDbAutoPlaylistId();
|
||||
|
||||
}
|
||||
|
||||
|
||||
public function getAutoPlaylistRepeat()
|
||||
{
|
||||
$show = CcShowQuery::create()->findPK($this->getShowId());
|
||||
return $show->getDbAutoPlaylistRepeat();
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Return the start time of the Show (UTC time)
|
||||
* @return string in format DEFAULT_TIMESTAMP_FORMAT (PHP time notation)
|
||||
|
|
|
@ -321,6 +321,7 @@ class CcShow extends BaseCcShow {
|
|||
$info['linked'] = $this->getDbLinked();
|
||||
$info['has_autoplaylist'] = $this->getDbHasAutoPlaylist();
|
||||
$info['autoplaylist_id'] = $this->getDbAutoPlaylistId();
|
||||
$info['autoplaylist_repeat'] = $this->getDbAutoPlaylistRepeat();
|
||||
return $info;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue