CC-3174 : Show builder
creating a scheduling system to work with the new timeline in mind using propel.
This commit is contained in:
parent
f5761fd03c
commit
3f3117cf0e
8 changed files with 175 additions and 27 deletions
|
@ -14,7 +14,9 @@ class Application_Model_ShowBuilder {
|
|||
"id" => "",
|
||||
"instance" => "",
|
||||
"starts" => "",
|
||||
"startsUnix" => null,
|
||||
"ends" => "",
|
||||
"endsUnix" => null,
|
||||
"runtime" => "",
|
||||
"title" => "",
|
||||
"creator" => "",
|
||||
|
@ -73,7 +75,10 @@ class Application_Model_ShowBuilder {
|
|||
|
||||
$row["header"] = true;
|
||||
$row["starts"] = $showStartDT->format("Y-m-d H:i");
|
||||
$row["startsUnix"] = $showStartDT->format("U");
|
||||
$row["ends"] = $showEndDT->format("Y-m-d H:i");
|
||||
$row["endsUnix"] = $showEndDT->format("U");
|
||||
$row["duration"] = $showEndDT->format("U") - $showStartDT->format("U");
|
||||
$row["title"] = $p_item["show_name"];
|
||||
|
||||
return $row;
|
||||
|
@ -94,7 +99,10 @@ class Application_Model_ShowBuilder {
|
|||
$row["id"] = $p_item["sched_id"];
|
||||
$row["instance"] = $p_item["si_id"];
|
||||
$row["starts"] = $schedStartDT->format("H:i:s");
|
||||
$row["startsUnix"] = $schedStartDT->format("U");
|
||||
$row["ends"] = $schedEndDT->format("H:i:s");
|
||||
$row["endsUnix"] = $schedEndDT->format("U");
|
||||
$row["duration"] = $schedEndDT->format("U") - $schedStartDT->format("U");
|
||||
$row["runtime"] = $this->formatDuration($runtime);
|
||||
$row["title"] = $p_item["file_track_title"];
|
||||
$row["creator"] = $p_item["file_artist_name"];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue