chillerlan-QRCode-Common-Mode.html 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749
  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 rel="preconnect" href="https://fonts.gstatic.com">
  12. <link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap" rel="stylesheet">
  13. <link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
  14. <link rel="stylesheet" href="css/template.css">
  15. <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" />
  16. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
  17. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
  18. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
  19. <script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
  20. <script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
  21. <script src="js/search.js"></script>
  22. <script defer src="js/searchIndex.js"></script>
  23. </head>
  24. <body id="top">
  25. <header class="phpdocumentor-header phpdocumentor-section">
  26. <h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
  27. <input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
  28. <label class="phpdocumentor-header__menu-icon" for="menu-button">
  29. <i class="fas fa-bars"></i>
  30. </label>
  31. <section data-search-form class="phpdocumentor-search">
  32. <label>
  33. <span class="visually-hidden">Search for</span>
  34. <svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  35. <circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
  36. <line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
  37. </svg>
  38. <input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
  39. </label>
  40. </section>
  41. <nav class="phpdocumentor-topnav">
  42. <ul class="phpdocumentor-topnav__menu">
  43. <li class="phpdocumentor-topnav__menu-item -menu">
  44. <a href="https://php-qrcode.readthedocs.io">
  45. <span>
  46. User Manual
  47. </span>
  48. </a>
  49. </li>
  50. <li class="phpdocumentor-topnav__menu-item -social">
  51. <a href="https://github.com/chillerlan/php-qrcode">
  52. <span>
  53. <i class="fab fa-github"></i>
  54. </span>
  55. </a>
  56. </li>
  57. </ul>
  58. </nav>
  59. </header>
  60. <main class="phpdocumentor">
  61. <div class="phpdocumentor-section">
  62. <input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
  63. <label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
  64. Menu
  65. </label>
  66. <aside class="phpdocumentor-column -four phpdocumentor-sidebar">
  67. <section class="phpdocumentor-sidebar__category">
  68. <h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
  69. <h4 class="phpdocumentor-sidebar__root-namespace">
  70. <a href="namespaces/chillerlan.html" class="">chillerlan</a>
  71. </h4>
  72. <ul class="phpdocumentor-list">
  73. <li>
  74. <a href="namespaces/chillerlan-qrcode.html" class="">QRCode</a>
  75. </li>
  76. <li>
  77. <a href="namespaces/chillerlan-qrcodetest.html" class="">QRCodeTest</a>
  78. </li>
  79. </ul>
  80. </section>
  81. <section class="phpdocumentor-sidebar__category">
  82. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  83. <h4 class="phpdocumentor-sidebar__root-namespace">
  84. <a href="packages/Application.html" class="">Application</a>
  85. </h4>
  86. </section>
  87. <section class="phpdocumentor-sidebar__category">
  88. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  89. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  90. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  91. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  92. </section>
  93. <section class="phpdocumentor-sidebar__category">
  94. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  95. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  96. </section>
  97. </aside>
  98. <div class="phpdocumentor-column -eight phpdocumentor-content">
  99. <ul class="phpdocumentor-breadcrumbs">
  100. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  101. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode.html">QRCode</a></li>
  102. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode-common.html">Common</a></li>
  103. </ul>
  104. <article class="phpdocumentor-element -class">
  105. <h2 class="phpdocumentor-content__title">
  106. Mode
  107. <div class="phpdocumentor-element__package">
  108. in package
  109. <ul class="phpdocumentor-breadcrumbs">
  110. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  111. </ul>
  112. </div>
  113. </h2>
  114. <aside class="phpdocumentor-element-found-in">
  115. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/Mode.php"><a href="files/src-common-mode.html"><abbr title="src/Common/Mode.php">Mode.php</abbr></a></abbr>
  116. :
  117. <span class="phpdocumentor-element-found-in__line">19</span>
  118. </aside>
  119. <p class="phpdocumentor-summary">Data mode information - ISO 18004:2006, 6.4.1, Tables 2 and 3</p>
  120. <h3 id="toc">
  121. Table of Contents
  122. <a href="#toc" class="headerlink"><i class="fas fa-link"></i></a>
  123. </h3>
  124. <dl class="phpdocumentor-table-of-contents">
  125. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  126. <a href="classes/chillerlan-QRCode-Common-Mode.html#constant_ALPHANUM">ALPHANUM</a>
  127. <span>
  128. &nbsp;= 0b10 </span>
  129. </dt>
  130. <dd></dd>
  131. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  132. <a href="classes/chillerlan-QRCode-Common-Mode.html#constant_BYTE">BYTE</a>
  133. <span>
  134. &nbsp;= 0b100 </span>
  135. </dt>
  136. <dd></dd>
  137. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  138. <a href="classes/chillerlan-QRCode-Common-Mode.html#constant_ECI">ECI</a>
  139. <span>
  140. &nbsp;= 0b111 </span>
  141. </dt>
  142. <dd></dd>
  143. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  144. <a href="classes/chillerlan-QRCode-Common-Mode.html#constant_FNC1_FIRST">FNC1_FIRST</a>
  145. <span>
  146. &nbsp;= 0b101 </span>
  147. </dt>
  148. <dd></dd>
  149. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  150. <a href="classes/chillerlan-QRCode-Common-Mode.html#constant_FNC1_SECOND">FNC1_SECOND</a>
  151. <span>
  152. &nbsp;= 0b1001 </span>
  153. </dt>
  154. <dd></dd>
  155. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  156. <a href="classes/chillerlan-QRCode-Common-Mode.html#constant_HANZI">HANZI</a>
  157. <span>
  158. &nbsp;= 0b1101 </span>
  159. </dt>
  160. <dd></dd>
  161. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  162. <a href="classes/chillerlan-QRCode-Common-Mode.html#constant_INTERFACES">INTERFACES</a>
  163. <span>
  164. &nbsp;= [self::NUMBER =&gt; \chillerlan\QRCode\Data\Number::class, self::ALPHANUM =&gt; \chillerlan\QRCode\Data\AlphaNum::class, self::KANJI =&gt; \chillerlan\QRCode\Data\Kanji::class, self::HANZI =&gt; \chillerlan\QRCode\Data\Hanzi::class, self::BYTE =&gt; \chillerlan\QRCode\Data\Byte::class] </span>
  165. </dt>
  166. <dd>Map of data mode =&gt; interface (detection order)</dd>
  167. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  168. <a href="classes/chillerlan-QRCode-Common-Mode.html#constant_KANJI">KANJI</a>
  169. <span>
  170. &nbsp;= 0b1000 </span>
  171. </dt>
  172. <dd></dd>
  173. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  174. <a href="classes/chillerlan-QRCode-Common-Mode.html#constant_LENGTH_BITS">LENGTH_BITS</a>
  175. <span>
  176. &nbsp;= [self::NUMBER =&gt; [10, 12, 14], self::ALPHANUM =&gt; [9, 11, 13], self::BYTE =&gt; [8, 16, 16], self::KANJI =&gt; [8, 10, 12], self::HANZI =&gt; [8, 10, 12], self::ECI =&gt; [0, 0, 0]] </span>
  177. </dt>
  178. <dd>mode length bits for the version breakpoints 1-9, 10-26 and 27-40</dd>
  179. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  180. <a href="classes/chillerlan-QRCode-Common-Mode.html#constant_NUMBER">NUMBER</a>
  181. <span>
  182. &nbsp;= 0b1 </span>
  183. </dt>
  184. <dd></dd>
  185. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  186. <a href="classes/chillerlan-QRCode-Common-Mode.html#constant_STRCTURED_APPEND">STRCTURED_APPEND</a>
  187. <span>
  188. &nbsp;= 0b11 </span>
  189. </dt>
  190. <dd></dd>
  191. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  192. <a href="classes/chillerlan-QRCode-Common-Mode.html#constant_TERMINATOR">TERMINATOR</a>
  193. <span>
  194. &nbsp;= 0b0 </span>
  195. </dt>
  196. <dd></dd>
  197. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  198. <a href="classes/chillerlan-QRCode-Common-Mode.html#method_getLengthBitsForVersion">getLengthBitsForVersion()</a>
  199. <span>
  200. &nbsp;: int </span>
  201. </dt>
  202. <dd>returns the length bits for the version breakpoints 1-9, 10-26 and 27-40</dd>
  203. </dl>
  204. <section class="phpdocumentor-constants">
  205. <h3 class="phpdocumentor-elements__header" id="constants">
  206. Constants
  207. <a href="classes/chillerlan-QRCode-Common-Mode.html#constants" class="headerlink"><i class="fas fa-link"></i></a>
  208. </h3>
  209. <article class="phpdocumentor-element -constant -public ">
  210. <h4 class="phpdocumentor-element__name" id="constant_ALPHANUM">
  211. ALPHANUM
  212. <a href="classes/chillerlan-QRCode-Common-Mode.html#constant_ALPHANUM" class="headerlink"><i class="fas fa-link"></i></a>
  213. </h4>
  214. <aside class="phpdocumentor-element-found-in">
  215. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/Mode.php"><a href="files/src-common-mode.html"><abbr title="src/Common/Mode.php">Mode.php</abbr></a></abbr>
  216. :
  217. <span class="phpdocumentor-element-found-in__line">28</span>
  218. </aside>
  219. <code class="phpdocumentor-signature phpdocumentor-code ">
  220. <span class="phpdocumentor-signature__visibility">public</span>
  221. <span class="phpdocumentor-signature__type">int</span>
  222. <span class="phpdocumentor-signature__name">ALPHANUM</span>
  223. = <span class="phpdocumentor-signature__default-value">0b10</span>
  224. </code>
  225. </article>
  226. <article class="phpdocumentor-element -constant -public ">
  227. <h4 class="phpdocumentor-element__name" id="constant_BYTE">
  228. BYTE
  229. <a href="classes/chillerlan-QRCode-Common-Mode.html#constant_BYTE" class="headerlink"><i class="fas fa-link"></i></a>
  230. </h4>
  231. <aside class="phpdocumentor-element-found-in">
  232. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/Mode.php"><a href="files/src-common-mode.html"><abbr title="src/Common/Mode.php">Mode.php</abbr></a></abbr>
  233. :
  234. <span class="phpdocumentor-element-found-in__line">30</span>
  235. </aside>
  236. <code class="phpdocumentor-signature phpdocumentor-code ">
  237. <span class="phpdocumentor-signature__visibility">public</span>
  238. <span class="phpdocumentor-signature__type">int</span>
  239. <span class="phpdocumentor-signature__name">BYTE</span>
  240. = <span class="phpdocumentor-signature__default-value">0b100</span>
  241. </code>
  242. </article>
  243. <article class="phpdocumentor-element -constant -public ">
  244. <h4 class="phpdocumentor-element__name" id="constant_ECI">
  245. ECI
  246. <a href="classes/chillerlan-QRCode-Common-Mode.html#constant_ECI" class="headerlink"><i class="fas fa-link"></i></a>
  247. </h4>
  248. <aside class="phpdocumentor-element-found-in">
  249. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/Mode.php"><a href="files/src-common-mode.html"><abbr title="src/Common/Mode.php">Mode.php</abbr></a></abbr>
  250. :
  251. <span class="phpdocumentor-element-found-in__line">42</span>
  252. </aside>
  253. <code class="phpdocumentor-signature phpdocumentor-code ">
  254. <span class="phpdocumentor-signature__visibility">public</span>
  255. <span class="phpdocumentor-signature__type">int</span>
  256. <span class="phpdocumentor-signature__name">ECI</span>
  257. = <span class="phpdocumentor-signature__default-value">0b111</span>
  258. </code>
  259. </article>
  260. <article class="phpdocumentor-element -constant -public ">
  261. <h4 class="phpdocumentor-element__name" id="constant_FNC1_FIRST">
  262. FNC1_FIRST
  263. <a href="classes/chillerlan-QRCode-Common-Mode.html#constant_FNC1_FIRST" class="headerlink"><i class="fas fa-link"></i></a>
  264. </h4>
  265. <aside class="phpdocumentor-element-found-in">
  266. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/Mode.php"><a href="files/src-common-mode.html"><abbr title="src/Common/Mode.php">Mode.php</abbr></a></abbr>
  267. :
  268. <span class="phpdocumentor-element-found-in__line">38</span>
  269. </aside>
  270. <code class="phpdocumentor-signature phpdocumentor-code ">
  271. <span class="phpdocumentor-signature__visibility">public</span>
  272. <span class="phpdocumentor-signature__type">int</span>
  273. <span class="phpdocumentor-signature__name">FNC1_FIRST</span>
  274. = <span class="phpdocumentor-signature__default-value">0b101</span>
  275. </code>
  276. </article>
  277. <article class="phpdocumentor-element -constant -public ">
  278. <h4 class="phpdocumentor-element__name" id="constant_FNC1_SECOND">
  279. FNC1_SECOND
  280. <a href="classes/chillerlan-QRCode-Common-Mode.html#constant_FNC1_SECOND" class="headerlink"><i class="fas fa-link"></i></a>
  281. </h4>
  282. <aside class="phpdocumentor-element-found-in">
  283. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/Mode.php"><a href="files/src-common-mode.html"><abbr title="src/Common/Mode.php">Mode.php</abbr></a></abbr>
  284. :
  285. <span class="phpdocumentor-element-found-in__line">40</span>
  286. </aside>
  287. <code class="phpdocumentor-signature phpdocumentor-code ">
  288. <span class="phpdocumentor-signature__visibility">public</span>
  289. <span class="phpdocumentor-signature__type">int</span>
  290. <span class="phpdocumentor-signature__name">FNC1_SECOND</span>
  291. = <span class="phpdocumentor-signature__default-value">0b1001</span>
  292. </code>
  293. </article>
  294. <article class="phpdocumentor-element -constant -public ">
  295. <h4 class="phpdocumentor-element__name" id="constant_HANZI">
  296. HANZI
  297. <a href="classes/chillerlan-QRCode-Common-Mode.html#constant_HANZI" class="headerlink"><i class="fas fa-link"></i></a>
  298. </h4>
  299. <aside class="phpdocumentor-element-found-in">
  300. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/Mode.php"><a href="files/src-common-mode.html"><abbr title="src/Common/Mode.php">Mode.php</abbr></a></abbr>
  301. :
  302. <span class="phpdocumentor-element-found-in__line">34</span>
  303. </aside>
  304. <code class="phpdocumentor-signature phpdocumentor-code ">
  305. <span class="phpdocumentor-signature__visibility">public</span>
  306. <span class="phpdocumentor-signature__type">int</span>
  307. <span class="phpdocumentor-signature__name">HANZI</span>
  308. = <span class="phpdocumentor-signature__default-value">0b1101</span>
  309. </code>
  310. </article>
  311. <article class="phpdocumentor-element -constant -public ">
  312. <h4 class="phpdocumentor-element__name" id="constant_INTERFACES">
  313. INTERFACES
  314. <a href="classes/chillerlan-QRCode-Common-Mode.html#constant_INTERFACES" class="headerlink"><i class="fas fa-link"></i></a>
  315. </h4>
  316. <aside class="phpdocumentor-element-found-in">
  317. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/Mode.php"><a href="files/src-common-mode.html"><abbr title="src/Common/Mode.php">Mode.php</abbr></a></abbr>
  318. :
  319. <span class="phpdocumentor-element-found-in__line">63</span>
  320. </aside>
  321. <p class="phpdocumentor-summary">Map of data mode =&gt; interface (detection order)</p>
  322. <code class="phpdocumentor-signature phpdocumentor-code ">
  323. <span class="phpdocumentor-signature__visibility">public</span>
  324. <span class="phpdocumentor-signature__type">array&lt;string|int, string&gt;</span>
  325. <span class="phpdocumentor-signature__name">INTERFACES</span>
  326. = <span class="phpdocumentor-signature__default-value">[self::NUMBER =&gt; \chillerlan\QRCode\Data\Number::class, self::ALPHANUM =&gt; \chillerlan\QRCode\Data\AlphaNum::class, self::KANJI =&gt; \chillerlan\QRCode\Data\Kanji::class, self::HANZI =&gt; \chillerlan\QRCode\Data\Hanzi::class, self::BYTE =&gt; \chillerlan\QRCode\Data\Byte::class]</span>
  327. </code>
  328. </article>
  329. <article class="phpdocumentor-element -constant -public ">
  330. <h4 class="phpdocumentor-element__name" id="constant_KANJI">
  331. KANJI
  332. <a href="classes/chillerlan-QRCode-Common-Mode.html#constant_KANJI" class="headerlink"><i class="fas fa-link"></i></a>
  333. </h4>
  334. <aside class="phpdocumentor-element-found-in">
  335. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/Mode.php"><a href="files/src-common-mode.html"><abbr title="src/Common/Mode.php">Mode.php</abbr></a></abbr>
  336. :
  337. <span class="phpdocumentor-element-found-in__line">32</span>
  338. </aside>
  339. <code class="phpdocumentor-signature phpdocumentor-code ">
  340. <span class="phpdocumentor-signature__visibility">public</span>
  341. <span class="phpdocumentor-signature__type">int</span>
  342. <span class="phpdocumentor-signature__name">KANJI</span>
  343. = <span class="phpdocumentor-signature__default-value">0b1000</span>
  344. </code>
  345. </article>
  346. <article class="phpdocumentor-element -constant -public ">
  347. <h4 class="phpdocumentor-element__name" id="constant_LENGTH_BITS">
  348. LENGTH_BITS
  349. <a href="classes/chillerlan-QRCode-Common-Mode.html#constant_LENGTH_BITS" class="headerlink"><i class="fas fa-link"></i></a>
  350. </h4>
  351. <aside class="phpdocumentor-element-found-in">
  352. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/Mode.php"><a href="files/src-common-mode.html"><abbr title="src/Common/Mode.php">Mode.php</abbr></a></abbr>
  353. :
  354. <span class="phpdocumentor-element-found-in__line">49</span>
  355. </aside>
  356. <p class="phpdocumentor-summary">mode length bits for the version breakpoints 1-9, 10-26 and 27-40</p>
  357. <code class="phpdocumentor-signature phpdocumentor-code ">
  358. <span class="phpdocumentor-signature__visibility">public</span>
  359. <span class="phpdocumentor-signature__type">mixed</span>
  360. <span class="phpdocumentor-signature__name">LENGTH_BITS</span>
  361. = <span class="phpdocumentor-signature__default-value">[self::NUMBER =&gt; [10, 12, 14], self::ALPHANUM =&gt; [9, 11, 13], self::BYTE =&gt; [8, 16, 16], self::KANJI =&gt; [8, 10, 12], self::HANZI =&gt; [8, 10, 12], self::ECI =&gt; [0, 0, 0]]</span>
  362. </code>
  363. <section class="phpdocumentor-description"><p>ISO/IEC 18004:2000 Table 3 - Number of bits in Character Count Indicator</p>
  364. </section>
  365. <section class="phpdocumentor-description"></section>
  366. </article>
  367. <article class="phpdocumentor-element -constant -public ">
  368. <h4 class="phpdocumentor-element__name" id="constant_NUMBER">
  369. NUMBER
  370. <a href="classes/chillerlan-QRCode-Common-Mode.html#constant_NUMBER" class="headerlink"><i class="fas fa-link"></i></a>
  371. </h4>
  372. <aside class="phpdocumentor-element-found-in">
  373. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/Mode.php"><a href="files/src-common-mode.html"><abbr title="src/Common/Mode.php">Mode.php</abbr></a></abbr>
  374. :
  375. <span class="phpdocumentor-element-found-in__line">26</span>
  376. </aside>
  377. <code class="phpdocumentor-signature phpdocumentor-code ">
  378. <span class="phpdocumentor-signature__visibility">public</span>
  379. <span class="phpdocumentor-signature__type">int</span>
  380. <span class="phpdocumentor-signature__name">NUMBER</span>
  381. = <span class="phpdocumentor-signature__default-value">0b1</span>
  382. </code>
  383. </article>
  384. <article class="phpdocumentor-element -constant -public ">
  385. <h4 class="phpdocumentor-element__name" id="constant_STRCTURED_APPEND">
  386. STRCTURED_APPEND
  387. <a href="classes/chillerlan-QRCode-Common-Mode.html#constant_STRCTURED_APPEND" class="headerlink"><i class="fas fa-link"></i></a>
  388. </h4>
  389. <aside class="phpdocumentor-element-found-in">
  390. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/Mode.php"><a href="files/src-common-mode.html"><abbr title="src/Common/Mode.php">Mode.php</abbr></a></abbr>
  391. :
  392. <span class="phpdocumentor-element-found-in__line">36</span>
  393. </aside>
  394. <code class="phpdocumentor-signature phpdocumentor-code ">
  395. <span class="phpdocumentor-signature__visibility">public</span>
  396. <span class="phpdocumentor-signature__type">int</span>
  397. <span class="phpdocumentor-signature__name">STRCTURED_APPEND</span>
  398. = <span class="phpdocumentor-signature__default-value">0b11</span>
  399. </code>
  400. </article>
  401. <article class="phpdocumentor-element -constant -public ">
  402. <h4 class="phpdocumentor-element__name" id="constant_TERMINATOR">
  403. TERMINATOR
  404. <a href="classes/chillerlan-QRCode-Common-Mode.html#constant_TERMINATOR" class="headerlink"><i class="fas fa-link"></i></a>
  405. </h4>
  406. <aside class="phpdocumentor-element-found-in">
  407. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/Mode.php"><a href="files/src-common-mode.html"><abbr title="src/Common/Mode.php">Mode.php</abbr></a></abbr>
  408. :
  409. <span class="phpdocumentor-element-found-in__line">24</span>
  410. </aside>
  411. <code class="phpdocumentor-signature phpdocumentor-code ">
  412. <span class="phpdocumentor-signature__visibility">public</span>
  413. <span class="phpdocumentor-signature__type">int</span>
  414. <span class="phpdocumentor-signature__name">TERMINATOR</span>
  415. = <span class="phpdocumentor-signature__default-value">0b0</span>
  416. </code>
  417. </article>
  418. </section>
  419. <section class="phpdocumentor-methods">
  420. <h3 class="phpdocumentor-elements__header" id="methods">
  421. Methods
  422. <a href="classes/chillerlan-QRCode-Common-Mode.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  423. </h3>
  424. <article
  425. class="phpdocumentor-element
  426. -method
  427. -public
  428. -static "
  429. >
  430. <h4 class="phpdocumentor-element__name" id="method_getLengthBitsForVersion">
  431. getLengthBitsForVersion()
  432. <a href="classes/chillerlan-QRCode-Common-Mode.html#method_getLengthBitsForVersion" class="headerlink"><i class="fas fa-link"></i></a>
  433. </h4>
  434. <aside class="phpdocumentor-element-found-in">
  435. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/Mode.php"><a href="files/src-common-mode.html"><abbr title="src/Common/Mode.php">Mode.php</abbr></a></abbr>
  436. :
  437. <span class="phpdocumentor-element-found-in__line">76</span>
  438. </aside>
  439. <p class="phpdocumentor-summary">returns the length bits for the version breakpoints 1-9, 10-26 and 27-40</p>
  440. <code class="phpdocumentor-code phpdocumentor-signature ">
  441. <span class="phpdocumentor-signature__visibility">public</span>
  442. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">getLengthBitsForVersion</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$mode</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$version</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  443. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  444. <dl class="phpdocumentor-argument-list">
  445. <dt class="phpdocumentor-argument-list__entry">
  446. <span class="phpdocumentor-signature__argument__name">$mode</span>
  447. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  448. </dt>
  449. <dd class="phpdocumentor-argument-list__definition">
  450. <section class="phpdocumentor-description"></section>
  451. </dd>
  452. <dt class="phpdocumentor-argument-list__entry">
  453. <span class="phpdocumentor-signature__argument__name">$version</span>
  454. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  455. </dt>
  456. <dd class="phpdocumentor-argument-list__definition">
  457. <section class="phpdocumentor-description"></section>
  458. </dd>
  459. </dl>
  460. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  461. Tags
  462. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  463. </h5>
  464. <dl class="phpdocumentor-tag-list">
  465. <dt class="phpdocumentor-tag-list__entry">
  466. <span class="phpdocumentor-tag__name">throws</span>
  467. </dt>
  468. <dd class="phpdocumentor-tag-list__definition">
  469. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-QRCodeException.html"><abbr title="\chillerlan\QRCode\QRCodeException">QRCodeException</abbr></a></span>
  470. </dd>
  471. </dl>
  472. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  473. <span class="phpdocumentor-signature__response_type">int</span>
  474. &mdash;
  475. </article>
  476. </section>
  477. <script type="text/javascript">
  478. function loadExternalCodeSnippets(line) {
  479. Array.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach((pre) => {
  480. var src = pre.getAttribute('data-src').replace( /\\/g, '/');
  481. var extension = (src.match(/\.(\w+)$/) || [, ''])[1];
  482. var language = 'php';
  483. var code = document.createElement('code');
  484. code.className = 'language-' + language;
  485. pre.textContent = '';
  486. pre.setAttribute('data-line', line)
  487. code.textContent = 'Loading…';
  488. pre.appendChild(code);
  489. var xhr = new XMLHttpRequest();
  490. xhr.open('GET', src, true);
  491. xhr.onreadystatechange = function () {
  492. if (xhr.readyState == 4) {
  493. if (xhr.status < 400 && xhr.responseText) {
  494. code.textContent = xhr.responseText;
  495. Prism.highlightElement(code);
  496. }
  497. else if (xhr.status >= 400) {
  498. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  499. }
  500. else {
  501. code.textContent = '✖ Error: File does not exist, is empty or trying to view from localhost';
  502. }
  503. }
  504. };
  505. xhr.send(null);
  506. });
  507. }
  508. var modals = document.querySelectorAll("[data-modal]");
  509. modals.forEach(function (trigger) {
  510. trigger.addEventListener("click", function (event) {
  511. //event.preventDefault();
  512. const modal = document.getElementById(trigger.dataset.modal);
  513. modal.classList.add("phpdocumentor-modal__open");
  514. loadExternalCodeSnippets(trigger.dataset.line)
  515. const exits = modal.querySelectorAll("[data-exit-button]");
  516. exits.forEach(function (exit) {
  517. exit.addEventListener("click", function (event) {
  518. event.preventDefault();
  519. modal.classList.remove("phpdocumentor-modal__open");
  520. });
  521. });
  522. });
  523. });
  524. </script>
  525. </article>
  526. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  527. <section class="phpdocumentor-search-results__dialog">
  528. <header class="phpdocumentor-search-results__header">
  529. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  530. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  531. </header>
  532. <section class="phpdocumentor-search-results__body">
  533. <ul class="phpdocumentor-search-results__entries"></ul>
  534. </section>
  535. </section>
  536. </section>
  537. </div>
  538. </div>
  539. <a href="classes/chillerlan-QRCode-Common-Mode.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  540. </main>
  541. <script>
  542. cssVars({});
  543. </script>
  544. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  545. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  546. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  547. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  548. </body>
  549. </html>