Zm_User.html 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464
  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_User
  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_changeUserPassword" title="changeUserPassword :: changeUserPassword">
  118. <span class="description">changeUserPassword</span><pre>changeUserPassword</pre>
  119. </a>
  120. </li>
  121. <li class="method public">
  122. <a href="#method_getUserAttrs" title="getUserAttrs :: getUserAttrs">
  123. <span class="description">getUserAttrs</span><pre>getUserAttrs</pre>
  124. </a>
  125. </li>
  126. <li class="method public">
  127. <a href="#method_getUserInfo" title="getUserInfo :: getUserInfo">
  128. <span class="description">getUserInfo</span><pre>getUserInfo</pre>
  129. </a>
  130. </li>
  131. <li class="method public">
  132. <a href="#method_getUserPrefs" title="getUserPrefs :: getUserPrefs">
  133. <span class="description">getUserPrefs</span><pre>getUserPrefs</pre>
  134. </a>
  135. </li>
  136. <li class="method public">
  137. <a href="#method_modifyUserPrefs" title="modifyUserPrefs :: modifyUserPrefs">
  138. <span class="description">modifyUserPrefs</span><pre>modifyUserPrefs</pre>
  139. </a>
  140. </li>
  141. <li class="method public">
  142. <a href="#method_userExists" title="userExists :: userExists">
  143. <span class="description">userExists</span><pre>userExists</pre>
  144. </a>
  145. </li>
  146. </ul>
  147. </li>
  148. <li class="nav-header protected">» Protected
  149. <ul>
  150. </ul>
  151. </li>
  152. <li class="nav-header private">» Private
  153. <ul>
  154. </ul>
  155. </li>
  156. <li class="nav-header">
  157. <i class="icon-custom icon-constant"></i> Constants
  158. <ul>
  159. </ul>
  160. </li>
  161. </ul>
  162. </div>
  163. <div class="span8">
  164. <div class="element class">
  165. <h1>Zm_User</h1>
  166. <small style="display: block; text-align: right">
  167. </small>
  168. <p class="short_description">Zm_User is a class which allows a Zimbra user to manage its own account via SOAP</p>
  169. <div class="details">
  170. <div class="long_description">
  171. <p>You may change password, modify and get the attributes of a Zimbra user using this class</p>
  172. <p>For the usage examples of all class methods check the source code of test.php</p>
  173. </div>
  174. <table class="table table-bordered">
  175. <tr>
  176. <th>
  177. package
  178. </th>
  179. <td>
  180. <p>ZimbraSoapPhp</p>
  181. </td>
  182. </tr>
  183. </table>
  184. <h3><i class="icon-custom icon-method"></i> Methods</h3>
  185. <a id="method___construct"></a>
  186. <div class="element clickable method public method___construct" data-toggle="collapse" data-target=".method___construct .collapse">
  187. <h2>Constructor</h2>
  188. <pre>__construct(\Zm_Auth $auth) </pre>
  189. <div class="labels">
  190. </div>
  191. <div class="row collapse">
  192. <div class="detail-description">
  193. <div class="long_description"></div>
  194. <table class="table">
  195. <tr>
  196. <th>
  197. </th>
  198. <td>
  199. </td>
  200. </tr>
  201. </table>
  202. <h3>Arguments</h3>
  203. <div class="subelement argument">
  204. <h4>$auth</h4>
  205. <code><a href="../classes/Zm_Auth.html">\Zm_Auth</a></code><p><p>soap authentication</p></p>
  206. </div>
  207. </div>
  208. </div>
  209. </div>
  210. <a id="method_changeUserPassword"></a>
  211. <div class="element clickable method public method_changeUserPassword" data-toggle="collapse" data-target=".method_changeUserPassword .collapse">
  212. <h2>changeUserPassword</h2>
  213. <pre>changeUserPassword(string $userName, string $oldPassword, string $newPassword) : array</pre>
  214. <div class="labels">
  215. </div>
  216. <div class="row collapse">
  217. <div class="detail-description">
  218. <div class="long_description"></div>
  219. <table class="table">
  220. </table>
  221. <h3>Arguments</h3>
  222. <div class="subelement argument">
  223. <h4>$userName</h4>
  224. <code>string</code><p><p>user name</p></p>
  225. </div>
  226. <div class="subelement argument">
  227. <h4>$oldPassword</h4>
  228. <code>string</code><p><p>old password</p></p>
  229. </div>
  230. <div class="subelement argument">
  231. <h4>$newPassword</h4>
  232. <code>string</code><p><p>new password</p></p>
  233. </div>
  234. <h3>Response</h3>
  235. <code>array</code><p><p>informations</p></p>
  236. </div>
  237. </div>
  238. </div>
  239. <a id="method_getUserAttrs"></a>
  240. <div class="element clickable method public method_getUserAttrs" data-toggle="collapse" data-target=".method_getUserAttrs .collapse">
  241. <h2>getUserAttrs</h2>
  242. <pre>getUserAttrs(string $userName) : string</pre>
  243. <div class="labels">
  244. </div>
  245. <div class="row collapse">
  246. <div class="detail-description">
  247. <div class="long_description"></div>
  248. <table class="table">
  249. </table>
  250. <h3>Arguments</h3>
  251. <div class="subelement argument">
  252. <h4>$userName</h4>
  253. <code>string</code><p><p>user name</p></p>
  254. </div>
  255. <h3>Response</h3>
  256. <code>string</code><p><p>option</p></p>
  257. </div>
  258. </div>
  259. </div>
  260. <a id="method_getUserInfo"></a>
  261. <div class="element clickable method public method_getUserInfo" data-toggle="collapse" data-target=".method_getUserInfo .collapse">
  262. <h2>getUserInfo</h2>
  263. <pre>getUserInfo(string $userName) : array</pre>
  264. <div class="labels">
  265. </div>
  266. <div class="row collapse">
  267. <div class="detail-description">
  268. <div class="long_description"></div>
  269. <table class="table">
  270. </table>
  271. <h3>Arguments</h3>
  272. <div class="subelement argument">
  273. <h4>$userName</h4>
  274. <code>string</code><p><p>user name</p></p>
  275. </div>
  276. <h3>Response</h3>
  277. <code>array</code><p><p>informations</p></p>
  278. </div>
  279. </div>
  280. </div>
  281. <a id="method_getUserPrefs"></a>
  282. <div class="element clickable method public method_getUserPrefs" data-toggle="collapse" data-target=".method_getUserPrefs .collapse">
  283. <h2>getUserPrefs</h2>
  284. <pre>getUserPrefs(string $userName) : array</pre>
  285. <div class="labels">
  286. </div>
  287. <div class="row collapse">
  288. <div class="detail-description">
  289. <div class="long_description"></div>
  290. <table class="table">
  291. </table>
  292. <h3>Arguments</h3>
  293. <div class="subelement argument">
  294. <h4>$userName</h4>
  295. <code>string</code><p><p>user name</p></p>
  296. </div>
  297. <h3>Response</h3>
  298. <code>array</code><p><p>prefs</p></p>
  299. </div>
  300. </div>
  301. </div>
  302. <a id="method_modifyUserPrefs"></a>
  303. <div class="element clickable method public method_modifyUserPrefs" data-toggle="collapse" data-target=".method_modifyUserPrefs .collapse">
  304. <h2>modifyUserPrefs</h2>
  305. <pre>modifyUserPrefs(string $userName, array $prefs = array()) : array</pre>
  306. <div class="labels">
  307. </div>
  308. <div class="row collapse">
  309. <div class="detail-description">
  310. <div class="long_description"></div>
  311. <table class="table">
  312. </table>
  313. <h3>Arguments</h3>
  314. <div class="subelement argument">
  315. <h4>$userName</h4>
  316. <code>string</code><p><p>user name</p></p>
  317. </div>
  318. <div class="subelement argument">
  319. <h4>$prefs</h4>
  320. <code>array</code><p><p>an array containing the user prefs to be set</p></p>
  321. </div>
  322. <h3>Response</h3>
  323. <code>array</code><p><p>informations</p></p>
  324. </div>
  325. </div>
  326. </div>
  327. <a id="method_userExists"></a>
  328. <div class="element clickable method public method_userExists" data-toggle="collapse" data-target=".method_userExists .collapse">
  329. <h2>userExists</h2>
  330. <pre>userExists(string $userName) : boolean</pre>
  331. <div class="labels">
  332. </div>
  333. <div class="row collapse">
  334. <div class="detail-description">
  335. <div class="long_description"></div>
  336. <table class="table">
  337. </table>
  338. <h3>Arguments</h3>
  339. <div class="subelement argument">
  340. <h4>$userName</h4>
  341. <code>string</code><p><p>user name</p></p>
  342. </div>
  343. <h3>Response</h3>
  344. <code>boolean</code><p><p>exists</p></p>
  345. </div>
  346. </div>
  347. </div>
  348. <h3><i class="icon-custom icon-property"></i> Properties</h3>
  349. <a id="property_auth"> </a>
  350. <div class="element clickable property private property_auth" data-toggle="collapse" data-target=".property_auth .collapse">
  351. <h2>$auth</h2>
  352. <pre>auth : \Zm_Auth</pre>
  353. <div class="labels">
  354. </div>
  355. <div class="row collapse">
  356. <div class="detail-description">
  357. <div class="long_description"></div>
  358. <table class="table">
  359. <tr>
  360. <th>
  361. var
  362. </th>
  363. <td>
  364. <p>soap authentication</p>
  365. </td>
  366. </tr>
  367. </table>
  368. <h3>Type(s)</h3>
  369. <code><a href="../classes/Zm_Auth.html">\Zm_Auth</a></code>
  370. </div>
  371. </div>
  372. </div>
  373. </div>
  374. </div>
  375. <a id="\Zm_User"></a>
  376. <ul class="breadcrumb">
  377. <li><a href="../index.html"><i class="icon-custom icon-class"></i></a></li>
  378. <li><span class="divider">\</span><a href="../namespaces/default.html">\</a></li>
  379. <li class="active"><span class="divider">\</span><a href="../classes/Zm_User.html">Zm_User</a></li>
  380. </ul>
  381. </div>
  382. </div>
  383. </div>
  384. <footer class="span12">
  385. Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by
  386. <a href="http://glyphicons.com/">Glyphicons</a>.<br/>
  387. Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor </a> and<br/>
  388. generated on Tue, 26 Sep 2017 11:01:05 +0200.<br/>
  389. </footer>
  390. </body>
  391. </html>