IP.Board  3.3.0
hosting Class Reference

Hosting APIs Handler. More...

Static Public Member Functions

static getClass ($type, $data=array())
static getQueueServer ($id, $exclude=array())
static loadAccount ($id, $server=NULL)
static loadServer ($id)

Detailed Description

Hosting APIs Handler.


Member Function Documentation

static getClass ( type,
data = array() 
) [static]

Get class by type

Parameters:
stringType
arrayTemporary data
Returns:
object Object of server_*
static getQueueServer ( id,
exclude = array() 
) [static]

Load Server by Queue ID

Parameters:
int$idID Number
array$excludeIDs to exclude
Returns:
server_*
Exceptions:
Exception
  • NO_QUEUE (queue doesn't exist)
  • NO_SERVERS_IN_QUEUE (there are no servers in that queue)
static loadAccount ( id,
server = NULL 
) [static]

Load Account

Parameters:
int | array$idID Number
int | null$serverServer ID Override
Returns:
account_*
Exceptions:
Exception
  • NO_ACCOUNT (account doesn't exist)
static loadServer ( id) [static]

Load Server by Server ID

Parameters:
int$idID Number
Returns:
server_*
Exceptions:
Exception
  • NO_SERVER (server doesn't exist)

The documentation for this class was generated from the following file:
 All Data Structures Functions Variables