CC-3174 : showbuilder
modifying times to work with scheduling times.
This commit is contained in:
parent
251f3a3e5b
commit
aa7afce245
6 changed files with 161 additions and 56 deletions
|
@ -73,8 +73,6 @@ class Application_Model_ShowBuilder {
|
|||
$showEndDT = new DateTime($p_item["si_ends"], new DateTimeZone("UTC"));
|
||||
$showEndDT->setTimezone(new DateTimeZone($this->timezone));
|
||||
|
||||
//$diff =
|
||||
|
||||
$row["header"] = true;
|
||||
$row["starts"] = $showStartDT->format("Y-m-d H:i");
|
||||
$row["ends"] = $showEndDT->format("Y-m-d H:i");
|
||||
|
@ -88,6 +86,10 @@ class Application_Model_ShowBuilder {
|
|||
private function makeScheduledItemRow($p_item) {
|
||||
$row = $this->defaultRowArray;
|
||||
|
||||
if ($this->user->canSchedule($item["show_id"]) == true) {
|
||||
$row["checkbox"] = true;
|
||||
}
|
||||
|
||||
if (isset($p_item["sched_starts"])) {
|
||||
|
||||
$schedStartDT = new DateTime($p_item["sched_starts"], new DateTimeZone("UTC"));
|
||||
|
@ -105,10 +107,6 @@ class Application_Model_ShowBuilder {
|
|||
$row["title"] = $p_item["file_track_title"];
|
||||
$row["creator"] = $p_item["file_artist_name"];
|
||||
$row["album"] = $p_item["file_album_title"];
|
||||
|
||||
if ($this->user->canSchedule($item["show_id"]) === true) {
|
||||
$row["checkbox"] = true;
|
||||
}
|
||||
}
|
||||
//show is empty
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue