Server list manager
| Methods | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
public
static
|
connect(
int $id,
mixed $cache = false,
string $user = false,
string $pass = false,
bool $save_credentials = false,
): object|false
Connect to a server
Connect to a server Parameters
Returnsconnection object on success, otherwise false |
# | ||||||||||
abstract
public
static
|
service_connect(int $id, string $server, string $user, string $pass, mixed $cache): bool
Server lists must override this method to connect
Server lists must override this method to connect Parameters
Returnstrue on success |
# | ||||||||||
public
static
|
clean_up(int $id = false): void
Try to disconnect cleanly
Try to disconnect cleanly Parameters
|
# | ||||||||||
public
static
|
disconnect(int $id): void
Disconnect from a server
Disconnect from a server Parameters
|
# | ||||||||||
| Properties | |||
|---|---|---|---|
protected
static
|
|
$server_list = []
|
# |