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
|
@ -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