intro playlist scaffolding in place but needs refinement to get working
This commit is contained in:
parent
ae9f95c758
commit
f9a5da2ba3
5 changed files with 53 additions and 4 deletions
|
@ -387,6 +387,26 @@ class Application_Model_Preference
|
|||
return $val === '1' ? true : false;
|
||||
}
|
||||
|
||||
public static function GetIntroPlaylist()
|
||||
{
|
||||
return self::getValue("intro_playlist");
|
||||
}
|
||||
|
||||
public static function GetOutroPlaylist()
|
||||
{
|
||||
return self::getValue("outro_playlist");
|
||||
}
|
||||
|
||||
|
||||
public static function SetIntroPlaylist($playlist)
|
||||
{
|
||||
self::setValue("intro_playlist", $playlist);
|
||||
}
|
||||
|
||||
public static function SetOutroPlaylist($playlist)
|
||||
{
|
||||
self::setValue("outro_playlist", $playlist);
|
||||
}
|
||||
|
||||
public static function SetPhone($phone)
|
||||
{
|
||||
|
|
|
@ -244,7 +244,22 @@ SQL;
|
|||
);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Add a playlist as the first item of the current show.
|
||||
*
|
||||
* @param int $plId
|
||||
* Playlist ID.
|
||||
*/
|
||||
public function addPlaylistToShowStart($pl_id, $checkUserPerm = true)
|
||||
{
|
||||
$ts = intval($this->_showInstance->getDbLastScheduled("U")) ? : 0;
|
||||
$id = $this->_showInstance->getDbId();
|
||||
$scheduler = new Application_Model_Scheduler($checkUserPerm);
|
||||
$scheduler->scheduleAfter(
|
||||
array(array("id" => 0, "instance" => $id, "timestamp" => $ts)),
|
||||
array(array("id" => $pl_id, "type" => "playlist"))
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue