Zend_Barcode-Objects_Details.xml 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  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.code39">
  53. <title>Zend_Barcode_Object_Code39</title>
  54. <para>
  55. <inlinegraphic width="275" align="center" valign="middle"
  56. fileref="figures/zend.barcode.introduction.example-1.png" format="PNG"/>
  57. </para>
  58. <itemizedlist>
  59. <listitem>
  60. <para>
  61. <emphasis>Name:</emphasis> Code 39
  62. </para>
  63. </listitem>
  64. <listitem>
  65. <para>
  66. <emphasis>Allowed characters:</emphasis>
  67. '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ -.$/+%'
  68. </para>
  69. </listitem>
  70. <listitem>
  71. <para>
  72. <emphasis>Checksum:</emphasis> optional (modulo 43)
  73. </para>
  74. </listitem>
  75. <listitem>
  76. <para>
  77. <emphasis>Length:</emphasis> variable
  78. </para>
  79. </listitem>
  80. </itemizedlist>
  81. <note>
  82. <para>
  83. <classname>Zend_Barcode_Object_Code39</classname> will automatically add
  84. the start and stop characters ('*') for you.
  85. </para>
  86. </note>
  87. <para>
  88. There are no particular options for this barcode.
  89. </para>
  90. </sect3>
  91. <sect3 id="zend.barcode.objects.details.itf14">
  92. <title>Zend_Barcode_Object_Itf14</title>
  93. <para>
  94. <inlinegraphic width="155" align="center" valign="middle"
  95. fileref="figures/zend.barcode.objects.details.itf14.png" format="PNG"/>
  96. </para>
  97. <para>
  98. This barcode extends <classname>Zend_Barcode_Object_Int25</classname>
  99. (Code 2 of 5 Interleaved), and inherits some of its capabilities; it also has a few
  100. particulars of its own.
  101. </para>
  102. <itemizedlist>
  103. <listitem>
  104. <para>
  105. <emphasis>Name:</emphasis> ITF-14
  106. </para>
  107. </listitem>
  108. <listitem>
  109. <para>
  110. <emphasis>Allowed characters:</emphasis> '0123456789'
  111. </para>
  112. </listitem>
  113. <listitem>
  114. <para>
  115. <emphasis>Checksum:</emphasis> mandatory (modulo 10)
  116. </para>
  117. </listitem>
  118. <listitem>
  119. <para>
  120. <emphasis>Length:</emphasis> 14 characters (including checksum)
  121. </para>
  122. </listitem>
  123. </itemizedlist>
  124. <para>
  125. There are no particular options for this barcode.
  126. </para>
  127. <note>
  128. <para>
  129. If the number of characters is not equal to 14,
  130. <classname>Zend_Barcode_Object_Itf14</classname> will automatically prepend missing
  131. zeros to the barcode text.
  132. </para>
  133. </note>
  134. </sect3>
  135. <sect3 id="zend.barcode.objects.details.int25">
  136. <title>Zend_Barcode_Object_Int25</title>
  137. <para>
  138. <inlinegraphic width="101" align="center" valign="middle"
  139. fileref="figures/zend.barcode.objects.details.int25.png" format="PNG"/>
  140. </para>
  141. <para>
  142. This barcode extends <classname>Zend_Barcode_Object_Code25</classname>
  143. (Code 2 of 5), and has the same particulars and options, and adds the following:.
  144. </para>
  145. <itemizedlist>
  146. <listitem>
  147. <para>
  148. <emphasis>Name:</emphasis> Code 2 of 5 Interleaved
  149. </para>
  150. </listitem>
  151. <listitem>
  152. <para>
  153. <emphasis>Allowed characters:</emphasis> '0123456789'
  154. </para>
  155. </listitem>
  156. <listitem>
  157. <para>
  158. <emphasis>Checksum:</emphasis> optional (modulo 10)
  159. </para>
  160. </listitem>
  161. <listitem>
  162. <para>
  163. <emphasis>Length:</emphasis> variable (always even number of characters)
  164. </para>
  165. </listitem>
  166. </itemizedlist>
  167. <para>
  168. Available options include:
  169. </para>
  170. <table id="zend.barcode.objects.details.int25.table">
  171. <title>Zend_Barcode_Object_Int25 Options</title>
  172. <tgroup cols="4">
  173. <thead>
  174. <row>
  175. <entry>Option</entry>
  176. <entry>Data Type</entry>
  177. <entry>Default Value</entry>
  178. <entry>Description</entry>
  179. </row>
  180. </thead>
  181. <tbody>
  182. <row>
  183. <entry><emphasis>withBearerBars</emphasis></entry>
  184. <entry><type>Boolean</type></entry>
  185. <entry><constant>FALSE</constant></entry>
  186. <entry>
  187. Draw a thick bar at the top and the bottom of the barcode.
  188. </entry>
  189. </row>
  190. </tbody>
  191. </tgroup>
  192. </table>
  193. <note>
  194. <para>
  195. If the number of characters is not even,
  196. <classname>Zend_Barcode_Object_Int25</classname> will automatically prepend the
  197. missing zero to the barcode text.
  198. </para>
  199. </note>
  200. </sect3>
  201. </sect2>