1
0
mirror of https://github.com/ShaYmez/xlxd.git synced 2024-11-20 07:01:46 -05:00
xlxd/dashboard2/pgs/class.station.php
Luiz Fernando Ribeiro Amaral a9911d3042 New XLX dashboard layout
- A dashboard with the new layout is contained in the dashboard2 folder.
- Enhanced the styling of the README file.
2016-07-05 11:08:29 -06:00

37 lines
1.2 KiB
PHP

<?php
class Station {
private $Callsign;
private $Via;
private $LastHeardTime;
private $Suffix;
private $CallsignOnly;
private $Peer;
public function __construct($Callsign, $Via, $Peer, $LastHeardTime) {
$this->Callsign = trim($Callsign);
$this->Via = trim($Via);
$this->Peer = trim($Peer);
$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 GetPeer() { return $this->Peer; }
public function GetLastHeardTime() { return $this->LastHeardTime; }
public function GetSuffix() { return $this->Suffix; }
public function GetCallsignOnly() { return $this->CallsignOnly; }
}
?>