mirror of
https://github.com/ShaYmez/xlxd.git
synced 2026-06-05 15:14:37 -04:00
db 2.1.5
This commit is contained in:
@@ -9,6 +9,7 @@ class Node {
|
||||
private $ConnectTime;
|
||||
private $LastHeardTime;
|
||||
private $Suffix;
|
||||
private $Prefix;
|
||||
|
||||
public function __construct($Callsign, $IP, $LinkedModule, $Protocol, $ConnectTime, $LastHeardTime) {
|
||||
|
||||
@@ -21,10 +22,12 @@ class Node {
|
||||
if (strpos($Callsign, " ") !== false) {
|
||||
$this->Callsign = trim(substr($Callsign, 0, strpos($Callsign, " ")));
|
||||
$this->Suffix = trim(substr($Callsign, strpos($Callsign, " "), strlen($Callsign)));
|
||||
$this->Prefix = strtoupper(trim(substr($Callsign, 0, 3)));
|
||||
}
|
||||
else {
|
||||
$this->Callsign = trim($Callsign);
|
||||
$this->Suffix = "";
|
||||
$this->Prefix = "";
|
||||
}
|
||||
|
||||
|
||||
@@ -39,7 +42,7 @@ class Node {
|
||||
public function GetConnectTime() { return $this->ConnectTime; }
|
||||
public function GetLastHeardTime() { return $this->LastHeardTime; }
|
||||
public function GetSuffix() { return $this->Suffix; }
|
||||
|
||||
public function GetPrefix() { return $this->Prefix; }
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user