mirror of
https://github.com/LX3JL/xlxd.git
synced 2026-04-21 06:13:43 +00:00
xlxd 1.2.4 / db 2.1.0
implement XLX interlink feature
This commit is contained in:
parent
4831ba8829
commit
2f9e8a8781
259 changed files with 2603 additions and 647 deletions
|
|
@ -1,39 +1,17 @@
|
|||
<?php
|
||||
/*
|
||||
----------------------------------------------------------------------------
|
||||
xlxd
|
||||
|
||||
Created by Luc Engelmann (LX1IQ) on 31/12/2015
|
||||
Copyright © 2015 Luc Engelmann (LX1IQ). All rights reserved.
|
||||
|
||||
----------------------------------------------------------------------------
|
||||
This file is part of xlxd.
|
||||
|
||||
xlxd is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
xlxd is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Foobar. If not, see <http://www.gnu.org/licenses/>.
|
||||
----------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
class xReflector {
|
||||
|
||||
public $Nodes = null;
|
||||
public $Stations = null;
|
||||
public $Peers = null;
|
||||
private $Flagarray = null;
|
||||
private $Flagfile = null;
|
||||
|
||||
public function __construct() {
|
||||
$this->Nodes = array();
|
||||
$this->Stations = array();
|
||||
$this->Peers = array();
|
||||
}
|
||||
|
||||
public function SetFlagFile($Flagfile) {
|
||||
|
|
@ -89,6 +67,23 @@ class xReflector {
|
|||
return false;
|
||||
}
|
||||
|
||||
public function AddPeer($PeerObject) {
|
||||
if (is_object($PeerObject)) {
|
||||
$this->Peers[] = $PeerObject;
|
||||
}
|
||||
}
|
||||
|
||||
public function PeerCount() {
|
||||
return count($this->Peers);
|
||||
}
|
||||
|
||||
public function GetPeer($ArrayIndex) {
|
||||
if (isset($this->Peer[$ArrayIndex])) {
|
||||
return $this->Peer[$ArrayIndex];
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public function AddStation($StationObject, $AllowDouble = false) {
|
||||
if (is_object($StationObject)) {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue