mirror of
https://github.com/LX3JL/xlxd.git
synced 2026-04-06 15:04:12 +00:00
db 2.1.5
This commit is contained in:
parent
e1cf5f5c92
commit
ce2016c99e
6 changed files with 47 additions and 28 deletions
|
|
@ -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; }
|
||||
}
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue