. // ---------------------------------------------------------------------------- class Station { private $Callsign; private $Via; private $LastHeardTime; private $Suffix; private $CallsignOnly; public function __construct($Callsign, $Via, $LastHeardTime) { $this->Callsign = trim($Callsign); $this->Via = trim($Via); $this->LastHeardTime = ParseTime($LastHeardTime); if (strpos($Callsign, " / ") !== false) { $this->Suffix = trim(substr($Callsign, strpos($Callsign, " / ")+3, strlen($Callsign))); } else { $this->Suffix = ""; } $tmp = explode(" ", $Callsign); $this->CallsignOnly = $tmp[0]; } public function GetCallsign() { return $this->Callsign; } public function GetVIA() { return $this->Via; } public function GetLastHeardTime() { return $this->LastHeardTime; } public function GetSuffix() { return $this->Suffix; } public function GetCallsignOnly() { return $this->CallsignOnly; } } ?>