model.xml 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690
  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <model>
  3. <namespace fullname="plupload" name="plupload">
  4. <namespace fullname="plupload.runtimes" name="runtimes">
  5. <class extends="plupload.Runtime" fullname="plupload.runtimes.BrowserPlus" name="BrowserPlus" static="true" summary="Yahoo BrowserPlus implementation.">
  6. <description>Yahoo BrowserPlus implementation. This runtime supports these features: dragdrop, jpgresize, pngresize.
  7. </description>
  8. <members>
  9. <method name="init" static="true" summary="Initializes the browserplus runtime.">
  10. <description>Initializes the browserplus runtime.
  11. </description>
  12. <param name="uploader" type="plupload.Uploader">
  13. <description>Uploader instance that needs to be initialized.</description>
  14. </param>
  15. <param name="callback" type="function">
  16. <description>Callback to execute when the runtime initializes or fails to initialize. If it succeeds an object with a parameter name success will be set to true.</description>
  17. </param>
  18. </method>
  19. </members>
  20. <super-classes>
  21. <class-ref class="plupload.Runtime"/>
  22. </super-classes>
  23. </class>
  24. <class extends="plupload.Runtime" fullname="plupload.runtimes.Flash" name="Flash" static="true" summary="FlashRuntime implementation.">
  25. <description>FlashRuntime implementation. This runtime supports these features: jpgresize, pngresize, chunks.
  26. </description>
  27. <members>
  28. <method name="init" static="true" summary="Initializes the upload runtime.">
  29. <description>Initializes the upload runtime. This method should add necessary items to the DOM and register events needed for operation.
  30. </description>
  31. <param name="uploader" type="plupload.Uploader">
  32. <description>Uploader instance that needs to be initialized.</description>
  33. </param>
  34. <param name="callback" type="function">
  35. <description>Callback to execute when the runtime initializes or fails to initialize. If it succeeds an object with a parameter name success will be set to true.</description>
  36. </param>
  37. </method>
  38. </members>
  39. <super-classes>
  40. <class-ref class="plupload.Runtime"/>
  41. </super-classes>
  42. </class>
  43. <class extends="plupload.Runtime" fullname="plupload.runtimes.Gears" name="Gears" static="true" summary="Gears implementation.">
  44. <description>Gears implementation. This runtime supports these features: dragdrop, jpgresize, pngresize, chunks.
  45. </description>
  46. <members>
  47. <method name="init" static="true" summary="Initializes the upload runtime.">
  48. <description>Initializes the upload runtime.
  49. </description>
  50. <param name="uploader" type="plupload.Uploader">
  51. <description>Uploader instance that needs to be initialized.</description>
  52. </param>
  53. <param name="callback" type="function">
  54. <description>Callback to execute when the runtime initializes or fails to initialize. If it succeeds an object with a parameter name success will be set to true.</description>
  55. </param>
  56. </method>
  57. </members>
  58. <super-classes>
  59. <class-ref class="plupload.Runtime"/>
  60. </super-classes>
  61. </class>
  62. <class extends="plupload.Runtime" fullname="plupload.runtimes.Html4" name="Html4" static="true" summary="HTML4 implementation.">
  63. <description>HTML4 implementation. This runtime has no special features it uses an form that posts files into an hidden iframe.
  64. </description>
  65. <members>
  66. <method name="init" static="true" summary="Initializes the upload runtime.">
  67. <description>Initializes the upload runtime.
  68. </description>
  69. <param name="uploader" type="plupload.Uploader">
  70. <description>Uploader instance that needs to be initialized.</description>
  71. </param>
  72. <param name="callback" type="function">
  73. <description>Callback to execute when the runtime initializes or fails to initialize. If it succeeds an object with a parameter name success will be set to true.</description>
  74. </param>
  75. </method>
  76. </members>
  77. <super-classes>
  78. <class-ref class="plupload.Runtime"/>
  79. </super-classes>
  80. </class>
  81. <class extends="plupload.Runtime" fullname="plupload.runtimes.Html5" name="Html5" static="true" summary="HMTL5 implementation.">
  82. <description>HMTL5 implementation. This runtime supports these features: dragdrop, jpgresize, pngresize.
  83. </description>
  84. <members>
  85. <method name="init" static="true" summary="Initializes the upload runtime.">
  86. <description>Initializes the upload runtime.
  87. </description>
  88. <param name="uploader" type="plupload.Uploader">
  89. <description>Uploader instance that needs to be initialized.</description>
  90. </param>
  91. <param name="callback" type="function">
  92. <description>Callback to execute when the runtime initializes or fails to initialize. If it succeeds an object with a parameter name success will be set to true.</description>
  93. </param>
  94. </method>
  95. </members>
  96. <super-classes>
  97. <class-ref class="plupload.Runtime"/>
  98. </super-classes>
  99. </class>
  100. <class extends="plupload.Runtime" fullname="plupload.runtimes.Silverlight" name="Silverlight" static="true" summary="Silverlight implementation.">
  101. <description>Silverlight implementation. This runtime supports these features: jpgresize, pngresize, chunks.
  102. </description>
  103. <members>
  104. <method name="init" static="true" summary="Initializes the upload runtime.">
  105. <description>Initializes the upload runtime. This runtime supports these features: jpgresize, pngresize, chunks.
  106. </description>
  107. <param name="uploader" type="plupload.Uploader">
  108. <description>Uploader instance that needs to be initialized.</description>
  109. </param>
  110. <param name="callback" type="function">
  111. <description>Callback to execute when the runtime initializes or fails to initialize. If it succeeds an object with a parameter name success will be set to true.</description>
  112. </param>
  113. </method>
  114. </members>
  115. <super-classes>
  116. <class-ref class="plupload.Runtime"/>
  117. </super-classes>
  118. </class>
  119. </namespace>
  120. <class fullname="plupload.Uploader" name="Uploader" summary="Uploader class, an instance of this class will be created for each upload field.">
  121. <description>Uploader class, an instance of this class will be created for each upload field.
  122. </description>
  123. <example>
  124. <example>var uploader = new plupload.Uploader({
  125. runtimes : 'gears,html5,flash',
  126. browse_button : 'button_id'
  127. });
  128. uploader.bind('Init', function(up) {
  129. alert('Supports drag/drop: ' + (!!up.features.dragdrop));
  130. });
  131. uploader.bind('FilesAdded', function(up, files) {
  132. alert('Selected files: ' + files.length);
  133. });
  134. uploader.bind('QueueChanged', function(up) {
  135. alert('Queued files: ' + uploader.files.length);
  136. });
  137. uploader.init();</example>
  138. </example>
  139. <members>
  140. <method constructor="true" name="Uploader" summary="Constructs a new uploader instance.">
  141. <description>Constructs a new uploader instance.
  142. </description>
  143. <param name="settings" type="Object">
  144. <description>Initialization settings, to be used by the uploader instance and runtimes.</description>
  145. </param>
  146. </method>
  147. <property name="state" summary="Current state of the total uploading progress." type="Number">
  148. <description>Current state of the total uploading progress. This one can either be plupload.STARTED or plupload.STOPPED.
  149. These states are controlled by the stop/start methods. The default value is STOPPED.
  150. </description>
  151. </property>
  152. <property name="runtime" summary="Current runtime name." type="String">
  153. <description>Current runtime name.
  154. </description>
  155. </property>
  156. <property name="features" summary="Map of features that are available for the uploader runtime." type="Object">
  157. <description>Map of features that are available for the uploader runtime. Features will be filled
  158. before the init event is called, these features can then be used to alter the UI for the end user.
  159. Some of the current features that might be in this map is: dragdrop, chunks, jpgresize, pngresize.
  160. </description>
  161. </property>
  162. <property name="files" summary="Current upload queue, an array of File instances." type="Array">
  163. <description>Current upload queue, an array of File instances.
  164. </description>
  165. <see class="plupload.File"/>
  166. </property>
  167. <property name="settings" summary="Object with name/value settings." type="Object">
  168. <description>Object with name/value settings.
  169. </description>
  170. </property>
  171. <property name="total" summary="Total progess information." type="plupload.QueueProgress">
  172. <description>Total progess information. How many files has been uploaded, total percent etc.
  173. </description>
  174. </property>
  175. <property name="id" summary="Unique id for the Uploader instance." type="String">
  176. <description>Unique id for the Uploader instance.
  177. </description>
  178. </property>
  179. <method name="init" summary="Initializes the Uploader instance and adds internal event listeners.">
  180. <description>Initializes the Uploader instance and adds internal event listeners.
  181. </description>
  182. </method>
  183. <method name="refresh" summary="Refreshes the upload instance by dispatching out a refresh event to all runtimes.">
  184. <description>Refreshes the upload instance by dispatching out a refresh event to all runtimes.
  185. This would for example reposition flash/silverlight shims on the page.
  186. </description>
  187. </method>
  188. <method name="start" summary="Starts uploading the queued files.">
  189. <description>Starts uploading the queued files.
  190. </description>
  191. </method>
  192. <method name="stop" summary="Stops the upload of the queued files.">
  193. <description>Stops the upload of the queued files.
  194. </description>
  195. </method>
  196. <method name="getFile" summary="Returns the specified file object by id.">
  197. <description>Returns the specified file object by id.
  198. </description>
  199. <param name="id" type="String">
  200. <description>File id to look for.</description>
  201. </param>
  202. <return type="plupload.File">
  203. <description>File object or undefined if it wasn't found;</description>
  204. </return>
  205. </method>
  206. <method name="removeFile" summary="Removes a specific file.">
  207. <description>Removes a specific file.
  208. </description>
  209. <param name="file" type="plupload.File">
  210. <description>File to remove from queue.</description>
  211. </param>
  212. </method>
  213. <method name="splice" summary="Removes part of the queue and returns the files removed.">
  214. <description>Removes part of the queue and returns the files removed. This will also trigger the FilesRemoved and QueueChanged events.
  215. </description>
  216. <param name="start" type="Number">
  217. <description>(Optional) Start index to remove from.</description>
  218. </param>
  219. <param name="length" type="Number">
  220. <description>(Optional) Lengh of items to remove.</description>
  221. </param>
  222. <return type="Array">
  223. <description>Array of files that was removed.</description>
  224. </return>
  225. </method>
  226. <method name="trigger" summary="Dispatches the specified event name and it's arguments to all listeners.">
  227. <description>Dispatches the specified event name and it's arguments to all listeners.
  228. </description>
  229. <param name="name" type="String">
  230. <description>Event name to fire.</description>
  231. </param>
  232. <param name="Multiple" type="Object..">
  233. <description>arguments to pass along to the listener functions.</description>
  234. </param>
  235. </method>
  236. <method name="bind" summary="Adds an event listener by name.">
  237. <description>Adds an event listener by name.
  238. </description>
  239. <param name="name" type="String">
  240. <description>Event name to listen for.</description>
  241. </param>
  242. <param name="func" type="function">
  243. <description>Function to call ones the event gets fired.</description>
  244. </param>
  245. <param name="scope" type="Object">
  246. <description>Optional scope to execute the specified function in.</description>
  247. </param>
  248. </method>
  249. <method name="unbind" summary="Removes the specified event listener.">
  250. <description>Removes the specified event listener.
  251. </description>
  252. <param name="name" type="String">
  253. <description>Name of event to remove.</description>
  254. </param>
  255. <param name="func" type="function">
  256. <description>Function to remove from listener.</description>
  257. </param>
  258. </method>
  259. <method name="unbindAll" summary="Removes all event listeners.">
  260. <description>Removes all event listeners.
  261. </description>
  262. </method>
  263. <method name="destroy" summary="Destroys Plupload instance and cleans after itself.">
  264. <description>Destroys Plupload instance and cleans after itself.
  265. </description>
  266. </method>
  267. <event name="Init" summary="Fires when the current RunTime has been initialized.">
  268. <description>Fires when the current RunTime has been initialized.
  269. </description>
  270. <param name="uploader" type="plupload.Uploader">
  271. <description>Uploader instance sending the event.</description>
  272. </param>
  273. </event>
  274. <event name="PostInit" summary="Fires after the init event incase you need to perform actions there.">
  275. <description>Fires after the init event incase you need to perform actions there.
  276. </description>
  277. <param name="uploader" type="plupload.Uploader">
  278. <description>Uploader instance sending the event.</description>
  279. </param>
  280. </event>
  281. <event name="Refresh" summary="Fires when the silverlight/flash or other shim needs to move.">
  282. <description>Fires when the silverlight/flash or other shim needs to move.
  283. </description>
  284. <param name="uploader" type="plupload.Uploader">
  285. <description>Uploader instance sending the event.</description>
  286. </param>
  287. </event>
  288. <event name="StateChanged" summary="Fires when the overall state is being changed for the upload queue.">
  289. <description>Fires when the overall state is being changed for the upload queue.
  290. </description>
  291. <param name="uploader" type="plupload.Uploader">
  292. <description>Uploader instance sending the event.</description>
  293. </param>
  294. </event>
  295. <event name="UploadFile" summary="Fires when a file is to be uploaded by the runtime.">
  296. <description>Fires when a file is to be uploaded by the runtime.
  297. </description>
  298. <param name="uploader" type="plupload.Uploader">
  299. <description>Uploader instance sending the event.</description>
  300. </param>
  301. <param name="file" type="plupload.File">
  302. <description>File to be uploaded.</description>
  303. </param>
  304. </event>
  305. <event name="BeforeUpload" summary="Fires when just before a file is uploaded.">
  306. <description>Fires when just before a file is uploaded. This event enables you to override settings
  307. on the uploader instance before the file is uploaded.
  308. </description>
  309. <param name="uploader" type="plupload.Uploader">
  310. <description>Uploader instance sending the event.</description>
  311. </param>
  312. <param name="file" type="plupload.File">
  313. <description>File to be uploaded.</description>
  314. </param>
  315. </event>
  316. <event name="QueueChanged" summary="Fires when the file queue is changed.">
  317. <description>Fires when the file queue is changed. In other words when files are added/removed to the files array of the uploader instance.
  318. </description>
  319. <param name="uploader" type="plupload.Uploader">
  320. <description>Uploader instance sending the event.</description>
  321. </param>
  322. </event>
  323. <event name="UploadProgress" summary="Fires while a file is being uploaded.">
  324. <description>Fires while a file is being uploaded. Use this event to update the current file upload progress.
  325. </description>
  326. <param name="uploader" type="plupload.Uploader">
  327. <description>Uploader instance sending the event.</description>
  328. </param>
  329. <param name="file" type="plupload.File">
  330. <description>File that is currently being uploaded.</description>
  331. </param>
  332. </event>
  333. <event name="FilesRemoved" summary="Fires while a file was removed from queue.">
  334. <description>Fires while a file was removed from queue.
  335. </description>
  336. <param name="uploader" type="plupload.Uploader">
  337. <description>Uploader instance sending the event.</description>
  338. </param>
  339. <param name="files" type="Array">
  340. <description>Array of files that got removed.</description>
  341. </param>
  342. </event>
  343. <event name="FilesAdded" summary="Fires while when the user selects files to upload.">
  344. <description>Fires while when the user selects files to upload.
  345. </description>
  346. <param name="uploader" type="plupload.Uploader">
  347. <description>Uploader instance sending the event.</description>
  348. </param>
  349. <param name="files" type="Array">
  350. <description>Array of file objects that was added to queue/selected by the user.</description>
  351. </param>
  352. </event>
  353. <event name="FileUploaded" summary="Fires when a file is successfully uploaded.">
  354. <description>Fires when a file is successfully uploaded.
  355. </description>
  356. <param name="uploader" type="plupload.Uploader">
  357. <description>Uploader instance sending the event.</description>
  358. </param>
  359. <param name="file" type="plupload.File">
  360. <description>File that was uploaded.</description>
  361. </param>
  362. <param name="response" type="Object">
  363. <description>Object with response properties.</description>
  364. </param>
  365. </event>
  366. <event name="ChunkUploaded" summary="Fires when file chunk is uploaded.">
  367. <description>Fires when file chunk is uploaded.
  368. </description>
  369. <param name="uploader" type="plupload.Uploader">
  370. <description>Uploader instance sending the event.</description>
  371. </param>
  372. <param name="file" type="plupload.File">
  373. <description>File that the chunk was uploaded for.</description>
  374. </param>
  375. <param name="response" type="Object">
  376. <description>Object with response properties.</description>
  377. </param>
  378. </event>
  379. <event name="UploadComplete" summary="Fires when all files in a queue are uploaded.">
  380. <description>Fires when all files in a queue are uploaded.
  381. </description>
  382. <param name="uploader" type="plupload.Uploader">
  383. <description>Uploader instance sending the event.</description>
  384. </param>
  385. <param name="files" type="Array">
  386. <description>Array of file objects that was added to queue/selected by the user.</description>
  387. </param>
  388. </event>
  389. <event name="Error" summary="Fires when a error occurs.">
  390. <description>Fires when a error occurs.
  391. </description>
  392. <param name="uploader" type="plupload.Uploader">
  393. <description>Uploader instance sending the event.</description>
  394. </param>
  395. <param name="error" type="Object">
  396. <description>Contains code, message and sometimes file and other details.</description>
  397. </param>
  398. </event>
  399. <event name="Destroy" summary="Fires when destroy method is called.">
  400. <description>Fires when destroy method is called.
  401. </description>
  402. <param name="uploader" type="plupload.Uploader">
  403. <description>Uploader instance sending the event.</description>
  404. </param>
  405. </event>
  406. </members>
  407. </class>
  408. <class fullname="plupload.File" name="File" summary="File instance.">
  409. <description>File instance.
  410. </description>
  411. <param name="name" type="String">
  412. <description>Name of the file.</description>
  413. </param>
  414. <param name="size" type="Number">
  415. <description>File size.</description>
  416. </param>
  417. <members>
  418. <method constructor="true" name="File" summary="Constructs a new file instance.">
  419. <description>Constructs a new file instance.
  420. </description>
  421. <param name="id" type="String">
  422. <description>Unique file id.</description>
  423. </param>
  424. <param name="name" type="String">
  425. <description>File name.</description>
  426. </param>
  427. <param name="size" type="Number">
  428. <description>File size in bytes.</description>
  429. </param>
  430. </method>
  431. <property name="id" summary="File id this is a globally unique id for the specific file." type="String">
  432. <description>File id this is a globally unique id for the specific file.
  433. </description>
  434. </property>
  435. <property name="name" summary="File name for example &quot;myfile." type="String">
  436. <description>File name for example "myfile.gif".
  437. </description>
  438. </property>
  439. <property name="size" summary="File size in bytes." type="Number">
  440. <description>File size in bytes.
  441. </description>
  442. </property>
  443. <property name="loaded" summary="Number of bytes uploaded of the files total size." type="Number">
  444. <description>Number of bytes uploaded of the files total size.
  445. </description>
  446. </property>
  447. <property name="percent" summary="Number of percentage uploaded of the file." type="Number">
  448. <description>Number of percentage uploaded of the file.
  449. </description>
  450. </property>
  451. <property name="status" summary="Status constant matching the plupload states QUEUED, UPLOADING, FAILED, DONE." type="Number">
  452. <description>Status constant matching the plupload states QUEUED, UPLOADING, FAILED, DONE.
  453. </description>
  454. <see class="plupload"/>
  455. </property>
  456. </members>
  457. </class>
  458. <class fullname="plupload.Runtime" name="Runtime" static="true" summary="Runtime class gets implemented by each upload runtime.">
  459. <description>Runtime class gets implemented by each upload runtime.
  460. </description>
  461. <members>
  462. <method name="init" static="true" summary="Initializes the upload runtime.">
  463. <description>Initializes the upload runtime. This method should add necessary items to the DOM and register events needed for operation.
  464. </description>
  465. <param name="uploader" type="plupload.Uploader">
  466. <description>Uploader instance that needs to be initialized.</description>
  467. </param>
  468. <param name="callback" type="function">
  469. <description>Callback function to execute when the runtime initializes or fails to initialize. If it succeeds an object with a parameter name success will be set to true.</description>
  470. </param>
  471. </method>
  472. </members>
  473. </class>
  474. <class fullname="plupload.QueueProgress" name="QueueProgress" summary="Runtime class gets implemented by each upload runtime.">
  475. <description>Runtime class gets implemented by each upload runtime.
  476. </description>
  477. <members>
  478. <method constructor="true" name="QueueProgress" summary="Constructs a queue progress.">
  479. <description>Constructs a queue progress.
  480. </description>
  481. </method>
  482. <property name="size" summary="Total queue file size." type="Number">
  483. <description>Total queue file size.
  484. </description>
  485. </property>
  486. <property name="loaded" summary="Total bytes uploaded." type="Number">
  487. <description>Total bytes uploaded.
  488. </description>
  489. </property>
  490. <property name="uploaded" summary="Number of files uploaded." type="Number">
  491. <description>Number of files uploaded.
  492. </description>
  493. </property>
  494. <property name="failed" summary="Number of files failed to upload." type="Number">
  495. <description>Number of files failed to upload.
  496. </description>
  497. </property>
  498. <property name="queued" summary="Number of files yet to be uploaded." type="Number">
  499. <description>Number of files yet to be uploaded.
  500. </description>
  501. </property>
  502. <property name="percent" summary="Total percent of the uploaded bytes." type="Number">
  503. <description>Total percent of the uploaded bytes.
  504. </description>
  505. </property>
  506. <property name="bytesPerSec" summary="Bytes uploaded per second." type="Number">
  507. <description>Bytes uploaded per second.
  508. </description>
  509. </property>
  510. <method name="reset" summary="Resets the progress to it's initial values.">
  511. <description>Resets the progress to it's initial values.
  512. </description>
  513. </method>
  514. </members>
  515. </class>
  516. </namespace>
  517. <class fullname="plupload" name="plupload" static="true" summary="Plupload class with some global constants and functions.">
  518. <description>Plupload class with some global constants and functions.
  519. </description>
  520. <example>
  521. <example>// Encode entities
  522. console.log(plupload.xmlEncode("My string &amp;lt;&amp;gt;"));
  523. // Generate unique id
  524. console.log(plupload.guid());</example>
  525. </example>
  526. <members>
  527. <property final="true" name="STOPPED" static="true" summary="Inital state of the queue and also the state ones it's finished all it's uploads." type="Object">
  528. <description>Inital state of the queue and also the state ones it's finished all it's uploads.
  529. </description>
  530. </property>
  531. <property final="true" name="STARTED" static="true" summary="Upload process is running" type="Object">
  532. <description>Upload process is running
  533. </description>
  534. </property>
  535. <property final="true" name="QUEUED" static="true" summary="File is queued for upload" type="Object">
  536. <description>File is queued for upload
  537. </description>
  538. </property>
  539. <property final="true" name="UPLOADING" static="true" summary="File is being uploaded" type="Object">
  540. <description>File is being uploaded
  541. </description>
  542. </property>
  543. <property final="true" name="FAILED" static="true" summary="File has failed to be uploaded" type="Object">
  544. <description>File has failed to be uploaded
  545. </description>
  546. </property>
  547. <property final="true" name="DONE" static="true" summary="File has been uploaded successfully" type="Object">
  548. <description>File has been uploaded successfully
  549. </description>
  550. </property>
  551. <property final="true" name="GENERIC_ERROR" static="true" summary="Generic error for example if an exception is thrown inside Silverlight." type="Object">
  552. <description>Generic error for example if an exception is thrown inside Silverlight.
  553. </description>
  554. </property>
  555. <property final="true" name="HTTP_ERROR" static="true" summary="HTTP transport error." type="Object">
  556. <description>HTTP transport error. For example if the server produces a HTTP status other than 200.
  557. </description>
  558. </property>
  559. <property final="true" name="IO_ERROR" static="true" summary="Generic I/O error." type="Object">
  560. <description>Generic I/O error. For exampe if it wasn't possible to open the file stream on local machine.
  561. </description>
  562. </property>
  563. <property final="true" name="SECURITY_ERROR" static="true" summary="Generic I/O error." type="Object">
  564. <description>Generic I/O error. For exampe if it wasn't possible to open the file stream on local machine.
  565. </description>
  566. </property>
  567. <property final="true" name="INIT_ERROR" static="true" summary="Initialization error." type="Object">
  568. <description>Initialization error. Will be triggered if no runtime was initialized.
  569. </description>
  570. </property>
  571. <property final="true" name="FILE_SIZE_ERROR" static="true" summary="File size error." type="Object">
  572. <description>File size error. If the user selects a file that is to large it will be blocked and an error of this type will be triggered.
  573. </description>
  574. </property>
  575. <property final="true" name="FILE_EXTENSION_ERROR" static="true" summary="File extension error." type="Object">
  576. <description>File extension error. If the user selects a file that isn't valid according to the filters setting.
  577. </description>
  578. </property>
  579. <property final="true" name="mimeTypes" static="true" summary="Mime type lookup table." type="Object">
  580. <description>Mime type lookup table.
  581. </description>
  582. </property>
  583. <method name="extend" static="true" summary="Extends the specified object with another object.">
  584. <description>Extends the specified object with another object.
  585. </description>
  586. <param name="target" type="Object">
  587. <description>Object to extend.</description>
  588. </param>
  589. <param name="obj" type="Object..">
  590. <description>Multiple objects to extend with.</description>
  591. </param>
  592. <return type="Object">
  593. <description>Same as target, the extended object.</description>
  594. </return>
  595. </method>
  596. <method name="cleanName" static="true" summary="Cleans the specified name from national characters (diacritics).">
  597. <description>Cleans the specified name from national characters (diacritics). The result will be a name with only a-z, 0-9 and _.
  598. </description>
  599. <param name="s" type="String">
  600. <description>String to clean up.</description>
  601. </param>
  602. <return type="String">
  603. <description>Cleaned string.</description>
  604. </return>
  605. </method>
  606. <method name="addRuntime" static="true" summary="Adds a specific upload runtime like for example flash or gears.">
  607. <description>Adds a specific upload runtime like for example flash or gears.
  608. </description>
  609. <param name="name" type="String">
  610. <description>Runtime name for example flash.</description>
  611. </param>
  612. <param name="obj" type="Object">
  613. <description>Object containing init/destroy method.</description>
  614. </param>
  615. </method>
  616. <method name="guid" static="true" summary="Generates an unique ID.">
  617. <description>Generates an unique ID. This is 99.99% unique since it takes the current time and 5 random numbers.
  618. The only way a user would be able to get the same ID is if the two persons at the same exact milisecond manages
  619. to get 5 the same random numbers between 0-65535 it also uses a counter so each call will be guaranteed to be page unique.
  620. It's more probable for the earth to be hit with an ansteriod. You can also if you want to be 100% sure set the plupload.guidPrefix property
  621. to an user unique key.
  622. </description>
  623. <return type="String">
  624. <description>Virtually unique id.</description>
  625. </return>
  626. </method>
  627. <method name="formatSize" static="true" summary="Formats the specified number as a size string for example 1024 becomes 1 KB.">
  628. <description>Formats the specified number as a size string for example 1024 becomes 1 KB.
  629. </description>
  630. <param name="size" type="Number">
  631. <description>Size to format as string.</description>
  632. </param>
  633. <return type="String">
  634. <description>Formatted size string.</description>
  635. </return>
  636. </method>
  637. <method name="getPos" static="true" summary="Returns the absolute x, y position of an Element.">
  638. <description>Returns the absolute x, y position of an Element. The position will be returned in a object with x, y fields.
  639. </description>
  640. <param name="node" type="Element">
  641. <description>HTML element or element id to get x, y position from.</description>
  642. </param>
  643. <param name="root" type="Element">
  644. <description>Optional root element to stop calculations at.</description>
  645. </param>
  646. <return type="object">
  647. <description>Absolute position of the specified element object with x, y fields.</description>
  648. </return>
  649. </method>
  650. <method name="parseSize" static="true" summary="Parses the specified size string into a byte value.">
  651. <description>Parses the specified size string into a byte value. For example 10kb becomes 10240.
  652. </description>
  653. <param name="size">
  654. <type fullname="String"/>
  655. <type fullname="Number"/>
  656. <description>String to parse or number to just pass through.</description>
  657. </param>
  658. <return type="Number">
  659. <description>Size in bytes.</description>
  660. </return>
  661. </method>
  662. <method name="xmlEncode" static="true" summary="Encodes the specified string.">
  663. <description>Encodes the specified string.
  664. </description>
  665. <param name="s" type="String">
  666. <description>String to encode.</description>
  667. </param>
  668. <return type="String">
  669. <description>Encoded string.</description>
  670. </return>
  671. </method>
  672. <method name="toArray" static="true" summary="Forces anything into an array.">
  673. <description>Forces anything into an array.
  674. </description>
  675. <param name="obj" type="Object">
  676. <description>Object with length field.</description>
  677. </param>
  678. <return type="Array">
  679. <description>Array object containing all items.</description>
  680. </return>
  681. </method>
  682. </members>
  683. </class>
  684. </model>