Sf-Admin.html 44 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Documentation</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <base href="../">
  8. <link rel="icon" href="images/favicon.ico"/>
  9. <link rel="stylesheet" href="css/normalize.css">
  10. <link rel="stylesheet" href="css/base.css">
  11. <link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap" rel="stylesheet">
  12. <link rel="stylesheet" href="css/template.css">
  13. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
  14. <script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
  15. <script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
  16. <script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/js/all.min.js" integrity="sha256-0vuk8LXoyrmCjp1f0O300qo1M75ZQyhH9X3J6d+scmk=" crossorigin="anonymous"></script>
  17. <script src="js/search.js"></script>
  18. <script defer src="js/searchIndex.js"></script>
  19. </head>
  20. <body id="top">
  21. <header class="phpdocumentor-header phpdocumentor-section">
  22. <h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
  23. <input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
  24. <label class="phpdocumentor-header__menu-icon" for="menu-button">
  25. <i class="fas fa-bars"></i>
  26. </label>
  27. <section data-search-form class="phpdocumentor-search">
  28. <label>
  29. <span class="visually-hidden">Search for</span>
  30. <svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  31. <circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
  32. <line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
  33. </svg>
  34. <input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
  35. </label>
  36. </section>
  37. <nav class="phpdocumentor-topnav">
  38. <ul class="phpdocumentor-topnav__menu">
  39. </ul>
  40. </nav>
  41. </header>
  42. <main class="phpdocumentor">
  43. <div class="phpdocumentor-section">
  44. <input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
  45. <label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
  46. Menu
  47. </label>
  48. <aside class="phpdocumentor-column -four phpdocumentor-sidebar">
  49. <section class="phpdocumentor-sidebar__category">
  50. <h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
  51. <h3 class="phpdocumentor-sidebar__root-namespace"><a href="namespaces/default.html"><abbr title="\">Global</abbr></a></h3>
  52. </section>
  53. <section class="phpdocumentor-sidebar__category">
  54. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  55. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  56. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  57. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  58. </section>
  59. <section class="phpdocumentor-sidebar__category">
  60. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  61. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  62. </section>
  63. </aside>
  64. <div class="phpdocumentor-column -eight phpdocumentor-content">
  65. <ul class="phpdocumentor-breadcrumbs">
  66. <li class="phpdocumentor-breadcrumb"><a href="packages/Default.html">Default</a></li>
  67. </ul>
  68. <article class="phpdocumentor-element -class">
  69. <h2 class="phpdocumentor-content__title">
  70. Sf_Admin
  71. </h2>
  72. <aside class="phpdocumentor-element-found-in">
  73. <abbr class="phpdocumentor-element-found-in__file" title="Admin.php"><a href="files/admin.html"><abbr title="Admin.php">Admin.php</abbr></a></abbr>
  74. :
  75. <span class="phpdocumentor-element-found-in__line">21</span>
  76. </aside>
  77. <p class="phpdocumentor-summary">Sf_Admin is a class which allows to manage Seafile accounts via web-api/v2.1-admin</p>
  78. <section class="phpdocumentor-description"><p>You may create, modify, migrate, delete and get the attributes of a Seafile account using this class</p>
  79. <p>For the usage examples of all class methods check the source code of test.php</p>
  80. </section>
  81. <h3 id="toc">
  82. Table of Contents
  83. <a href="#toc" class="headerlink"><i class="fas fa-link"></i></a>
  84. </h3>
  85. <dl class="phpdocumentor-table-of-contents">
  86. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  87. <a href="classes/Sf-Admin.html#property_sfToken">$sfToken</a>
  88. <span>
  89. &nbsp;: mixed </span>
  90. </dt>
  91. <dd></dd>
  92. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  93. <a href="classes/Sf-Admin.html#property_constructorSuccess">$constructorSuccess</a>
  94. <span>
  95. &nbsp;: mixed </span>
  96. </dt>
  97. <dd></dd>
  98. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  99. <a href="classes/Sf-Admin.html#property_loginSuccess">$loginSuccess</a>
  100. <span>
  101. &nbsp;: mixed </span>
  102. </dt>
  103. <dd></dd>
  104. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  105. <a href="classes/Sf-Admin.html#property_sfAdminName">$sfAdminName</a>
  106. <span>
  107. &nbsp;: mixed </span>
  108. </dt>
  109. <dd></dd>
  110. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  111. <a href="classes/Sf-Admin.html#property_sfConType">$sfConType</a>
  112. <span>
  113. &nbsp;: mixed </span>
  114. </dt>
  115. <dd></dd>
  116. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  117. <a href="classes/Sf-Admin.html#property_sfPassword">$sfPassword</a>
  118. <span>
  119. &nbsp;: mixed </span>
  120. </dt>
  121. <dd></dd>
  122. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  123. <a href="classes/Sf-Admin.html#property_sfPort">$sfPort</a>
  124. <span>
  125. &nbsp;: mixed </span>
  126. </dt>
  127. <dd></dd>
  128. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  129. <a href="classes/Sf-Admin.html#property_sfSecure">$sfSecure</a>
  130. <span>
  131. &nbsp;: mixed </span>
  132. </dt>
  133. <dd></dd>
  134. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  135. <a href="classes/Sf-Admin.html#property_sfURL">$sfURL</a>
  136. <span>
  137. &nbsp;: mixed </span>
  138. </dt>
  139. <dd></dd>
  140. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  141. <a href="classes/Sf-Admin.html#method___construct">__construct()</a>
  142. <span>
  143. &nbsp;: mixed </span>
  144. </dt>
  145. <dd>Constructor</dd>
  146. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  147. <a href="classes/Sf-Admin.html#method_constructorSuccess">constructorSuccess()</a>
  148. <span>
  149. &nbsp;: mixed </span>
  150. </dt>
  151. <dd></dd>
  152. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  153. <a href="classes/Sf-Admin.html#method_createAccount">createAccount()</a>
  154. <span>
  155. &nbsp;: array&lt;string|int, mixed&gt; </span>
  156. </dt>
  157. <dd>getAccount</dd>
  158. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  159. <a href="classes/Sf-Admin.html#method_deleteAccount">deleteAccount()</a>
  160. <span>
  161. &nbsp;: array&lt;string|int, mixed&gt; </span>
  162. </dt>
  163. <dd>deleteAccount</dd>
  164. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  165. <a href="classes/Sf-Admin.html#method_getAccount">getAccount()</a>
  166. <span>
  167. &nbsp;: array&lt;string|int, mixed&gt; </span>
  168. </dt>
  169. <dd>getAccount</dd>
  170. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  171. <a href="classes/Sf-Admin.html#method_getAllAccounts">getAllAccounts()</a>
  172. <span>
  173. &nbsp;: array&lt;string|int, mixed&gt; </span>
  174. </dt>
  175. <dd>getAllAccounts</dd>
  176. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  177. <a href="classes/Sf-Admin.html#method_login">login()</a>
  178. <span>
  179. &nbsp;: array&lt;string|int, mixed&gt; </span>
  180. </dt>
  181. <dd>login</dd>
  182. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  183. <a href="classes/Sf-Admin.html#method_loginSuccess">loginSuccess()</a>
  184. <span>
  185. &nbsp;: bool </span>
  186. </dt>
  187. <dd>loginSuccess</dd>
  188. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  189. <a href="classes/Sf-Admin.html#method_migrateAccount">migrateAccount()</a>
  190. <span>
  191. &nbsp;: array&lt;string|int, mixed&gt; </span>
  192. </dt>
  193. <dd>migrateAccount</dd>
  194. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  195. <a href="classes/Sf-Admin.html#method_modifyAccount">modifyAccount()</a>
  196. <span>
  197. &nbsp;: array&lt;string|int, mixed&gt; </span>
  198. </dt>
  199. <dd>modifyAccount</dd>
  200. </dl>
  201. <section class="phpdocumentor-properties">
  202. <h3 class="phpdocumentor-elements__header" id="properties">
  203. Properties
  204. <a href="classes/Sf-Admin.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  205. </h3>
  206. <article
  207. class="
  208. phpdocumentor-element
  209. -property
  210. -protected
  211. "
  212. >
  213. <h4 class="phpdocumentor-element__name" id="property_sfToken">
  214. $sfToken
  215. <a href="classes/Sf-Admin.html#property_sfToken" class="headerlink"><i class="fas fa-link"></i></a>
  216. <span class="phpdocumentor-element__modifiers">
  217. </span>
  218. </h4>
  219. <aside class="phpdocumentor-element-found-in">
  220. <abbr class="phpdocumentor-element-found-in__file" title="Admin.php"><a href="files/admin.html"><abbr title="Admin.php">Admin.php</abbr></a></abbr>
  221. :
  222. <span class="phpdocumentor-element-found-in__line">30</span>
  223. </aside>
  224. <code class="phpdocumentor-code phpdocumentor-signature ">
  225. <span class="phpdocumentor-signature__visibility">protected</span>
  226. <span class="phpdocumentor-signature__type">mixed</span>
  227. <span class="phpdocumentor-signature__name">$sfToken</span>
  228. </code>
  229. </article>
  230. <article
  231. class="
  232. phpdocumentor-element
  233. -property
  234. -private
  235. "
  236. >
  237. <h4 class="phpdocumentor-element__name" id="property_constructorSuccess">
  238. $constructorSuccess
  239. <a href="classes/Sf-Admin.html#property_constructorSuccess" class="headerlink"><i class="fas fa-link"></i></a>
  240. <span class="phpdocumentor-element__modifiers">
  241. </span>
  242. </h4>
  243. <aside class="phpdocumentor-element-found-in">
  244. <abbr class="phpdocumentor-element-found-in__file" title="Admin.php"><a href="files/admin.html"><abbr title="Admin.php">Admin.php</abbr></a></abbr>
  245. :
  246. <span class="phpdocumentor-element-found-in__line">23</span>
  247. </aside>
  248. <code class="phpdocumentor-code phpdocumentor-signature ">
  249. <span class="phpdocumentor-signature__visibility">private</span>
  250. <span class="phpdocumentor-signature__type">mixed</span>
  251. <span class="phpdocumentor-signature__name">$constructorSuccess</span>
  252. </code>
  253. </article>
  254. <article
  255. class="
  256. phpdocumentor-element
  257. -property
  258. -private
  259. "
  260. >
  261. <h4 class="phpdocumentor-element__name" id="property_loginSuccess">
  262. $loginSuccess
  263. <a href="classes/Sf-Admin.html#property_loginSuccess" class="headerlink"><i class="fas fa-link"></i></a>
  264. <span class="phpdocumentor-element__modifiers">
  265. </span>
  266. </h4>
  267. <aside class="phpdocumentor-element-found-in">
  268. <abbr class="phpdocumentor-element-found-in__file" title="Admin.php"><a href="files/admin.html"><abbr title="Admin.php">Admin.php</abbr></a></abbr>
  269. :
  270. <span class="phpdocumentor-element-found-in__line">22</span>
  271. </aside>
  272. <code class="phpdocumentor-code phpdocumentor-signature ">
  273. <span class="phpdocumentor-signature__visibility">private</span>
  274. <span class="phpdocumentor-signature__type">mixed</span>
  275. <span class="phpdocumentor-signature__name">$loginSuccess</span>
  276. </code>
  277. </article>
  278. <article
  279. class="
  280. phpdocumentor-element
  281. -property
  282. -private
  283. "
  284. >
  285. <h4 class="phpdocumentor-element__name" id="property_sfAdminName">
  286. $sfAdminName
  287. <a href="classes/Sf-Admin.html#property_sfAdminName" class="headerlink"><i class="fas fa-link"></i></a>
  288. <span class="phpdocumentor-element__modifiers">
  289. </span>
  290. </h4>
  291. <aside class="phpdocumentor-element-found-in">
  292. <abbr class="phpdocumentor-element-found-in__file" title="Admin.php"><a href="files/admin.html"><abbr title="Admin.php">Admin.php</abbr></a></abbr>
  293. :
  294. <span class="phpdocumentor-element-found-in__line">28</span>
  295. </aside>
  296. <code class="phpdocumentor-code phpdocumentor-signature ">
  297. <span class="phpdocumentor-signature__visibility">private</span>
  298. <span class="phpdocumentor-signature__type">mixed</span>
  299. <span class="phpdocumentor-signature__name">$sfAdminName</span>
  300. </code>
  301. </article>
  302. <article
  303. class="
  304. phpdocumentor-element
  305. -property
  306. -private
  307. "
  308. >
  309. <h4 class="phpdocumentor-element__name" id="property_sfConType">
  310. $sfConType
  311. <a href="classes/Sf-Admin.html#property_sfConType" class="headerlink"><i class="fas fa-link"></i></a>
  312. <span class="phpdocumentor-element__modifiers">
  313. </span>
  314. </h4>
  315. <aside class="phpdocumentor-element-found-in">
  316. <abbr class="phpdocumentor-element-found-in__file" title="Admin.php"><a href="files/admin.html"><abbr title="Admin.php">Admin.php</abbr></a></abbr>
  317. :
  318. <span class="phpdocumentor-element-found-in__line">25</span>
  319. </aside>
  320. <code class="phpdocumentor-code phpdocumentor-signature ">
  321. <span class="phpdocumentor-signature__visibility">private</span>
  322. <span class="phpdocumentor-signature__type">mixed</span>
  323. <span class="phpdocumentor-signature__name">$sfConType</span>
  324. </code>
  325. </article>
  326. <article
  327. class="
  328. phpdocumentor-element
  329. -property
  330. -private
  331. "
  332. >
  333. <h4 class="phpdocumentor-element__name" id="property_sfPassword">
  334. $sfPassword
  335. <a href="classes/Sf-Admin.html#property_sfPassword" class="headerlink"><i class="fas fa-link"></i></a>
  336. <span class="phpdocumentor-element__modifiers">
  337. </span>
  338. </h4>
  339. <aside class="phpdocumentor-element-found-in">
  340. <abbr class="phpdocumentor-element-found-in__file" title="Admin.php"><a href="files/admin.html"><abbr title="Admin.php">Admin.php</abbr></a></abbr>
  341. :
  342. <span class="phpdocumentor-element-found-in__line">29</span>
  343. </aside>
  344. <code class="phpdocumentor-code phpdocumentor-signature ">
  345. <span class="phpdocumentor-signature__visibility">private</span>
  346. <span class="phpdocumentor-signature__type">mixed</span>
  347. <span class="phpdocumentor-signature__name">$sfPassword</span>
  348. </code>
  349. </article>
  350. <article
  351. class="
  352. phpdocumentor-element
  353. -property
  354. -private
  355. "
  356. >
  357. <h4 class="phpdocumentor-element__name" id="property_sfPort">
  358. $sfPort
  359. <a href="classes/Sf-Admin.html#property_sfPort" class="headerlink"><i class="fas fa-link"></i></a>
  360. <span class="phpdocumentor-element__modifiers">
  361. </span>
  362. </h4>
  363. <aside class="phpdocumentor-element-found-in">
  364. <abbr class="phpdocumentor-element-found-in__file" title="Admin.php"><a href="files/admin.html"><abbr title="Admin.php">Admin.php</abbr></a></abbr>
  365. :
  366. <span class="phpdocumentor-element-found-in__line">26</span>
  367. </aside>
  368. <code class="phpdocumentor-code phpdocumentor-signature ">
  369. <span class="phpdocumentor-signature__visibility">private</span>
  370. <span class="phpdocumentor-signature__type">mixed</span>
  371. <span class="phpdocumentor-signature__name">$sfPort</span>
  372. </code>
  373. </article>
  374. <article
  375. class="
  376. phpdocumentor-element
  377. -property
  378. -private
  379. "
  380. >
  381. <h4 class="phpdocumentor-element__name" id="property_sfSecure">
  382. $sfSecure
  383. <a href="classes/Sf-Admin.html#property_sfSecure" class="headerlink"><i class="fas fa-link"></i></a>
  384. <span class="phpdocumentor-element__modifiers">
  385. </span>
  386. </h4>
  387. <aside class="phpdocumentor-element-found-in">
  388. <abbr class="phpdocumentor-element-found-in__file" title="Admin.php"><a href="files/admin.html"><abbr title="Admin.php">Admin.php</abbr></a></abbr>
  389. :
  390. <span class="phpdocumentor-element-found-in__line">27</span>
  391. </aside>
  392. <code class="phpdocumentor-code phpdocumentor-signature ">
  393. <span class="phpdocumentor-signature__visibility">private</span>
  394. <span class="phpdocumentor-signature__type">mixed</span>
  395. <span class="phpdocumentor-signature__name">$sfSecure</span>
  396. </code>
  397. </article>
  398. <article
  399. class="
  400. phpdocumentor-element
  401. -property
  402. -private
  403. "
  404. >
  405. <h4 class="phpdocumentor-element__name" id="property_sfURL">
  406. $sfURL
  407. <a href="classes/Sf-Admin.html#property_sfURL" class="headerlink"><i class="fas fa-link"></i></a>
  408. <span class="phpdocumentor-element__modifiers">
  409. </span>
  410. </h4>
  411. <aside class="phpdocumentor-element-found-in">
  412. <abbr class="phpdocumentor-element-found-in__file" title="Admin.php"><a href="files/admin.html"><abbr title="Admin.php">Admin.php</abbr></a></abbr>
  413. :
  414. <span class="phpdocumentor-element-found-in__line">24</span>
  415. </aside>
  416. <code class="phpdocumentor-code phpdocumentor-signature ">
  417. <span class="phpdocumentor-signature__visibility">private</span>
  418. <span class="phpdocumentor-signature__type">mixed</span>
  419. <span class="phpdocumentor-signature__name">$sfURL</span>
  420. </code>
  421. </article>
  422. </section>
  423. <section class="phpdocumentor-methods">
  424. <h3 class="phpdocumentor-elements__header" id="methods">
  425. Methods
  426. <a href="classes/Sf-Admin.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  427. </h3>
  428. <article
  429. class="phpdocumentor-element
  430. -method
  431. -public
  432. "
  433. >
  434. <h4 class="phpdocumentor-element__name" id="method___construct">
  435. __construct()
  436. <a href="classes/Sf-Admin.html#method___construct" class="headerlink"><i class="fas fa-link"></i></a>
  437. </h4>
  438. <aside class="phpdocumentor-element-found-in">
  439. <abbr class="phpdocumentor-element-found-in__file" title="Admin.php"><a href="files/admin.html"><abbr title="Admin.php">Admin.php</abbr></a></abbr>
  440. :
  441. <span class="phpdocumentor-element-found-in__line">38</span>
  442. </aside>
  443. <p class="phpdocumentor-summary">Constructor</p>
  444. <code class="phpdocumentor-code phpdocumentor-signature ">
  445. <span class="phpdocumentor-signature__visibility">public</span>
  446. <span class="phpdocumentor-signature__name">__construct</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$seafileURL</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$username</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$password</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$secure</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">true</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
  447. <section class="phpdocumentor-description"></section>
  448. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  449. <dl class="phpdocumentor-argument-list">
  450. <dt class="phpdocumentor-argument-list__entry">
  451. <span class="phpdocumentor-signature__argument__name">$seafileURL</span>
  452. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  453. </dt>
  454. <dd class="phpdocumentor-argument-list__definition">
  455. <section class="phpdocumentor-description"><p>Seafile URL (example: https://seafile.my.lan)</p>
  456. </section>
  457. </dd>
  458. <dt class="phpdocumentor-argument-list__entry">
  459. <span class="phpdocumentor-signature__argument__name">$username</span>
  460. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  461. </dt>
  462. <dd class="phpdocumentor-argument-list__definition">
  463. <section class="phpdocumentor-description"><p>admin/user account's e-mail</p>
  464. </section>
  465. </dd>
  466. <dt class="phpdocumentor-argument-list__entry">
  467. <span class="phpdocumentor-signature__argument__name">$password</span>
  468. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  469. </dt>
  470. <dd class="phpdocumentor-argument-list__definition">
  471. <section class="phpdocumentor-description"><p>admin/user account's password</p>
  472. </section>
  473. </dd>
  474. <dt class="phpdocumentor-argument-list__entry">
  475. <span class="phpdocumentor-signature__argument__name">$secure</span>
  476. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  477. = <span class="phpdocumentor-signature__argument__default-value">true</span> </dt>
  478. <dd class="phpdocumentor-argument-list__definition">
  479. <section class="phpdocumentor-description"><p>optional false to force unsecure (default true)</p>
  480. </section>
  481. </dd>
  482. </dl>
  483. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  484. <span class="phpdocumentor-signature__response_type">mixed</span>
  485. &mdash;
  486. <section class="phpdocumentor-description"></section>
  487. </article>
  488. <article
  489. class="phpdocumentor-element
  490. -method
  491. -public
  492. "
  493. >
  494. <h4 class="phpdocumentor-element__name" id="method_constructorSuccess">
  495. constructorSuccess()
  496. <a href="classes/Sf-Admin.html#method_constructorSuccess" class="headerlink"><i class="fas fa-link"></i></a>
  497. </h4>
  498. <aside class="phpdocumentor-element-found-in">
  499. <abbr class="phpdocumentor-element-found-in__file" title="Admin.php"><a href="files/admin.html"><abbr title="Admin.php">Admin.php</abbr></a></abbr>
  500. :
  501. <span class="phpdocumentor-element-found-in__line">72</span>
  502. </aside>
  503. <code class="phpdocumentor-code phpdocumentor-signature ">
  504. <span class="phpdocumentor-signature__visibility">public</span>
  505. <span class="phpdocumentor-signature__name">constructorSuccess</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
  506. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  507. <span class="phpdocumentor-signature__response_type">mixed</span>
  508. &mdash;
  509. <section class="phpdocumentor-description"></section>
  510. </article>
  511. <article
  512. class="phpdocumentor-element
  513. -method
  514. -public
  515. "
  516. >
  517. <h4 class="phpdocumentor-element__name" id="method_createAccount">
  518. createAccount()
  519. <a href="classes/Sf-Admin.html#method_createAccount" class="headerlink"><i class="fas fa-link"></i></a>
  520. </h4>
  521. <aside class="phpdocumentor-element-found-in">
  522. <abbr class="phpdocumentor-element-found-in__file" title="Admin.php"><a href="files/admin.html"><abbr title="Admin.php">Admin.php</abbr></a></abbr>
  523. :
  524. <span class="phpdocumentor-element-found-in__line">188</span>
  525. </aside>
  526. <p class="phpdocumentor-summary">getAccount</p>
  527. <code class="phpdocumentor-code phpdocumentor-signature ">
  528. <span class="phpdocumentor-signature__visibility">public</span>
  529. <span class="phpdocumentor-signature__name">createAccount</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$params</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
  530. <section class="phpdocumentor-description"></section>
  531. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  532. <dl class="phpdocumentor-argument-list">
  533. <dt class="phpdocumentor-argument-list__entry">
  534. <span class="phpdocumentor-signature__argument__name">$params</span>
  535. : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
  536. </dt>
  537. <dd class="phpdocumentor-argument-list__definition">
  538. <section class="phpdocumentor-description"><p>avvount informations, email required.</p>
  539. </section>
  540. </dd>
  541. </dl>
  542. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  543. Tags
  544. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  545. </h5>
  546. <dl class="phpdocumentor-tag-list">
  547. <dt class="phpdocumentor-tag-list__entry">
  548. <span class="phpdocumentor-tag__name">see</span>
  549. </dt>
  550. <dd class="phpdocumentor-tag-list__definition">
  551. <span class="phpdocumentor-tag-link"><a href="https://download.seafile.com/published/web-api/v2.1-admin/accounts.md#user-content-Add%20User"><abbr title="https://download.seafile.com/published/web-api/v2.1-admin/accounts.md#user-content-Add%20User">https://download.seafile.com/published/web-api/v2.1-admin/accounts.md#user-content-Add%20User</abbr></a></span>
  552. <section class="phpdocumentor-description"></section>
  553. </dd>
  554. </dl>
  555. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  556. <span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
  557. &mdash;
  558. <section class="phpdocumentor-description"><p>of account informations or error message</p>
  559. </section>
  560. </article>
  561. <article
  562. class="phpdocumentor-element
  563. -method
  564. -public
  565. "
  566. >
  567. <h4 class="phpdocumentor-element__name" id="method_deleteAccount">
  568. deleteAccount()
  569. <a href="classes/Sf-Admin.html#method_deleteAccount" class="headerlink"><i class="fas fa-link"></i></a>
  570. </h4>
  571. <aside class="phpdocumentor-element-found-in">
  572. <abbr class="phpdocumentor-element-found-in__file" title="Admin.php"><a href="files/admin.html"><abbr title="Admin.php">Admin.php</abbr></a></abbr>
  573. :
  574. <span class="phpdocumentor-element-found-in__line">261</span>
  575. </aside>
  576. <p class="phpdocumentor-summary">deleteAccount</p>
  577. <code class="phpdocumentor-code phpdocumentor-signature ">
  578. <span class="phpdocumentor-signature__visibility">public</span>
  579. <span class="phpdocumentor-signature__name">deleteAccount</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$email</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
  580. <section class="phpdocumentor-description"></section>
  581. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  582. <dl class="phpdocumentor-argument-list">
  583. <dt class="phpdocumentor-argument-list__entry">
  584. <span class="phpdocumentor-signature__argument__name">$email</span>
  585. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  586. </dt>
  587. <dd class="phpdocumentor-argument-list__definition">
  588. <section class="phpdocumentor-description"><p>login e-mail</p>
  589. </section>
  590. </dd>
  591. </dl>
  592. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  593. <span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
  594. &mdash;
  595. <section class="phpdocumentor-description"><p>success =&gt; true or error message</p>
  596. </section>
  597. </article>
  598. <article
  599. class="phpdocumentor-element
  600. -method
  601. -public
  602. "
  603. >
  604. <h4 class="phpdocumentor-element__name" id="method_getAccount">
  605. getAccount()
  606. <a href="classes/Sf-Admin.html#method_getAccount" class="headerlink"><i class="fas fa-link"></i></a>
  607. </h4>
  608. <aside class="phpdocumentor-element-found-in">
  609. <abbr class="phpdocumentor-element-found-in__file" title="Admin.php"><a href="files/admin.html"><abbr title="Admin.php">Admin.php</abbr></a></abbr>
  610. :
  611. <span class="phpdocumentor-element-found-in__line">157</span>
  612. </aside>
  613. <p class="phpdocumentor-summary">getAccount</p>
  614. <code class="phpdocumentor-code phpdocumentor-signature ">
  615. <span class="phpdocumentor-signature__visibility">public</span>
  616. <span class="phpdocumentor-signature__name">getAccount</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$email</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
  617. <section class="phpdocumentor-description"></section>
  618. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  619. <dl class="phpdocumentor-argument-list">
  620. <dt class="phpdocumentor-argument-list__entry">
  621. <span class="phpdocumentor-signature__argument__name">$email</span>
  622. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  623. </dt>
  624. <dd class="phpdocumentor-argument-list__definition">
  625. <section class="phpdocumentor-description"><p>login e-mail</p>
  626. </section>
  627. </dd>
  628. </dl>
  629. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  630. <span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
  631. &mdash;
  632. <section class="phpdocumentor-description"><p>of account informations or error message</p>
  633. </section>
  634. </article>
  635. <article
  636. class="phpdocumentor-element
  637. -method
  638. -public
  639. "
  640. >
  641. <h4 class="phpdocumentor-element__name" id="method_getAllAccounts">
  642. getAllAccounts()
  643. <a href="classes/Sf-Admin.html#method_getAllAccounts" class="headerlink"><i class="fas fa-link"></i></a>
  644. </h4>
  645. <aside class="phpdocumentor-element-found-in">
  646. <abbr class="phpdocumentor-element-found-in__file" title="Admin.php"><a href="files/admin.html"><abbr title="Admin.php">Admin.php</abbr></a></abbr>
  647. :
  648. <span class="phpdocumentor-element-found-in__line">128</span>
  649. </aside>
  650. <p class="phpdocumentor-summary">getAllAccounts</p>
  651. <code class="phpdocumentor-code phpdocumentor-signature ">
  652. <span class="phpdocumentor-signature__visibility">public</span>
  653. <span class="phpdocumentor-signature__name">getAllAccounts</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
  654. <section class="phpdocumentor-description"></section>
  655. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  656. <span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
  657. &mdash;
  658. <section class="phpdocumentor-description"><p>of seafile accounts array of informations or error message</p>
  659. </section>
  660. </article>
  661. <article
  662. class="phpdocumentor-element
  663. -method
  664. -public
  665. "
  666. >
  667. <h4 class="phpdocumentor-element__name" id="method_login">
  668. login()
  669. <a href="classes/Sf-Admin.html#method_login" class="headerlink"><i class="fas fa-link"></i></a>
  670. </h4>
  671. <aside class="phpdocumentor-element-found-in">
  672. <abbr class="phpdocumentor-element-found-in__file" title="Admin.php"><a href="files/admin.html"><abbr title="Admin.php">Admin.php</abbr></a></abbr>
  673. :
  674. <span class="phpdocumentor-element-found-in__line">81</span>
  675. </aside>
  676. <p class="phpdocumentor-summary">login</p>
  677. <code class="phpdocumentor-code phpdocumentor-signature ">
  678. <span class="phpdocumentor-signature__visibility">public</span>
  679. <span class="phpdocumentor-signature__name">login</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
  680. <section class="phpdocumentor-description"><p>fetch and set seafile lofin token</p>
  681. </section>
  682. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  683. <span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
  684. &mdash;
  685. <section class="phpdocumentor-description"><p>error or true</p>
  686. </section>
  687. </article>
  688. <article
  689. class="phpdocumentor-element
  690. -method
  691. -public
  692. "
  693. >
  694. <h4 class="phpdocumentor-element__name" id="method_loginSuccess">
  695. loginSuccess()
  696. <a href="classes/Sf-Admin.html#method_loginSuccess" class="headerlink"><i class="fas fa-link"></i></a>
  697. </h4>
  698. <aside class="phpdocumentor-element-found-in">
  699. <abbr class="phpdocumentor-element-found-in__file" title="Admin.php"><a href="files/admin.html"><abbr title="Admin.php">Admin.php</abbr></a></abbr>
  700. :
  701. <span class="phpdocumentor-element-found-in__line">120</span>
  702. </aside>
  703. <p class="phpdocumentor-summary">loginSuccess</p>
  704. <code class="phpdocumentor-code phpdocumentor-signature ">
  705. <span class="phpdocumentor-signature__visibility">public</span>
  706. <span class="phpdocumentor-signature__name">loginSuccess</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>
  707. <section class="phpdocumentor-description"></section>
  708. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  709. <span class="phpdocumentor-signature__response_type">bool</span>
  710. &mdash;
  711. <section class="phpdocumentor-description"></section>
  712. </article>
  713. <article
  714. class="phpdocumentor-element
  715. -method
  716. -public
  717. "
  718. >
  719. <h4 class="phpdocumentor-element__name" id="method_migrateAccount">
  720. migrateAccount()
  721. <a href="classes/Sf-Admin.html#method_migrateAccount" class="headerlink"><i class="fas fa-link"></i></a>
  722. </h4>
  723. <aside class="phpdocumentor-element-found-in">
  724. <abbr class="phpdocumentor-element-found-in__file" title="Admin.php"><a href="files/admin.html"><abbr title="Admin.php">Admin.php</abbr></a></abbr>
  725. :
  726. <span class="phpdocumentor-element-found-in__line">296</span>
  727. </aside>
  728. <p class="phpdocumentor-summary">migrateAccount</p>
  729. <code class="phpdocumentor-code phpdocumentor-signature ">
  730. <span class="phpdocumentor-signature__visibility">public</span>
  731. <span class="phpdocumentor-signature__name">migrateAccount</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$from</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$to</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
  732. <section class="phpdocumentor-description"></section>
  733. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  734. <dl class="phpdocumentor-argument-list">
  735. <dt class="phpdocumentor-argument-list__entry">
  736. <span class="phpdocumentor-signature__argument__name">$from</span>
  737. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  738. </dt>
  739. <dd class="phpdocumentor-argument-list__definition">
  740. <section class="phpdocumentor-description"><p>source account login e-mail</p>
  741. </section>
  742. </dd>
  743. <dt class="phpdocumentor-argument-list__entry">
  744. <span class="phpdocumentor-signature__argument__name">$to</span>
  745. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  746. </dt>
  747. <dd class="phpdocumentor-argument-list__definition">
  748. <section class="phpdocumentor-description"><p>destination account login e-mail (must exist)</p>
  749. </section>
  750. </dd>
  751. </dl>
  752. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  753. <span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
  754. &mdash;
  755. <section class="phpdocumentor-description"><p>success =&gt; true or error message</p>
  756. </section>
  757. </article>
  758. <article
  759. class="phpdocumentor-element
  760. -method
  761. -public
  762. "
  763. >
  764. <h4 class="phpdocumentor-element__name" id="method_modifyAccount">
  765. modifyAccount()
  766. <a href="classes/Sf-Admin.html#method_modifyAccount" class="headerlink"><i class="fas fa-link"></i></a>
  767. </h4>
  768. <aside class="phpdocumentor-element-found-in">
  769. <abbr class="phpdocumentor-element-found-in__file" title="Admin.php"><a href="files/admin.html"><abbr title="Admin.php">Admin.php</abbr></a></abbr>
  770. :
  771. <span class="phpdocumentor-element-found-in__line">224</span>
  772. </aside>
  773. <p class="phpdocumentor-summary">modifyAccount</p>
  774. <code class="phpdocumentor-code phpdocumentor-signature ">
  775. <span class="phpdocumentor-signature__visibility">public</span>
  776. <span class="phpdocumentor-signature__name">modifyAccount</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$params</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
  777. <section class="phpdocumentor-description"></section>
  778. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  779. <dl class="phpdocumentor-argument-list">
  780. <dt class="phpdocumentor-argument-list__entry">
  781. <span class="phpdocumentor-signature__argument__name">$params</span>
  782. : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
  783. </dt>
  784. <dd class="phpdocumentor-argument-list__definition">
  785. <section class="phpdocumentor-description"><p>avvount informations, email required.</p>
  786. </section>
  787. </dd>
  788. </dl>
  789. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  790. Tags
  791. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  792. </h5>
  793. <dl class="phpdocumentor-tag-list">
  794. <dt class="phpdocumentor-tag-list__entry">
  795. <span class="phpdocumentor-tag__name">see</span>
  796. </dt>
  797. <dd class="phpdocumentor-tag-list__definition">
  798. <span class="phpdocumentor-tag-link"><a href="https://download.seafile.com/published/web-api/v2.1-admin/accounts.md#user-content-Add%20User"><abbr title="https://download.seafile.com/published/web-api/v2.1-admin/accounts.md#user-content-Add%20User">https://download.seafile.com/published/web-api/v2.1-admin/accounts.md#user-content-Add%20User</abbr></a></span>
  799. <section class="phpdocumentor-description"></section>
  800. </dd>
  801. </dl>
  802. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  803. <span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
  804. &mdash;
  805. <section class="phpdocumentor-description"><p>of account informations or error message</p>
  806. </section>
  807. </article>
  808. </section>
  809. </article>
  810. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  811. <section class="phpdocumentor-search-results__dialog">
  812. <header class="phpdocumentor-search-results__header">
  813. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  814. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  815. </header>
  816. <section class="phpdocumentor-search-results__body">
  817. <ul class="phpdocumentor-search-results__entries"></ul>
  818. </section>
  819. </section>
  820. </section>
  821. </div>
  822. </div>
  823. <a href="classes/Sf-Admin.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  824. </main>
  825. <script>
  826. cssVars({});
  827. </script>
  828. </body>
  829. </html>