/** * Returns the output string for the form of creating new address * * @return string */ public static function newAddressFormOutput() { $addressParams = array(ADDRESS_OFFLINE => "address", MEETING_ROOM => "meeting_room", LOCATION => "locationID", INSTRUCTION_LINK => "instructionLink", CONTENT_LINK => "contentLink"); $output = "<table>"; foreach ($addressParams as $title => $param) { $output .= "<tr><td>{$title}</td><td>" . View::addressFormOutput($param) . "</td></tr>"; } return $output . "</table>"; }