Zend_Barcode-Objects_Details.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Reviewed: no -->
  3. <sect2 id="zend.barcode.objects.details">
  4. <title>Description of shipped barcodes</title>
  5. <para>
  6. You will find below detailed information about all barcode types shipped by default with
  7. Zend Framework.
  8. </para>
  9. <sect3 id="zend.barcode.objects.details.error">
  10. <title>Zend_Barcode_Object_Error</title>
  11. <para>
  12. <inlinegraphic width="400" align="center" valign="middle"
  13. fileref="figures/zend.barcode.objects.details.error.png" format="PNG"/>
  14. </para>
  15. <para>
  16. This barcode is a special case. It is internally used to automatically render
  17. an exception caught by the <classname>Zend_Barcode</classname> component.
  18. </para>
  19. </sect3>
  20. <sect3 id="zend.barcode.objects.details.code25">
  21. <title>Zend_Barcode_Object_Code25</title>
  22. <para>
  23. <inlinegraphic width="152" align="center" valign="middle"
  24. fileref="figures/zend.barcode.objects.details.code25.png" format="PNG"/>
  25. </para>
  26. <itemizedlist>
  27. <listitem>
  28. <para>
  29. <emphasis>Name:</emphasis> Code 25 (or Code 2 of 5 or Code 25 Industrial)
  30. </para>
  31. </listitem>
  32. <listitem>
  33. <para>
  34. <emphasis>Allowed characters:</emphasis> '0123456789'
  35. </para>
  36. </listitem>
  37. <listitem>
  38. <para>
  39. <emphasis>Checksum:</emphasis> optional (modulo 10)
  40. </para>
  41. </listitem>
  42. <listitem>
  43. <para>
  44. <emphasis>Length:</emphasis> variable
  45. </para>
  46. </listitem>
  47. </itemizedlist>
  48. <para>
  49. There are no particular options for this barcode.
  50. </para>
  51. </sect3>
  52. <sect3 id="zend.barcode.objects.details.code25interleaved">
  53. <title>Zend_Barcode_Object_Code25interleaved</title>
  54. <para>
  55. <inlinegraphic width="101" align="center" valign="middle"
  56. fileref="figures/zend.barcode.objects.details.int25.png" format="PNG"/>
  57. </para>
  58. <para>
  59. This barcode extends <classname>Zend_Barcode_Object_Code25</classname>
  60. (Code 2 of 5), and has the same particulars and options, and adds the following:
  61. </para>
  62. <itemizedlist>
  63. <listitem>
  64. <para>
  65. <emphasis>Name:</emphasis> Code 2 of 5 Interleaved
  66. </para>
  67. </listitem>
  68. <listitem>
  69. <para>
  70. <emphasis>Allowed characters:</emphasis> '0123456789'
  71. </para>
  72. </listitem>
  73. <listitem>
  74. <para>
  75. <emphasis>Checksum:</emphasis> optional (modulo 10)
  76. </para>
  77. </listitem>
  78. <listitem>
  79. <para>
  80. <emphasis>Length:</emphasis> variable (always even number of characters)
  81. </para>
  82. </listitem>
  83. </itemizedlist>
  84. <para>
  85. Available options include:
  86. </para>
  87. <table id="zend.barcode.objects.details.code25interleaved.table">
  88. <title>Zend_Barcode_Object_Code25interleaved Options</title>
  89. <tgroup cols="4">
  90. <thead>
  91. <row>
  92. <entry>Option</entry>
  93. <entry>Data Type</entry>
  94. <entry>Default Value</entry>
  95. <entry>Description</entry>
  96. </row>
  97. </thead>
  98. <tbody>
  99. <row>
  100. <entry><emphasis>withBearerBars</emphasis></entry>
  101. <entry><type>Boolean</type></entry>
  102. <entry><constant>FALSE</constant></entry>
  103. <entry>
  104. Draw a thick bar at the top and the bottom of the barcode.
  105. </entry>
  106. </row>
  107. </tbody>
  108. </tgroup>
  109. </table>
  110. <note>
  111. <para>
  112. If the number of characters is not even,
  113. <classname>Zend_Barcode_Object_Code25interleaved</classname> will automatically
  114. prepend the missing zero to the barcode text.
  115. </para>
  116. </note>
  117. </sect3>
  118. <sect3 id="zend.barcode.objects.details.code39">
  119. <title>Zend_Barcode_Object_Code39</title>
  120. <para>
  121. <inlinegraphic width="275" align="center" valign="middle"
  122. fileref="figures/zend.barcode.introduction.example-1.png" format="PNG"/>
  123. </para>
  124. <itemizedlist>
  125. <listitem>
  126. <para>
  127. <emphasis>Name:</emphasis> Code 39
  128. </para>
  129. </listitem>
  130. <listitem>
  131. <para>
  132. <emphasis>Allowed characters:</emphasis>
  133. '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ -.$/+%'
  134. </para>
  135. </listitem>
  136. <listitem>
  137. <para>
  138. <emphasis>Checksum:</emphasis> optional (modulo 43)
  139. </para>
  140. </listitem>
  141. <listitem>
  142. <para>
  143. <emphasis>Length:</emphasis> variable
  144. </para>
  145. </listitem>
  146. </itemizedlist>
  147. <note>
  148. <para>
  149. <classname>Zend_Barcode_Object_Code39</classname> will automatically add
  150. the start and stop characters ('*') for you.
  151. </para>
  152. </note>
  153. <para>
  154. There are no particular options for this barcode.
  155. </para>
  156. </sect3>
  157. <sect3 id="zend.barcode.objects.details.identcode">
  158. <title>Zend_Barcode_Object_Identcode</title>
  159. <para>
  160. <inlinegraphic width="155" align="center" valign="middle"
  161. fileref="figures/zend.barcode.objects.details.identcode.png" format="PNG"/>
  162. </para>
  163. <para>
  164. This barcode extends <classname>Zend_Barcode_Object_Code25interleaved</classname>
  165. (Code 2 of 5 Interleaved), and inherits some of its capabilities; it also has a few
  166. particulars of its own.
  167. </para>
  168. <itemizedlist>
  169. <listitem>
  170. <para>
  171. <emphasis>Name:</emphasis> Identcode (Deutsche Post Identcode)
  172. </para>
  173. </listitem>
  174. <listitem>
  175. <para>
  176. <emphasis>Allowed characters:</emphasis> '0123456789'
  177. </para>
  178. </listitem>
  179. <listitem>
  180. <para>
  181. <emphasis>Checksum:</emphasis> mandatory (modulo 10 different from Code25)
  182. </para>
  183. </listitem>
  184. <listitem>
  185. <para>
  186. <emphasis>Length:</emphasis> 12 characters (including checksum)
  187. </para>
  188. </listitem>
  189. </itemizedlist>
  190. <para>
  191. There are no particular options for this barcode.
  192. </para>
  193. <note>
  194. <para>
  195. If the number of characters is not equal to 12,
  196. <classname>Zend_Barcode_Object_Identcode</classname> will automatically prepend
  197. missing zeros to the barcode text.
  198. </para>
  199. </note>
  200. </sect3>
  201. <sect3 id="zend.barcode.objects.details.itf14">
  202. <title>Zend_Barcode_Object_Itf14</title>
  203. <para>
  204. <inlinegraphic width="155" align="center" valign="middle"
  205. fileref="figures/zend.barcode.objects.details.itf14.png" format="PNG"/>
  206. </para>
  207. <para>
  208. This barcode extends <classname>Zend_Barcode_Object_Code25interleaved</classname>
  209. (Code 2 of 5 Interleaved), and inherits some of its capabilities; it also has a few
  210. particulars of its own.
  211. </para>
  212. <itemizedlist>
  213. <listitem>
  214. <para>
  215. <emphasis>Name:</emphasis> ITF-14
  216. </para>
  217. </listitem>
  218. <listitem>
  219. <para>
  220. <emphasis>Allowed characters:</emphasis> '0123456789'
  221. </para>
  222. </listitem>
  223. <listitem>
  224. <para>
  225. <emphasis>Checksum:</emphasis> mandatory (modulo 10)
  226. </para>
  227. </listitem>
  228. <listitem>
  229. <para>
  230. <emphasis>Length:</emphasis> 14 characters (including checksum)
  231. </para>
  232. </listitem>
  233. </itemizedlist>
  234. <para>
  235. There are no particular options for this barcode.
  236. </para>
  237. <note>
  238. <para>
  239. If the number of characters is not equal to 14,
  240. <classname>Zend_Barcode_Object_Itf14</classname> will automatically prepend
  241. missing zeros to the barcode text.
  242. </para>
  243. </note>
  244. </sect3>
  245. <sect3 id="zend.barcode.objects.details.leitcode">
  246. <title>Zend_Barcode_Object_Leitcode</title>
  247. <para>
  248. <inlinegraphic width="155" align="center" valign="middle"
  249. fileref="figures/zend.barcode.objects.details.leitcode.png" format="PNG"/>
  250. </para>
  251. <para>
  252. This barcode extends <classname>Zend_Barcode_Object_Identcode</classname>
  253. (Deutsche Post Identcode), and inherits some of its capabilities; it also has a few
  254. particulars of its own.
  255. </para>
  256. <itemizedlist>
  257. <listitem>
  258. <para>
  259. <emphasis>Name:</emphasis> Leitcode (Deutsche Post Leitcode)
  260. </para>
  261. </listitem>
  262. <listitem>
  263. <para>
  264. <emphasis>Allowed characters:</emphasis> '0123456789'
  265. </para>
  266. </listitem>
  267. <listitem>
  268. <para>
  269. <emphasis>Checksum:</emphasis> mandatory (modulo 10 different from Code25)
  270. </para>
  271. </listitem>
  272. <listitem>
  273. <para>
  274. <emphasis>Length:</emphasis> 14 characters (including checksum)
  275. </para>
  276. </listitem>
  277. </itemizedlist>
  278. <para>
  279. There are no particular options for this barcode.
  280. </para>
  281. <note>
  282. <para>
  283. If the number of characters is not equal to 14,
  284. <classname>Zend_Barcode_Object_Leitcode</classname> will automatically
  285. prepend missing zeros to the barcode text.
  286. </para>
  287. </note>
  288. </sect3>
  289. </sect2>