CC-5347 : isScheduled doesn't work for webstreams

This commit is contained in:
Naomi 2013-10-02 11:24:48 -04:00
parent a34ae69d4b
commit 4d01e3b11f
4 changed files with 43 additions and 9 deletions

View file

@ -407,4 +407,24 @@ class Application_Service_SchedulerService
return false;
}
}
/*
* TODO in the future this should probably support webstreams.
*/
public function updateFutureIsScheduled($scheduleId, $status)
{
$sched = CcScheduleQuery::create()->findPk($scheduleId);
$redraw = false;
if (isset($sched)) {
$fileId = $sched->getDbFileId();
if (isset($fileId)) {
$redraw = Application_Model_StoredFile::setIsScheduled($fileId, $status);
}
}
return $redraw;
}
}