public function toTableRow($day) { // sets the character to print out for Open or Closed $open_char = "C"; if ($this->open) { $open_char = 'O'; } // adds the meeting codes to the end of the meeting name $newname = Meeting::addToName($this->name); // combines address pieces together to create a whole address $wholeaddress = $this->address . ", " . $this->city . " WA " . $this->zipcode; // adds the last update date at the end of the meeting notes if ($this->notes == "") { $newnotes = $this->notes . "Info Last Updated: " . $this->lupdate; } else { $newnotes = $this->notes . "; Info Last Updated: " . $this->lupdate; } // creates a String of the meeting info as an HTML table row and returns it $htmlstring = "<tr><td class=\"oc\">{$day}</td>"; // day, input as parameter $htmlstring = $htmlstring . "<td data-value=\"{$this->stime_num}\">{$this->stime}</td>"; // String start time with numeric data-value for sorting $htmlstring = $htmlstring . "<td class=\"oc\">{$open_char}</td><td>{$newname}</td>"; // O or C // street name and number but link to apple maps of whole address // used apple maps, as if it's a non apple device it automatically goes to google maps $htmlstring = $htmlstring . "<td><a target=\"_blank\" href=\"http://maps.apple.com/?q={$wholeaddress}\">{$this->address}</a>"; $htmlstring = $htmlstring . "</td><td>{$this->city}</td>"; // city $htmlstring = $htmlstring . "<td>{$newnotes}</td></tr>"; // notes return $htmlstring; }