public function printable_view() { echo "<h1>" . htmlentities($this->title, ENT_QUOTES) . "</h1>"; echo "<div class=\"printing-sb-header\"><strong>Client:</strong> " . htmlentities($this->client, ENT_QUOTES) . "<br> <strong>Date Begun:</strong> " . htmlentities($this->creationDate, ENT_QUOTES) . " <br> <strong>Date Due:</strong> " . htmlentities($this->dueDate, ENT_QUOTES) . "</div>"; // Scene Printing Loop $counter = 1; if ($this->scenes != '') { $counter = count($this->scenes); } for ($i = 0; $i < $counter; $i++) { $sceneInfo = $this->scenes[$i]; $currScene = new Scene($sceneInfo); $currScene->printable_version($i + 1); } }