chillerlan-QRCode-Common-Mode.html 34 KB

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