Zm_Server.html 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
  5. <meta charset="utf-8"/>
  6. <title> ZimbraSoapPhp &raquo; \Zm_Server
  7. </title>
  8. <meta name="author" content=""/>
  9. <meta name="description" content=""/>
  10. <link href="../css/template.css" rel="stylesheet" media="all"/>
  11. <!--[if lt IE 9]>
  12. <script src="https://html5shim.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script>
  13. <![endif]-->
  14. <script src="../js/jquery-1.7.1.min.js" type="text/javascript"></script>
  15. <script src="../js/jquery-ui-1.8.2.custom.min.js" type="text/javascript"></script>
  16. <script src="../js/jquery.mousewheel.min.js" type="text/javascript"></script>
  17. <script src="../js/bootstrap.js" type="text/javascript"></script>
  18. <script src="../js/template.js" type="text/javascript"></script>
  19. <script src="../js/prettify/prettify.min.js" type="text/javascript"></script>
  20. <link rel="shortcut icon" href="../img/favicon.ico"/>
  21. <link rel="apple-touch-icon" href="../img/apple-touch-icon.png"/>
  22. <link rel="apple-touch-icon" sizes="72x72" href="../img/apple-touch-icon-72x72.png"/>
  23. <link rel="apple-touch-icon" sizes="114x114" href="../img/apple-touch-icon-114x114.png"/>
  24. </head>
  25. <body>
  26. <div class="navbar navbar-fixed-top">
  27. <div class="navbar-inner">
  28. <div class="container">
  29. <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
  30. <span class="icon-bar"></span> <span class="icon-bar"></span>
  31. <span class="icon-bar"></span> </a>
  32. <a class="brand" href="../index.html">ZimbraSoapPhp</a>
  33. <div class="nav-collapse">
  34. <ul class="nav">
  35. <li class="dropdown">
  36. <a href="#api" class="dropdown-toggle" data-toggle="dropdown">
  37. API Documentation <b class="caret"></b>
  38. </a>
  39. <ul class="dropdown-menu">
  40. </ul>
  41. </li>
  42. <li class="dropdown" id="charts-menu">
  43. <a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
  44. Charts <b class="caret"></b>
  45. </a>
  46. <ul class="dropdown-menu">
  47. <li>
  48. <a href="../graph_class.html">
  49. <i class="icon-list-alt"></i>&#160;Class hierarchy diagram
  50. </a>
  51. </li>
  52. </ul>
  53. </li>
  54. <li class="dropdown" id="reports-menu">
  55. <a href="#reports" class="dropdown-toggle" data-toggle="dropdown">
  56. Reports <b class="caret"></b>
  57. </a>
  58. <ul class="dropdown-menu">
  59. <li>
  60. <a href="../errors.html">
  61. <i class="icon-list-alt"></i>&#160;Errors
  62. </a>
  63. </li>
  64. <li>
  65. <a href="../markers.html">
  66. <i class="icon-list-alt"></i>&#160;Markers
  67. </a>
  68. </li>
  69. <li>
  70. <a href="../deprecated.html">
  71. <i class="icon-list-alt"></i>&#160;Deprecated
  72. </a>
  73. </li>
  74. </ul>
  75. </li>
  76. </ul>
  77. </div>
  78. </div>
  79. </div>
  80. <div class="go_to_top">
  81. <a href="#___" style="color: inherit">Back to top&#160;&#160;<i class="icon-upload icon-white"></i></a>
  82. </div>
  83. </div>
  84. <div id="___" class="container">
  85. <noscript>
  86. <div class="alert alert-warning">
  87. Javascript is disabled; several features are only available if Javascript is enabled.
  88. </div>
  89. </noscript>
  90. <style>
  91. .deprecated h2 {
  92. text-decoration: line-through;
  93. }
  94. </style>
  95. <div class="row">
  96. <div class="span4">
  97. <div class="btn-group view pull-right" data-toggle="buttons-radio">
  98. <button class="btn details" title="Show descriptions and method names"><i class="icon-list"></i></button>
  99. <button class="btn simple" title="Show only method names"><i class="icon-align-justify"></i></button>
  100. </div>
  101. <div class="btn-group visibility" data-toggle="buttons-checkbox">
  102. <button class="btn public active" title="Show public elements">Public</button>
  103. <button class="btn protected" title="Show protected elements">Protected</button>
  104. <button class="btn private" title="Show private elements">Private</button>
  105. <button class="btn inherited active" title="Show inherited elements">Inherited</button>
  106. </div>
  107. <ul class="side-nav nav nav-list">
  108. <li class="nav-header">
  109. <i class="icon-custom icon-method"></i> Methods
  110. <ul>
  111. <li class="method public">
  112. <a href="#method___construct" title="__construct :: Constructor">
  113. <span class="description">Constructor</span><pre>__construct</pre>
  114. </a>
  115. </li>
  116. <li class="method public">
  117. <a href="#method_createServer" title="createServer :: createServer">
  118. <span class="description">createServer</span><pre>createServer</pre>
  119. </a>
  120. </li>
  121. <li class="method public">
  122. <a href="#method_deleteServer" title="deleteServer :: deleteServer">
  123. <span class="description">deleteServer</span><pre>deleteServer</pre>
  124. </a>
  125. </li>
  126. <li class="method public">
  127. <a href="#method_getAllServers" title="getAllServers :: getAllServers">
  128. <span class="description">getAllServers</span><pre>getAllServers</pre>
  129. </a>
  130. </li>
  131. <li class="method public">
  132. <a href="#method_getServerId" title="getServerId :: getServerId">
  133. <span class="description">getServerId</span><pre>getServerId</pre>
  134. </a>
  135. </li>
  136. <li class="method public">
  137. <a href="#method_getServerOptions" title="getServerOptions :: getServerOptions">
  138. <span class="description">getServerOptions</span><pre>getServerOptions</pre>
  139. </a>
  140. </li>
  141. <li class="method public">
  142. <a href="#method_modifyServer" title="modifyServer :: modifyServer">
  143. <span class="description">modifyServer</span><pre>modifyServer</pre>
  144. </a>
  145. </li>
  146. <li class="method public">
  147. <a href="#method_serverExists" title="serverExists :: serverExists">
  148. <span class="description">serverExists</span><pre>serverExists</pre>
  149. </a>
  150. </li>
  151. </ul>
  152. </li>
  153. <li class="nav-header protected">» Protected
  154. <ul>
  155. </ul>
  156. </li>
  157. <li class="nav-header private">» Private
  158. <ul>
  159. </ul>
  160. </li>
  161. <li class="nav-header">
  162. <i class="icon-custom icon-constant"></i> Constants
  163. <ul>
  164. </ul>
  165. </li>
  166. </ul>
  167. </div>
  168. <div class="span8">
  169. <div class="element class">
  170. <h1>Zm_Server</h1>
  171. <small style="display: block; text-align: right">
  172. </small>
  173. <p class="short_description">Zm_Server is a class which allows to manage Zimbra servers via SOAP</p>
  174. <div class="details">
  175. <div class="long_description">
  176. <p>You may create, modify, rename, delete and get the attributes of a Zimbra server using this class</p>
  177. <p>For the usage examples of all class methods check the source code of test.php</p>
  178. </div>
  179. <table class="table table-bordered">
  180. <tr>
  181. <th>
  182. package
  183. </th>
  184. <td>
  185. <p>ZimbraSoapPhp</p>
  186. </td>
  187. </tr>
  188. </table>
  189. <h3><i class="icon-custom icon-method"></i> Methods</h3>
  190. <a id="method___construct"></a>
  191. <div class="element clickable method public method___construct" data-toggle="collapse" data-target=".method___construct .collapse">
  192. <h2>Constructor</h2>
  193. <pre>__construct(\Zm_Auth $auth) </pre>
  194. <div class="labels">
  195. </div>
  196. <div class="row collapse">
  197. <div class="detail-description">
  198. <div class="long_description"></div>
  199. <table class="table">
  200. <tr>
  201. <th>
  202. </th>
  203. <td>
  204. </td>
  205. </tr>
  206. </table>
  207. <h3>Arguments</h3>
  208. <div class="subelement argument">
  209. <h4>$auth</h4>
  210. <code><a href="../classes/Zm_Auth.html">\Zm_Auth</a></code><p><p>soap authentication</p></p>
  211. </div>
  212. </div>
  213. </div>
  214. </div>
  215. <a id="method_createServer"></a>
  216. <div class="element clickable method public method_createServer" data-toggle="collapse" data-target=".method_createServer .collapse">
  217. <h2>createServer</h2>
  218. <pre>createServer(string $name, array $attrs = array()) : array</pre>
  219. <div class="labels">
  220. </div>
  221. <div class="row collapse">
  222. <div class="detail-description">
  223. <div class="long_description"></div>
  224. <table class="table">
  225. </table>
  226. <h3>Arguments</h3>
  227. <div class="subelement argument">
  228. <h4>$name</h4>
  229. <code>string</code><p><p>a server name</p></p>
  230. </div>
  231. <div class="subelement argument">
  232. <h4>$attrs</h4>
  233. <code>array</code><p><p>an optional array containing the server attributes to be set</p></p>
  234. </div>
  235. <h3>Response</h3>
  236. <code>array</code><p><p>an array with the new server's info</p></p>
  237. </div>
  238. </div>
  239. </div>
  240. <a id="method_deleteServer"></a>
  241. <div class="element clickable method public method_deleteServer" data-toggle="collapse" data-target=".method_deleteServer .collapse">
  242. <h2>deleteServer</h2>
  243. <pre>deleteServer(string $idOrNameServer, string $type = &quot;auto&quot;) : array</pre>
  244. <div class="labels">
  245. </div>
  246. <div class="row collapse">
  247. <div class="detail-description">
  248. <div class="long_description"></div>
  249. <table class="table">
  250. </table>
  251. <h3>Arguments</h3>
  252. <div class="subelement argument">
  253. <h4>$idOrNameServer</h4>
  254. <code>string</code><p><p>server id or server name</p></p>
  255. </div>
  256. <div class="subelement argument">
  257. <h4>$type</h4>
  258. <code>string</code><p><p>value of the server (auto, name, id)</p></p>
  259. </div>
  260. <h3>Response</h3>
  261. <code>array</code><p><p>informations</p></p>
  262. </div>
  263. </div>
  264. </div>
  265. <a id="method_getAllServers"></a>
  266. <div class="element clickable method public method_getAllServers" data-toggle="collapse" data-target=".method_getAllServers .collapse">
  267. <h2>getAllServers</h2>
  268. <pre>getAllServers() : array</pre>
  269. <div class="labels">
  270. </div>
  271. <div class="row collapse">
  272. <div class="detail-description">
  273. <div class="long_description"></div>
  274. <table class="table">
  275. <tr>
  276. <th>
  277. </th>
  278. <td>
  279. </td>
  280. </tr>
  281. </table>
  282. <h3>Response</h3>
  283. <code>array</code><p><p>informations</p></p>
  284. </div>
  285. </div>
  286. </div>
  287. <a id="method_getServerId"></a>
  288. <div class="element clickable method public method_getServerId" data-toggle="collapse" data-target=".method_getServerId .collapse">
  289. <h2>getServerId</h2>
  290. <pre>getServerId(string $name) : string</pre>
  291. <div class="labels">
  292. </div>
  293. <div class="row collapse">
  294. <div class="detail-description">
  295. <div class="long_description"></div>
  296. <table class="table">
  297. </table>
  298. <h3>Arguments</h3>
  299. <div class="subelement argument">
  300. <h4>$name</h4>
  301. <code>string</code><p><p>a server name</p></p>
  302. </div>
  303. <h3>Response</h3>
  304. <code>string</code><p><p>a server id</p></p>
  305. </div>
  306. </div>
  307. </div>
  308. <a id="method_getServerOptions"></a>
  309. <div class="element clickable method public method_getServerOptions" data-toggle="collapse" data-target=".method_getServerOptions .collapse">
  310. <h2>getServerOptions</h2>
  311. <pre>getServerOptions(string $idOrNameServer, string $type = &quot;auto&quot;) : array</pre>
  312. <div class="labels">
  313. </div>
  314. <div class="row collapse">
  315. <div class="detail-description">
  316. <div class="long_description"></div>
  317. <table class="table">
  318. </table>
  319. <h3>Arguments</h3>
  320. <div class="subelement argument">
  321. <h4>$idOrNameServer</h4>
  322. <code>string</code><p><p>server id or server name</p></p>
  323. </div>
  324. <div class="subelement argument">
  325. <h4>$type</h4>
  326. <code>string</code><p><p>value of the server (auto, name, id)</p></p>
  327. </div>
  328. <h3>Response</h3>
  329. <code>array</code><p></p>
  330. </div>
  331. </div>
  332. </div>
  333. <a id="method_modifyServer"></a>
  334. <div class="element clickable method public method_modifyServer" data-toggle="collapse" data-target=".method_modifyServer .collapse">
  335. <h2>modifyServer</h2>
  336. <pre>modifyServer(string $idOrNameServer, array $attrs = array(), string $type = &quot;auto&quot;) : array</pre>
  337. <div class="labels">
  338. </div>
  339. <div class="row collapse">
  340. <div class="detail-description">
  341. <div class="long_description"></div>
  342. <table class="table">
  343. </table>
  344. <h3>Arguments</h3>
  345. <div class="subelement argument">
  346. <h4>$idOrNameServer</h4>
  347. <code>string</code><p><p>server id or server name</p></p>
  348. </div>
  349. <div class="subelement argument">
  350. <h4>$attrs</h4>
  351. <code>array</code><p><p>an array containing the server attributes to be set</p></p>
  352. </div>
  353. <div class="subelement argument">
  354. <h4>$type</h4>
  355. <code>string</code><p><p>value of the server (auto, name, id)</p></p>
  356. </div>
  357. <h3>Response</h3>
  358. <code>array</code><p><p>informations</p></p>
  359. </div>
  360. </div>
  361. </div>
  362. <a id="method_serverExists"></a>
  363. <div class="element clickable method public method_serverExists" data-toggle="collapse" data-target=".method_serverExists .collapse">
  364. <h2>serverExists</h2>
  365. <pre>serverExists(string $idOrNameServer, string $type = &quot;auto&quot;) : boolean</pre>
  366. <div class="labels">
  367. </div>
  368. <div class="row collapse">
  369. <div class="detail-description">
  370. <div class="long_description"></div>
  371. <table class="table">
  372. </table>
  373. <h3>Arguments</h3>
  374. <div class="subelement argument">
  375. <h4>$idOrNameServer</h4>
  376. <code>string</code><p><p>server id or server name</p></p>
  377. </div>
  378. <div class="subelement argument">
  379. <h4>$type</h4>
  380. <code>string</code><p><p>value of the server (auto, name, id)</p></p>
  381. </div>
  382. <h3>Response</h3>
  383. <code>boolean</code><p><p>exists</p></p>
  384. </div>
  385. </div>
  386. </div>
  387. <h3><i class="icon-custom icon-property"></i> Properties</h3>
  388. <a id="property_auth"> </a>
  389. <div class="element clickable property private property_auth" data-toggle="collapse" data-target=".property_auth .collapse">
  390. <h2>$auth</h2>
  391. <pre>auth : \Zm_Auth</pre>
  392. <div class="labels">
  393. </div>
  394. <div class="row collapse">
  395. <div class="detail-description">
  396. <div class="long_description"></div>
  397. <table class="table">
  398. <tr>
  399. <th>
  400. var
  401. </th>
  402. <td>
  403. <p>soap authentication</p>
  404. </td>
  405. </tr>
  406. </table>
  407. <h3>Type(s)</h3>
  408. <code><a href="../classes/Zm_Auth.html">\Zm_Auth</a></code>
  409. </div>
  410. </div>
  411. </div>
  412. </div>
  413. </div>
  414. <a id="\Zm_Server"></a>
  415. <ul class="breadcrumb">
  416. <li><a href="../index.html"><i class="icon-custom icon-class"></i></a></li>
  417. <li><span class="divider">\</span><a href="../namespaces/default.html">\</a></li>
  418. <li class="active"><span class="divider">\</span><a href="../classes/Zm_Server.html">Zm_Server</a></li>
  419. </ul>
  420. </div>
  421. </div>
  422. </div>
  423. <footer class="span12">
  424. Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by
  425. <a href="http://glyphicons.com/">Glyphicons</a>.<br/>
  426. Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor </a> and<br/>
  427. generated on Tue, 26 Sep 2017 11:01:05 +0200.<br/>
  428. </footer>
  429. </body>
  430. </html>