ts3phpframework
|
Class describing a TeamSpeak 3 virtual server and all it's parameters. More...
Public Member Functions | |
__construct (Host $host, array $info, string $index="virtualserver_id") | |
request (string $cmd, bool $throw=true) | |
channelList (array $filter=[]) | |
channelListReset () | |
channelGetDefault () | |
channelCreate (array $properties) | |
channelDelete (int|Node $cid, bool $force=false) | |
channelMove (int $cid, int $pid, int $order=null) | |
channelIsSpacer (Channel $channel) | |
channelSpacerCreate (string $ident, int $type=TeamSpeak3::SPACER_SOLIDLINE, int $align=TeamSpeak3::SPACER_ALIGN_REPEAT, int $order=null, int $maxclients=0) | |
channelSpacerGetType (int $cid) | |
channelSpacerGetAlign (int $cid) | |
channelPermList (int $cid, bool $permsid=false) | |
channelPermAssign (int $cid, int|array $permid, int|array $permvalue) | |
channelPermRemove (int $cid, int|array $permid) | |
channelClientPermList (int $cid, int $cldbid, bool $permsid=false) | |
channelClientPermAssign (int $cid, int $cldbid, int|array $permid, int|array $permvalue) | |
channelClientPermRemove (int $cid, int $cldbid, int|array $permid) | |
channelFileList (int $cid, string $cpw="", string $path="/", bool $recursive=false) | |
channelFileInfo (int $cid, string $cpw="", string $name="/") | |
channelFileRename (int $cid, string $cpw="", string $oldname="/", string $newname="/", int $tcid=null, string $tcpw=null) | |
channelFileDelete (int $cid, string $cpw="", string $name="/") | |
channelDirCreate (int $cid, string $cpw="", string $dirname="/") | |
channelGetLevel (int $cid) | |
channelGetPathway (int $cid) | |
channelGetById (int $cid) | |
channelGetByName (string $name) | |
clientList (array $filter=[]) | |
clientListReset () | |
clientFind (string $pattern) | |
clientListDb (int $offset=null, int $limit=null) | |
clientCountDb () | |
clientInfoDb (int $cldbid) | |
clientFindDb (string $pattern, bool $uid=false) | |
clientCount () | |
clientGetById (int $clid) | |
clientGetByName (string $name) | |
clientGetByUid (string $uid) | |
clientGetByDbid (int $dbid) | |
clientGetNameByUid (string $cluid) | |
clientGetIdsByUid (string $cluid) | |
clientGetNameByDbid (string $cldbid) | |
clientGetServerGroupsByDbid (string $cldbid) | |
clientMove (int|Node $clid, int|Node $cid, $cpw=null) | |
clientKick (int $clid, int $reasonid=TeamSpeak3::KICK_CHANNEL, $reasonmsg=null) | |
clientPoke (int $clid, string $msg) | |
clientBan (int $clid, int $timeseconds=null, string $reason=null) | |
clientModifyDb (string $cldbid, array $properties) | |
clientDeleteDb (string $cldbid) | |
clientSetChannelGroup (int $cldbid, int $cid, int $cgid) | |
clientPermList (int $cldbid, bool $permsid=false) | |
clientPermAssign (int $cldbid, int|array $permid, int|array $permvalue, bool|array $permskip=false) | |
clientPermRemove (int $cldbid, int|array $permid) | |
serverGroupList (array $filter=[]) | |
serverGroupListReset () | |
serverGroupCreate (string $name, int $type=TeamSpeak3::GROUP_DBTYPE_REGULAR) | |
serverGroupCopy (int $ssgid, string $name=null, int $tsgid=0, int $type=TeamSpeak3::GROUP_DBTYPE_REGULAR) | |
serverGroupRename (int $sgid, string $name) | |
serverGroupDelete (int $sgid, bool $force=false) | |
serverGroupGetById (int $sgid) | |
serverGroupGetByName (string $name, int $type=TeamSpeak3::GROUP_DBTYPE_REGULAR) | |
serverGroupPermList (int $sgid, bool $permsid=false) | |
serverGroupPermAssign (int $sgid, int|array $permid, int|array $permvalue, int|array $permnegated=0, bool|array $permskip=false) | |
serverGroupPermRemove (int $sgid, int|array $permid) | |
serverGroupClientList (int $sgid) | |
serverGroupClientAdd (int $sgid, int $cldbid) | |
serverGroupClientDel (int $sgid, int $cldbid) | |
serverGroupGetProfiles (int $type=TeamSpeak3::GROUP_DBTYPE_REGULAR) | |
serverGroupIdentify (int $mode=TeamSpeak3::GROUP_IDENTIFIY_STRONGEST, int $type=TeamSpeak3::GROUP_DBTYPE_REGULAR) | |
channelGroupList (array $filter=[]) | |
channelGroupListReset () | |
channelGroupCreate (string $name, int $type=TeamSpeak3::GROUP_DBTYPE_REGULAR) | |
channelGroupCopy (int $scgid, string $name=null, int $tcgid=0, int $type=TeamSpeak3::GROUP_DBTYPE_REGULAR) | |
channelGroupRename (int $cgid, string $name) | |
channelGroupDelete (int $cgid, bool $force=false) | |
channelGroupGetById (int $cgid) | |
channelGroupGetByName (string $name, int $type=TeamSpeak3::GROUP_DBTYPE_REGULAR) | |
channelGroupPermList (int $cgid, bool $permsid=false) | |
channelGroupPermAssign (int $cgid, int|array $permid, int|array $permvalue) | |
channelGroupPermRemove (int $cgid, int|array $permid) | |
channelGroupClientList (int $cgid=null, int $cid=null, int $cldbid=null, bool $resolve=false) | |
permReset () | |
permRemoveAny (int $permid) | |
transferInitUpload (int $clientftfid, int $cid, string $name, int $size, string $cpw="", bool $overwrite=false, bool $resume=false) | |
transferInitDownload (int $clientftfid, int $cid, string $name, string $cpw="", int $seekpos=0) | |
transferList () | |
transferStop (int $serverftfid, bool $delete=false) | |
iconDownload (string $iconname=null) | |
iconUpload (string $data) | |
modify (array $properties) | |
message (string $msg) | |
messageList () | |
messageCreate (string $cluid, string $subject, string $message) | |
messageDelete (int $msgid) | |
messageRead (int $msgid, bool $flag_read=true) | |
snapshotCreate (int $mode=TeamSpeak3::SNAPSHOT_STRING) | |
snapshotDeploy (string $data, int $mode=TeamSpeak3::SNAPSHOT_STRING) | |
notifyRegister (string $event, int $id=0) | |
notifyUnregister () | |
tokenList (bool $translate=false) | |
privilegeKeyList (bool $resolve=false) | |
tokenCreate (int $id1, int $id2=0, int $type=TeamSpeak3::TOKEN_SERVERGROUP, string $description=null, array $customset=null) | |
privilegeKeyCreate (int $id1, int $id2=0, int $type=TeamSpeak3::TOKEN_SERVERGROUP, string $description=null, string $customset=null) | |
tokenDelete ($token) | |
privilegeKeyDelete (string $token) | |
tokenUse ($token) | |
privilegeKeyUse (string $token) | |
customSearch (string $ident, string $pattern="%") | |
customInfo (int $cldbid) | |
customSet (int $cldbid, string $ident, string $value) | |
customDelete (int $cldbid, string $ident) | |
banList ($offset=null, $limit=null) | |
banCount () | |
banListClear () | |
banCreate (array $rules, int $timeseconds=null, string $reason=null) | |
banDelete (int $banid) | |
complaintList (int $tcldbid=null) | |
complaintListClear (int $tcldbid) | |
complaintCreate (int $tcldbid, string $message) | |
complaintDelete (int $tcldbid, int $fcldbid) | |
tempPasswordList (bool $resolve=false) | |
tempPasswordCreate (string $pw, int $duration, int $tcid=0, string $tcpw="", string $desc="") | |
tempPasswordDelete (string $pw) | |
logView (int $lines=30, int $begin_pos=null, bool $reverse=null, bool $instance=null) | |
logAdd (string $logmsg, int $loglevel=TeamSpeak3::LOGLEVEL_INFO) | |
connectionInfo () | |
delete () | |
start () | |
stop (string $msg=null) | |
sendPluginCmd (string $plugin, string $data) | |
selfUpdate (array $properties) | |
selfUpdateLogin (string $username) | |
selfPermOverview () | |
isOnline () | |
isOffline () | |
getUniqueId () | |
getIcon () | |
getSymbol () | |
__toString () | |
Public Member Functions inherited from PlanetTeamSpeak\TeamSpeak3Framework\Node\Node | |
prepare (string $cmd, array $params=[]) | |
execute ($cmd, array $params=[]) | |
getParent () | |
getId () | |
iconIsLocal (string $key) | |
iconGetName (string $key) | |
getClass (string $prefix="ts3_") | |
getViewer (ViewerInterface $viewer) | |
getInfo (bool $extend=true, bool $convert=false) | |
getProperty (string $property, mixed $default=null) | |
toString () | |
toArray () | |
__call (string $name, array $args) | |
__sleep () | |
count () | |
current () | |
getChildren () | |
hasChildren () | |
hasNext () | |
key () | |
valid () | |
next () | |
rewind () | |
offsetExists ($offset) | |
offsetGet ($offset) | |
offsetSet ($offset, $value) | |
offsetUnset ($offset) | |
__get ($offset) | |
__set ($offset, $value) |
Protected Member Functions | |
fetchNodeList () | |
fetchNodeInfo () | |
Protected Member Functions inherited from PlanetTeamSpeak\TeamSpeak3Framework\Node\Node | |
filterList (array $nodes=[], array $rules=[]) | |
setStorage (string $key, mixed $val) | |
getStorage (string $key, mixed $default=null) | |
delStorage (string $key) | |
resetNodeInfo () | |
verifyNodeList () | |
resetNodeList () |
Static Protected Member Functions | |
static | sortClientList (Client $a, Client $b) |
static | sortGroupList (Node $a, Node $b) |
static | sortFileList (array $a, array $b) |
Protected Attributes | |
array null | $channelList = null |
array null | $clientList = null |
array null | $sgroupList = null |
array null | $cgroupList = null |
Protected Attributes inherited from PlanetTeamSpeak\TeamSpeak3Framework\Node\Node | |
Node null ServerQuery | $parent = null |
array null | $server = null |
int | $nodeId = 0x00 |
array null | $nodeList = null |
array | $nodeInfo = [] |
array | $storage = [] |
Class describing a TeamSpeak 3 virtual server and all it's parameters.
Definition at line 20 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::__construct | ( | Host | $host, |
array | $info, | ||
string | $index = "virtualserver_id" ) |
Server constructor.
Host | $host | |
array | $info | |
string | $index |
ServerQueryException |
Definition at line 50 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::__toString | ( | ) |
Returns a string representation of this node.
Reimplemented from PlanetTeamSpeak\TeamSpeak3Framework\Node\Node.
Definition at line 2712 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::banCount | ( | ) |
Returns the number of bans on the selected virtual server.
AdapterException | |
ServerQueryException |
Definition at line 2260 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::banCreate | ( | array | $rules, |
int | $timeseconds = null, | ||
string | $reason = null ) |
Adds a new ban rule on the selected virtual server. All parameters are optional but at least one of the following rules must be set: ip, name, or uid.
array | $rules | |
integer | null | $timeseconds | |
string | null | $reason |
AdapterException | |
ServerQueryException |
Definition at line 2288 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::banDelete | ( | int | $banid | ) |
Deletes the specified ban rule from the server.
integer | $banid |
AdapterException | |
ServerQueryException |
Definition at line 2306 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::banList | ( | $offset = null, | |
$limit = null ) |
Returns a list of active bans on the selected virtual server.
null | $offset | |
null | $limit |
AdapterException | |
ServerQueryException |
Definition at line 2248 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::banListClear | ( | ) |
Deletes all active ban rules from the server.
AdapterException | |
ServerQueryException |
Definition at line 2272 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::channelClientPermAssign | ( | int | $cid, |
int | $cldbid, | ||
int|array | $permid, | ||
int|array | $permvalue ) |
Adds a set of specified permissions to a client in a specific channel. Multiple permissions can be added by providing the two parameters of each permission.
integer | $cid | |
integer | $cldbid | |
integer | integer[] | $permid | |
integer | integer[] | $permvalue |
AdapterException | |
ServerQueryException |
Definition at line 387 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::channelClientPermList | ( | int | $cid, |
int | $cldbid, | ||
bool | $permsid = false ) |
Returns a list of permissions defined for a client in a specific channel.
integer | $cid | |
integer | $cldbid | |
boolean | $permsid |
AdapterException | |
ServerQueryException |
Definition at line 369 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::channelClientPermRemove | ( | int | $cid, |
int | $cldbid, | ||
int|array | $permid ) |
Removes a set of specified permissions from a client in a specific channel. Multiple permissions can be removed at once.
integer | $cid | |
integer | $cldbid | |
integer | integer[] | $permid |
AdapterException | |
ServerQueryException |
Definition at line 408 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::channelCreate | ( | array | $properties | ) |
Creates a new channel using given properties and returns the new ID.
array | $properties |
AdapterException | |
ServerQueryException |
Definition at line 142 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::channelDelete | ( | int|Node | $cid, |
bool | $force = false ) |
Deletes the channel specified by $cid.
integer | Node | $cid | |
boolean | $force |
AdapterException | |
ServerQueryException |
Definition at line 163 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::channelDirCreate | ( | int | $cid, |
string | $cpw = "", | ||
string | $dirname = "/" ) |
Creates new directory in a channels file repository.
integer | $cid | |
string | $cpw | |
string | $dirname |
AdapterException | |
ServerQueryException |
Definition at line 518 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::channelFileDelete | ( | int | $cid, |
string | $cpw = "", | ||
string | $name = "/" ) |
Deletes one or more files stored in a channels file repository.
integer | $cid | |
string | $cpw | |
string | $name |
AdapterException | |
ServerQueryException |
Definition at line 503 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::channelFileInfo | ( | int | $cid, |
string | $cpw = "", | ||
string | $name = "/" ) |
Returns detailed information about the specified file stored in a channels file repository.
integer | $cid | |
string | $cpw | |
string | $name |
AdapterException | |
ServerQueryException |
Definition at line 467 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::channelFileList | ( | int | $cid, |
string | $cpw = "", | ||
string | $path = "/", | ||
bool | $recursive = false ) |
Returns a list of files and directories stored in the specified channels file repository.
integer | $cid | |
string | $cpw | |
string | $path | |
boolean | $recursive |
AdapterException | |
ServerQueryException |
Definition at line 430 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::channelFileRename | ( | int | $cid, |
string | $cpw = "", | ||
string | $oldname = "/", | ||
string | $newname = "/", | ||
int | $tcid = null, | ||
string | $tcpw = null ) |
Renames a file in a channels file repository. If the two parameters $tcid and $tcpw are specified, the file will be moved into another channels file repository.
integer | $cid | |
string | $cpw | |
string | $oldname | |
string | $newname | |
integer | null | $tcid | |
string | null | $tcpw |
AdapterException | |
ServerQueryException |
Definition at line 488 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::channelGetById | ( | int | $cid | ) |
Returns the PlanetTeamSpeak\TeamSpeak3Framework\Node\Channel object matching the given ID.
integer | $cid |
AdapterException | |
ServerQueryException |
Definition at line 571 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::channelGetByName | ( | string | $name | ) |
Returns the PlanetTeamSpeak\TeamSpeak3Framework\Node\Channel object matching the given name.
string | $name |
AdapterException | |
ServerQueryException |
Definition at line 588 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::channelGetDefault | ( | ) |
Returns the PlanetTeamSpeak\TeamSpeak3Framework\Node\Channel object representing the default channel.
AdapterException | |
ServerQueryException |
Definition at line 123 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::channelGetLevel | ( | int | $cid | ) |
Returns the level of a channel.
integer | $cid |
AdapterException | |
ServerQueryException |
Definition at line 531 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::channelGetPathway | ( | int | $cid | ) |
Returns the pathway of a channel which can be used as a clients default channel.
integer | $cid |
AdapterException | |
ServerQueryException |
Definition at line 551 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::channelGroupClientList | ( | int | $cgid = null, |
int | $cid = null, | ||
int | $cldbid = null, | ||
bool | $resolve = false ) |
Returns all the client and/or channel IDs currently assigned to channel groups. All three parameters are optional so you're free to choose the most suitable combination for your requirements.
integer | null | $cgid | |
integer | null | $cid | |
integer | null | $cldbid | |
boolean | $resolve |
AdapterException | |
ServerQueryException |
Definition at line 1611 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::channelGroupCopy | ( | int | $scgid, |
string | $name = null, | ||
int | $tcgid = 0, | ||
int | $type = TeamSpeak3::GROUP_DBTYPE_REGULAR ) |
Creates a copy of an existing channel group specified by $scgid and returns the new groups ID.
integer | $scgid | |
string | null | $name | |
integer | $tcgid | |
integer | $type |
AdapterException | |
ServerQueryException |
Definition at line 1456 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::channelGroupCreate | ( | string | $name, |
int | $type = TeamSpeak3::GROUP_DBTYPE_REGULAR ) |
Creates a new channel group using the name specified with $name and returns its ID.
string | $name | |
integer | $type |
AdapterException | |
ServerQueryException |
Definition at line 1436 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::channelGroupDelete | ( | int | $cgid, |
bool | $force = false ) |
Deletes the channel group specified with $cgid. If $force is set to 1, the channel group will be deleted even if there are clients within.
integer | $cgid | |
boolean | $force |
AdapterException | |
ServerQueryException |
Definition at line 1496 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::channelGroupGetById | ( | int | $cgid | ) |
Returns the PlanetTeamSpeak\TeamSpeak3Framework\Node\Channelgroup object matching the given ID.
integer | $cgid |
AdapterException | |
ServerQueryException |
Definition at line 1511 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::channelGroupGetByName | ( | string | $name, |
int | $type = TeamSpeak3::GROUP_DBTYPE_REGULAR ) |
Returns the PlanetTeamSpeak\TeamSpeak3Framework\Node\Channelgroup object matching the given name.
string | $name | |
integer | $type |
AdapterException | |
ServerQueryException |
Definition at line 1529 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::channelGroupList | ( | array | $filter = [] | ) |
Returns a list of channel groups available.
array | $filter |
AdapterException | |
ServerQueryException |
Definition at line 1402 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::channelGroupListReset | ( | ) |
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::channelGroupPermAssign | ( | int | $cgid, |
int|array | $permid, | ||
int|array | $permvalue ) |
Adds a set of specified permissions to the channel group specified. Multiple permissions can be added by providing the two parameters of each permission in separate arrays.
integer | $cgid | |
integer | integer[] | $permid | |
integer | integer[] | $permvalue |
ServerQueryException | |
AdapterException |
Definition at line 1566 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::channelGroupPermList | ( | int | $cgid, |
bool | $permsid = false ) |
Returns a list of permissions assigned to the channel group specified.
integer | $cgid | |
boolean | $permsid |
AdapterException | |
ServerQueryException |
Definition at line 1549 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::channelGroupPermRemove | ( | int | $cgid, |
int|array | $permid ) |
Removes a set of specified permissions from the channel group specified with $cgid. Multiple permissions can be removed at once.
integer | $cgid | |
integer | integer[] | $permid |
AdapterException | |
ServerQueryException |
Definition at line 1587 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::channelGroupRename | ( | int | $cgid, |
string | $name ) |
Renames the channel group specified with $cgid.
integer | $cgid | |
string | $name |
AdapterException | |
ServerQueryException |
Definition at line 1479 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::channelIsSpacer | ( | Channel | $channel | ) |
Returns TRUE if the given PlanetTeamSpeak\TeamSpeak3Framework\Node\Channel object is a spacer.
Channel | $channel |
Definition at line 195 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::channelList | ( | array | $filter = [] | ) |
Returns an array filled with PlanetTeamSpeak\TeamSpeak3Framework\Node\Channel objects.
array | $filter |
AdapterException | |
ServerQueryException |
Definition at line 88 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::channelListReset | ( | ) |
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::channelMove | ( | int | $cid, |
int | $pid, | ||
int | $order = null ) |
Moves the channel specified by $cid to the parent channel specified with $pid.
integer | $cid | |
integer | $pid | |
integer | null | $order |
AdapterException | |
ServerQueryException |
Definition at line 183 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::channelPermAssign | ( | int | $cid, |
int|array | $permid, | ||
int|array | $permvalue ) |
Adds a set of specified permissions to a channel. Multiple permissions can be added by providing the two parameters of each permission.
integer | $cid | |
integer | integer[] | $permid | |
integer | integer[] | $permvalue |
AdapterException | |
ServerQueryException |
Definition at line 328 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::channelPermList | ( | int | $cid, |
bool | $permsid = false ) |
Returns a list of permissions defined for a specific channel.
integer | $cid | |
boolean | $permsid |
AdapterException | |
ServerQueryException |
Definition at line 311 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::channelPermRemove | ( | int | $cid, |
int|array | $permid ) |
Removes a set of specified permissions from a channel. Multiple permissions can be removed at once.
integer | $cid | |
integer | integer[] | $permid |
AdapterException | |
ServerQueryException |
Definition at line 348 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::channelSpacerCreate | ( | string | $ident, |
int | $type = TeamSpeak3::SPACER_SOLIDLINE, | ||
int | $align = TeamSpeak3::SPACER_ALIGN_REPEAT, | ||
int | $order = null, | ||
int | $maxclients = 0 ) |
Creates a new channel spacer and returns the new ID. The first parameter $ident is used to create a unique spacer name on the virtual server.
string | $ident | |
mixed | int | $type | |
integer | $align | |
integer | null | $order | |
integer | $maxclients |
AdapterException | |
ServerQueryException |
Definition at line 213 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::channelSpacerGetAlign | ( | int | $cid | ) |
Returns the possible alignment of a channel spacer.
integer | $cid |
AdapterException | |
ServerQueryException |
Definition at line 286 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::channelSpacerGetType | ( | int | $cid | ) |
Returns the possible type of a channel spacer.
integer | $cid |
AdapterException | |
ServerQueryException |
Definition at line 260 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::clientBan | ( | int | $clid, |
int | $timeseconds = null, | ||
string | $reason = null ) |
Bans the client specified with ID $clid from the server. Please note that this will create three separate ban rules for the targeted clients IP address, the unique identifier and the myTeamSpeak ID (if available).
integer | $clid | |
integer | null | $timeseconds | |
string | null | $reason |
AdapterException | |
ServerQueryException |
Definition at line 927 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::clientCount | ( | ) |
Returns the number of regular clients online.
Definition at line 717 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::clientCountDb | ( | ) |
Returns the number of client identities known by the virtual server.
AdapterException | |
ServerQueryException |
Definition at line 678 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::clientDeleteDb | ( | string | $cldbid | ) |
Deletes a clients properties from the database.
string | $cldbid |
AdapterException | |
ServerQueryException |
Definition at line 961 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::clientFind | ( | string | $pattern | ) |
Returns a list of clients matching a given name pattern.
string | $pattern |
AdapterException | |
ServerQueryException |
Definition at line 650 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::clientFindDb | ( | string | $pattern, |
bool | $uid = false ) |
Returns a list of client database information matching a given pattern. You can either search for a clients last known nickname or his unique identity by using the $uid option.
string | $pattern | |
boolean | $uid |
AdapterException | |
ServerQueryException |
Definition at line 706 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::clientGetByDbid | ( | int | $dbid | ) |
Returns the PlanetTeamSpeak\TeamSpeak3Framework\Node\Client object matching the given database ID.
integer | $dbid |
AdapterException | |
ServerQueryException |
Definition at line 789 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::clientGetById | ( | int | $clid | ) |
Returns the PlanetTeamSpeak\TeamSpeak3Framework\Node\Client object matching the given ID.
integer | $clid |
AdapterException | |
ServerQueryException |
Definition at line 734 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::clientGetByName | ( | string | $name | ) |
Returns the PlanetTeamSpeak\TeamSpeak3Framework\Node\Client object matching the given name.
string | $name |
AdapterException | |
ServerQueryException |
Definition at line 751 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::clientGetByUid | ( | string | $uid | ) |
Returns the PlanetTeamSpeak\TeamSpeak3Framework\Node\Client object matching the given unique identifier.
string | $uid |
AdapterException | |
ServerQueryException |
Definition at line 770 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::clientGetIdsByUid | ( | string | $cluid | ) |
Returns an array containing a list of active client connections using the unique identifier specified with $cluid.
string | $cluid |
AdapterException | |
ServerQueryException |
Definition at line 823 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::clientGetNameByDbid | ( | string | $cldbid | ) |
Returns an array containing the last known nickname and the unique identifier of the client matching the database ID specified with $cldbid.
string | $cldbid |
AdapterException | |
ServerQueryException |
Definition at line 837 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::clientGetNameByUid | ( | string | $cluid | ) |
Returns an array containing the last known nickname and the database ID of the client matching the unique identifier specified with $cluid.
string | $cluid |
AdapterException | |
ServerQueryException |
Definition at line 809 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::clientGetServerGroupsByDbid | ( | string | $cldbid | ) |
Returns an array containing the names and IDs of all server groups the client specified with $cldbid is is currently residing in.
string | $cldbid |
AdapterException | |
ServerQueryException |
Definition at line 851 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::clientInfoDb | ( | int | $cldbid | ) |
Returns a list of properties from the database for the client specified by $cldbid.
integer | $cldbid |
AdapterException | |
ServerQueryException |
Definition at line 691 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::clientKick | ( | int | $clid, |
int | $reasonid = TeamSpeak3::KICK_CHANNEL, | ||
$reasonmsg = null ) |
Kicks one or more clients from their currently joined channel or from the server.
integer | $clid | |
integer | $reasonid | |
null | $reasonmsg |
AdapterException | |
ServerQueryException |
Definition at line 895 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::clientList | ( | array | $filter = [] | ) |
Returns an array filled with PlanetTeamSpeak\TeamSpeak3Framework\Node\Client objects.
array | $filter |
AdapterException | |
ServerQueryException |
Definition at line 607 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::clientListDb | ( | int | $offset = null, |
int | $limit = null ) |
Returns a list of client identities known by the virtual server. By default, the server spits out 25 entries at once.
integer | null | $offset | |
integer | null | $limit |
AdapterException | |
ServerQueryException |
Definition at line 665 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::clientListReset | ( | ) |
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::clientModifyDb | ( | string | $cldbid, |
array | $properties ) |
Changes the clients properties using given properties.
string | $cldbid | |
array | $properties |
AdapterException | |
ServerQueryException |
Definition at line 946 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::clientMove | ( | int|Node | $clid, |
int|Node | $cid, | ||
$cpw = null ) |
Moves a client to another channel.
int | Node | $clid | |
int | Node | $cid | |
null | $cpw |
AdapterException | |
ServerQueryException |
Definition at line 866 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::clientPermAssign | ( | int | $cldbid, |
int|array | $permid, | ||
int|array | $permvalue, | ||
bool|array | $permskip = false ) |
Adds a set of specified permissions to a client. Multiple permissions can be added by providing the three parameters of each permission.
integer | $cldbid | |
integer | integer[] | $permid | |
integer | integer[] | $permvalue | |
bool | bool[] | $permskip |
AdapterException | |
ServerQueryException |
Definition at line 1010 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::clientPermList | ( | int | $cldbid, |
bool | $permsid = false ) |
Returns a list of permissions defined for a client.
integer | $cldbid | |
boolean | $permsid |
AdapterException | |
ServerQueryException |
Definition at line 990 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::clientPermRemove | ( | int | $cldbid, |
int|array | $permid ) |
Removes a set of specified permissions from a client. Multiple permissions can be removed at once.
integer | $cldbid | |
integer | integer[] | $permid |
AdapterException | |
ServerQueryException |
Definition at line 1030 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::clientPoke | ( | int | $clid, |
string | $msg ) |
Sends a poke message to a client.
integer | $clid | |
string | $msg |
AdapterException | |
ServerQueryException |
Definition at line 911 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::clientSetChannelGroup | ( | int | $cldbid, |
int | $cid, | ||
int | $cgid ) |
Sets the channel group of a client to the ID specified.
integer | $cldbid | |
integer | $cid | |
integer | $cgid |
AdapterException | |
ServerQueryException |
Definition at line 976 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::complaintCreate | ( | int | $tcldbid, |
string | $message ) |
Submits a complaint about the client with database ID $tcldbid to the server.
integer | $tcldbid | |
string | $message |
AdapterException | |
ServerQueryException |
Definition at line 2347 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::complaintDelete | ( | int | $tcldbid, |
int | $fcldbid ) |
Deletes the complaint about the client with ID $tcldbid submitted by the client with ID $fcldbid from the server.
integer | $tcldbid | |
integer | $fcldbid |
AdapterException | |
ServerQueryException |
Definition at line 2361 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::complaintList | ( | int | $tcldbid = null | ) |
Returns a list of complaints on the selected virtual server. If $tcldbid is specified, only complaints about the targeted client will be shown.
integer | null | $tcldbid |
AdapterException | |
ServerQueryException |
Definition at line 2320 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::complaintListClear | ( | int | $tcldbid | ) |
Deletes all active complaints about the client with database ID $tcldbid from the server.
integer | $tcldbid |
AdapterException | |
ServerQueryException |
Definition at line 2333 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::connectionInfo | ( | ) |
Returns detailed connection information of the virtual server.
AdapterException | |
ServerQueryException |
Definition at line 2461 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::customDelete | ( | int | $cldbid, |
string | $ident ) |
Removes a custom property from the client specified by $cldbid.
integer | $cldbid | |
string | $ident |
AdapterException | |
ServerQueryException |
Definition at line 2234 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::customInfo | ( | int | $cldbid | ) |
Returns a list of custom properties for the client specified by $cldbid.
integer | $cldbid |
AdapterException | |
ServerQueryException |
Definition at line 2205 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::customSearch | ( | string | $ident, |
string | $pattern = "%" ) |
Returns a list of custom client properties specified by $ident.
string | $ident | |
string | $pattern |
AdapterException | |
ServerQueryException |
Definition at line 2192 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::customSet | ( | int | $cldbid, |
string | $ident, | ||
string | $value ) |
Creates or updates a custom property for the client specified by $cldbid.
integer | $cldbid | |
string | $ident | |
string | $value |
AdapterException | |
ServerQueryException |
Definition at line 2220 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::delete | ( | ) |
|
protected |
AdapterException | |
ServerQueryException | @ignore |
Reimplemented from PlanetTeamSpeak\TeamSpeak3Framework\Node\Node.
Definition at line 2578 of file Server.php.
|
protected |
AdapterException | |
ServerQueryException | @ignore |
Reimplemented from PlanetTeamSpeak\TeamSpeak3Framework\Node\Node.
Definition at line 2562 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::getIcon | ( | ) |
Returns the name of a possible icon to display the node object.
Reimplemented from PlanetTeamSpeak\TeamSpeak3Framework\Node\Node.
Definition at line 2686 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::getSymbol | ( | ) |
Returns a symbol representing the node.
Reimplemented from PlanetTeamSpeak\TeamSpeak3Framework\Node\Node.
Definition at line 2702 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::getUniqueId | ( | ) |
Returns a unique identifier for the node which can be used as a HTML property.
Reimplemented from PlanetTeamSpeak\TeamSpeak3Framework\Node\Node.
Definition at line 2676 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::iconDownload | ( | string | $iconname = null | ) |
Downloads and returns the servers icon file content.
string | null | $iconname |
AdapterException | |
HelperException | |
ServerQueryException |
Definition at line 1815 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::iconUpload | ( | string | $data | ) |
Uploads a given icon file content to the server and returns the ID of the icon.
string | $data |
AdapterException | |
HelperException | |
ServerQueryException |
Definition at line 1846 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::isOffline | ( | ) |
Returns TRUE if the virtual server is offline.
Definition at line 2666 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::isOnline | ( | ) |
Returns TRUE if the virtual server is online.
Definition at line 2656 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::logAdd | ( | string | $logmsg, |
int | $loglevel = TeamSpeak3::LOGLEVEL_INFO ) |
Writes a custom entry into the virtual server log.
string | $logmsg | |
integer | $loglevel |
AdapterException | |
ServerQueryException |
Definition at line 2449 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::logView | ( | int | $lines = 30, |
int | $begin_pos = null, | ||
bool | $reverse = null, | ||
bool | $instance = null ) |
Displays a specified number of entries (1-100) from the servers log.
integer | $lines | |
integer | null | $begin_pos | |
boolean | null | $reverse | |
boolean | null | $instance |
AdapterException | |
ServerQueryException |
Definition at line 2434 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::message | ( | string | $msg | ) |
Sends a text message to all clients on the virtual server.
string | $msg |
AdapterException | |
ServerQueryException |
Definition at line 1881 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::messageCreate | ( | string | $cluid, |
string | $subject, | ||
string | $message ) |
Sends an offline message to the client specified by $cluid.
string | $cluid | |
string | $subject | |
string | $message |
AdapterException | |
ServerQueryException |
Definition at line 1909 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::messageDelete | ( | int | $msgid | ) |
Deletes an existing offline message with ID $msgid from your inbox.
integer | $msgid |
AdapterException | |
ServerQueryException |
Definition at line 1922 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::messageList | ( | ) |
Returns a list of offline messages you've received. The output contains the senders unique identifier, the messages subject, etc.
AdapterException | |
ServerQueryException |
Definition at line 1894 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::messageRead | ( | int | $msgid, |
bool | $flag_read = true ) |
Returns an existing offline message with ID $msgid from your inbox.
integer | $msgid | |
boolean | $flag_read |
AdapterException | |
ServerQueryException |
Definition at line 1936 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::modify | ( | array | $properties | ) |
Changes the virtual server configuration using given properties.
array | $properties |
AdapterException | |
ServerQueryException |
Definition at line 1867 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::notifyRegister | ( | string | $event, |
int | $id = 0 ) |
Registers for a specified category of events on a virtual server to receive notification messages. Depending on the notifications you've registered for, the server will send you a message on every event.
string | $event | |
integer | $id |
AdapterException | |
ServerQueryException |
Definition at line 2011 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::notifyUnregister | ( | ) |
Unregisters all events previously registered with servernotifyregister so you will no longer receive notification messages.
AdapterException | |
ServerQueryException |
Definition at line 2024 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::permRemoveAny | ( | int | $permid | ) |
Removes any assignment of the permission specified with $permid on the selected virtual server and returns the number of removed assignments on success.
integer | $permid |
AdapterException | |
ServerQueryException |
Definition at line 1664 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::permReset | ( | ) |
Restores the default permission settings on the virtual server and returns a new initial administrator privilege key.
AdapterException | |
ServerQueryException |
Definition at line 1646 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::privilegeKeyCreate | ( | int | $id1, |
int | $id2 = 0, | ||
int | $type = TeamSpeak3::TOKEN_SERVERGROUP, | ||
string | $description = null, | ||
string | $customset = null ) |
Creates a new privilege key (token) and returns the key.
integer | $id1 | |
integer | $id2 | |
integer | $type | |
string | null | $description | |
string | null | $customset |
AdapterException | |
ServerQueryException |
Definition at line 2115 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::privilegeKeyDelete | ( | string | $token | ) |
Deletes a token specified by key $token.
string | $token |
AdapterException | |
ServerQueryException |
Definition at line 2151 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::privilegeKeyList | ( | bool | $resolve = false | ) |
Returns a list of privilege keys (tokens) available. If $resolve is set to TRUE the values of token_id1 and token_id2 will be translated into the appropriate group and/or channel names.
boolean | $resolve |
AdapterException | |
NodeException | |
ServerQueryException |
Definition at line 2055 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::privilegeKeyUse | ( | string | $token | ) |
Use a token key gain access to a server or channel group. Please note that the server will automatically delete the token after it has been used.
string | $token |
AdapterException | |
ServerQueryException |
Definition at line 2178 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::request | ( | string | $cmd, |
bool | $throw = true ) |
Sends a prepared command to the server and returns the result.
string | $cmd | |
boolean | $throw |
AdapterException | |
ServerQueryException |
Reimplemented from PlanetTeamSpeak\TeamSpeak3Framework\Node\Node.
Definition at line 71 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::selfPermOverview | ( | ) |
Returns an array containing the permission overview of your own client.
AdapterException | |
ServerQueryException |
Definition at line 2551 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::selfUpdate | ( | array | $properties | ) |
Changes the properties of your own client connection.
array | $properties |
AdapterException | |
ServerQueryException |
Definition at line 2519 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::selfUpdateLogin | ( | string | $username | ) |
Updates your own ServerQuery login credentials using a specified username. The password will be auto-generated.
string | $username |
AdapterException | |
ServerQueryException |
Definition at line 2537 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::sendPluginCmd | ( | string | $plugin, |
string | $data ) |
Sends a plugin command to all clients connected to the server.
string | $plugin | |
string | $data |
AdapterException | |
ServerQueryException |
Definition at line 2506 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::serverGroupClientAdd | ( | int | $sgid, |
int | $cldbid ) |
Adds a client to the server group specified. Please note that a client cannot be added to default groups or template groups.
integer | $sgid | |
integer | $cldbid |
AdapterException | |
ServerQueryException |
Definition at line 1277 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::serverGroupClientDel | ( | int | $sgid, |
int | $cldbid ) |
Removes a client from the server group specified.
integer | $sgid | |
integer | $cldbid |
AdapterException | |
ServerQueryException |
Definition at line 1293 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::serverGroupClientList | ( | int | $sgid | ) |
Returns a list of clients assigned to the server group specified.
integer | $sgid |
AdapterException | |
ServerQueryException |
Definition at line 1258 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::serverGroupCopy | ( | int | $ssgid, |
string | $name = null, | ||
int | $tsgid = 0, | ||
int | $type = TeamSpeak3::GROUP_DBTYPE_REGULAR ) |
Creates a copy of an existing server group specified by $ssgid and returns the new groups ID.
integer | $ssgid | |
string | null | $name | |
integer | $tsgid | |
integer | $type |
AdapterException | |
ServerQueryException |
Definition at line 1104 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::serverGroupCreate | ( | string | $name, |
int | $type = TeamSpeak3::GROUP_DBTYPE_REGULAR ) |
Creates a new server group using the name specified with $name and returns its ID.
string | $name | |
integer | $type |
AdapterException | |
ServerQueryException |
Definition at line 1084 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::serverGroupDelete | ( | int | $sgid, |
bool | $force = false ) |
Deletes the server group specified with $sgid. If $force is set to 1, the server group will be deleted even if there are clients within.
integer | $sgid | |
boolean | $force |
AdapterException | |
ServerQueryException |
Definition at line 1144 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::serverGroupGetById | ( | int | $sgid | ) |
Returns the PlanetTeamSpeak\TeamSpeak3Framework\Node\Servergroup object matching the given ID.
integer | $sgid |
AdapterException | |
NodeException | |
ServerQueryException |
Definition at line 1160 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::serverGroupGetByName | ( | string | $name, |
int | $type = TeamSpeak3::GROUP_DBTYPE_REGULAR ) |
Returns the PlanetTeamSpeak\TeamSpeak3Framework\Node\Servergroup object matching the given name.
string | $name | |
integer | $type |
AdapterException | |
NodeException | |
ServerQueryException |
Definition at line 1179 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::serverGroupGetProfiles | ( | int | $type = TeamSpeak3::GROUP_DBTYPE_REGULAR | ) |
Returns an ordered array of regular server groups available based on a pre-defined set of rules.
integer | $type |
AdapterException | |
NodeException | |
ServerQueryException |
Definition at line 1308 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::serverGroupIdentify | ( | int | $mode = TeamSpeak3::GROUP_IDENTIFIY_STRONGEST, |
int | $type = TeamSpeak3::GROUP_DBTYPE_REGULAR ) |
Tries to identify the post powerful/weakest server group on the virtual server and returns the ID.
integer | $mode | |
integer | $type |
AdapterException | |
NodeException | |
ServerQueryException |
Definition at line 1383 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::serverGroupList | ( | array | $filter = [] | ) |
Returns a list of server groups available.
array | $filter |
AdapterException | |
NodeException | |
ServerQueryException |
Definition at line 1050 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::serverGroupListReset | ( | ) |
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::serverGroupPermAssign | ( | int | $sgid, |
int|array | $permid, | ||
int|array | $permvalue, | ||
int|array | $permnegated = 0, | ||
bool|array | $permskip = false ) |
Adds a set of specified permissions to the server group specified. Multiple permissions can be added by providing the four parameters of each permission in separate arrays.
integer | $sgid | |
integer | integer[] | $permid | |
integer | integer[] | $permvalue | |
integer | integer[] | $permnegated | |
bool | bool[] | $permskip |
AdapterException | |
ServerQueryException |
Definition at line 1218 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::serverGroupPermList | ( | int | $sgid, |
bool | $permsid = false ) |
Returns a list of permissions assigned to the server group specified.
integer | $sgid | |
boolean | $permsid |
AdapterException | |
ServerQueryException |
Definition at line 1199 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::serverGroupPermRemove | ( | int | $sgid, |
int|array | $permid ) |
Removes a set of specified permissions from the server group specified with $sgid. Multiple permissions can be removed at once.
integer | $sgid | |
integer | integer[] | $permid |
AdapterException | |
ServerQueryException |
Definition at line 1239 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::serverGroupRename | ( | int | $sgid, |
string | $name ) |
Renames the server group specified with $sgid.
integer | $sgid | |
string | $name |
AdapterException | |
ServerQueryException |
Definition at line 1127 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::snapshotCreate | ( | int | $mode = TeamSpeak3::SNAPSHOT_STRING | ) |
Creates and returns snapshot data for the selected virtual server.
int | $mode |
AdapterException | |
ServerQueryException |
Definition at line 1955 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::snapshotDeploy | ( | string | $data, |
int | $mode = TeamSpeak3::SNAPSHOT_STRING ) |
Deploys snapshot data on the selected virtual server. If no virtual server is selected (ID 0), the data will be used to create a new virtual server from scratch.
string | $data | |
int | $mode |
AdapterException | |
HelperException | |
ServerQueryException |
Definition at line 1977 of file Server.php.
|
staticprotected |
Internal callback funtion for sorting of client objects.
Client | $a | |
Client | $b |
Definition at line 2590 of file Server.php.
|
staticprotected |
Internal callback funtion for sorting of file list items.
array | $a | |
array | $b |
Definition at line 2638 of file Server.php.
Internal callback funtion for sorting of group objects.
Node | $a | |
Node | $b |
Definition at line 2614 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::start | ( | ) |
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::stop | ( | string | $msg = null | ) |
Stops the virtual server.
string | null | $msg |
Definition at line 2492 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::tempPasswordCreate | ( | string | $pw, |
int | $duration, | ||
int | $tcid = 0, | ||
string | $tcpw = "", | ||
string | $desc = "" ) |
Sets a new temporary server password specified with $pw. The temporary password will be valid for the number of seconds specified with $duration. The client connecting with this password will automatically join the channel specified with $tcid. If tcid is set to 0, the client will join the default channel.
string | $pw | |
integer | $duration | |
integer | $tcid | |
string | $tcpw | |
string | $desc |
AdapterException | |
ServerQueryException |
Definition at line 2405 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::tempPasswordDelete | ( | string | $pw | ) |
Deletes the temporary server password specified with $pw.
string | $pw |
AdapterException | |
ServerQueryException |
Definition at line 2418 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::tempPasswordList | ( | bool | $resolve = false | ) |
Returns a list of temporary server passwords.
boolean | $resolve |
AdapterException | |
ServerQueryException |
Definition at line 2374 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::tokenCreate | ( | int | $id1, |
int | $id2 = 0, | ||
int | $type = TeamSpeak3::TOKEN_SERVERGROUP, | ||
string | $description = null, | ||
array | $customset = null ) |
Alias for privilegeKeyCreate().
int | $id1 | |
int | $id2 | |
int | $type | |
string | null | $description | |
array | null | $customset |
AdapterException | |
ServerQueryException |
Definition at line 2094 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::tokenDelete | ( | $token | ) |
Alias for privilegeKeyDelete().
$token |
AdapterException | |
ServerQueryException |
Definition at line 2138 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::tokenList | ( | bool | $translate = false | ) |
Alias for privilegeKeyList().
bool | $translate |
AdapterException | |
NodeException | |
ServerQueryException |
Definition at line 2039 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::tokenUse | ( | $token | ) |
Alias for privilegeKeyUse().
$token |
AdapterException | |
ServerQueryException |
Definition at line 2164 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::transferInitDownload | ( | int | $clientftfid, |
int | $cid, | ||
string | $name, | ||
string | $cpw = "", | ||
int | $seekpos = 0 ) |
Initializes a file transfer download. $clientftfid is an arbitrary ID to identify the file transfer on client-side.
integer | $clientftfid | |
integer | $cid | |
string | $name | |
string | $cpw | |
integer | $seekpos |
AdapterException | |
ServerQueryException |
Definition at line 1755 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::transferInitUpload | ( | int | $clientftfid, |
int | $cid, | ||
string | $name, | ||
int | $size, | ||
string | $cpw = "", | ||
bool | $overwrite = false, | ||
bool | $resume = false ) |
Initializes a file transfer upload. $clientftfid is an arbitrary ID to identify the file transfer on client-side.
integer | $clientftfid | |
integer | $cid | |
string | $name | |
integer | $size | |
string | $cpw | |
boolean | $overwrite | |
boolean | $resume |
AdapterException | |
ServerQueryException |
Definition at line 1712 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::transferList | ( | ) |
Displays a list of running file transfers on the selected virtual server. The output contains the path to which a file is uploaded to, the current transfer rate in bytes per second, etc.
AdapterException | |
ServerQueryException |
Definition at line 1787 of file Server.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server::transferStop | ( | int | $serverftfid, |
bool | $delete = false ) |
Stops the running file transfer with server-side ID $serverftfid.
integer | $serverftfid | |
boolean | $delete |
AdapterException | |
ServerQueryException |
Definition at line 1801 of file Server.php.
|
protected |
@ignore
Definition at line 40 of file Server.php.
|
protected |
@ignore
Definition at line 25 of file Server.php.
|
protected |
@ignore
Definition at line 30 of file Server.php.
|
protected |
@ignore
Definition at line 35 of file Server.php.