CC-3451 : Ability to delete the currently playing clip
This commit is contained in:
parent
275faa1881
commit
10e4ae781f
5 changed files with 154 additions and 122 deletions
|
@ -223,5 +223,18 @@ class CcSchedule extends BaseCcSchedule {
|
|||
|
||||
return $this;
|
||||
} // setDbEnds()
|
||||
|
||||
public function isCurrentItem() {
|
||||
|
||||
$epochNow = time();
|
||||
$epochStart = intval($this->getDbStarts('U'));
|
||||
$epochEnd = intval($this->getDbEnds('U'));
|
||||
|
||||
if ($epochStart < $epochNow && $epochEnd > $epochNow) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
} // CcSchedule
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue