Zm_Server

Zm_Server is a class which allows to manage Zimbra servers via SOAP

You may create, modify, rename, delete and get the attributes of a Zimbra server using this class

For the usage examples of all class methods check the source code of test.php

package

ZimbraSoapPhp

Methods

Constructor

__construct(\Zm_Auth $auth) 

Arguments

$auth

\Zm_Auth

soap authentication

createServer

createServer(string $name, array $attrs = array()) : array

Arguments

$name

string

a server name

$attrs

array

an optional array containing the server attributes to be set

Response

array

an array with the new server's info

deleteServer

deleteServer(string $idOrNameServer, string $type = "auto") : array

Arguments

$idOrNameServer

string

server id or server name

$type

string

value of the server (auto, name, id)

Response

array

informations

getAllServers

getAllServers() : array

Response

array

informations

getServerId

getServerId(string $name) : string

Arguments

$name

string

a server name

Response

string

a server id

getServerOptions

getServerOptions(string $idOrNameServer, string $type = "auto") : array

Arguments

$idOrNameServer

string

server id or server name

$type

string

value of the server (auto, name, id)

Response

array

modifyServer

modifyServer(string $idOrNameServer, array $attrs = array(), string $type = "auto") : array

Arguments

$idOrNameServer

string

server id or server name

$attrs

array

an array containing the server attributes to be set

$type

string

value of the server (auto, name, id)

Response

array

informations

serverExists

serverExists(string $idOrNameServer, string $type = "auto") : boolean

Arguments

$idOrNameServer

string

server id or server name

$type

string

value of the server (auto, name, id)

Response

boolean

exists

Properties

$auth

auth : \Zm_Auth
var

soap authentication

Type(s)

\Zm_Auth