chillerlan-QRCode-Common-Mode.html 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734
  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], self::ECI =&gt; [0, 0, 0]] </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_getLengthBitsForVersion">getLengthBitsForVersion()</a>
  185. <span>
  186. &nbsp;: int </span>
  187. </dt>
  188. <dd>returns the length bits for the version breakpoints 1-9, 10-26 and 27-40</dd>
  189. </dl>
  190. <section class="phpdocumentor-constants">
  191. <h3 class="phpdocumentor-elements__header" id="constants">
  192. Constants
  193. <a href="classes/chillerlan-QRCode-Common-Mode.html#constants" class="headerlink"><i class="fas fa-link"></i></a>
  194. </h3>
  195. <article class="phpdocumentor-element -constant -public ">
  196. <h4 class="phpdocumentor-element__name" id="constant_ALPHANUM">
  197. ALPHANUM
  198. <a href="classes/chillerlan-QRCode-Common-Mode.html#constant_ALPHANUM" class="headerlink"><i class="fas fa-link"></i></a>
  199. </h4>
  200. <aside class="phpdocumentor-element-found-in">
  201. <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>
  202. :
  203. <span class="phpdocumentor-element-found-in__line">28</span>
  204. </aside>
  205. <code class="phpdocumentor-signature phpdocumentor-code ">
  206. <span class="phpdocumentor-signature__visibility">public</span>
  207. <span class="phpdocumentor-signature__type">int</span>
  208. <span class="phpdocumentor-signature__name">ALPHANUM</span>
  209. = <span class="phpdocumentor-signature__default-value">0b10</span>
  210. </code>
  211. </article>
  212. <article class="phpdocumentor-element -constant -public ">
  213. <h4 class="phpdocumentor-element__name" id="constant_BYTE">
  214. BYTE
  215. <a href="classes/chillerlan-QRCode-Common-Mode.html#constant_BYTE" class="headerlink"><i class="fas fa-link"></i></a>
  216. </h4>
  217. <aside class="phpdocumentor-element-found-in">
  218. <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>
  219. :
  220. <span class="phpdocumentor-element-found-in__line">30</span>
  221. </aside>
  222. <code class="phpdocumentor-signature phpdocumentor-code ">
  223. <span class="phpdocumentor-signature__visibility">public</span>
  224. <span class="phpdocumentor-signature__type">int</span>
  225. <span class="phpdocumentor-signature__name">BYTE</span>
  226. = <span class="phpdocumentor-signature__default-value">0b100</span>
  227. </code>
  228. </article>
  229. <article class="phpdocumentor-element -constant -public ">
  230. <h4 class="phpdocumentor-element__name" id="constant_ECI">
  231. ECI
  232. <a href="classes/chillerlan-QRCode-Common-Mode.html#constant_ECI" class="headerlink"><i class="fas fa-link"></i></a>
  233. </h4>
  234. <aside class="phpdocumentor-element-found-in">
  235. <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>
  236. :
  237. <span class="phpdocumentor-element-found-in__line">42</span>
  238. </aside>
  239. <code class="phpdocumentor-signature phpdocumentor-code ">
  240. <span class="phpdocumentor-signature__visibility">public</span>
  241. <span class="phpdocumentor-signature__type">int</span>
  242. <span class="phpdocumentor-signature__name">ECI</span>
  243. = <span class="phpdocumentor-signature__default-value">0b111</span>
  244. </code>
  245. </article>
  246. <article class="phpdocumentor-element -constant -public ">
  247. <h4 class="phpdocumentor-element__name" id="constant_FNC1_FIRST">
  248. FNC1_FIRST
  249. <a href="classes/chillerlan-QRCode-Common-Mode.html#constant_FNC1_FIRST" class="headerlink"><i class="fas fa-link"></i></a>
  250. </h4>
  251. <aside class="phpdocumentor-element-found-in">
  252. <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>
  253. :
  254. <span class="phpdocumentor-element-found-in__line">38</span>
  255. </aside>
  256. <code class="phpdocumentor-signature phpdocumentor-code ">
  257. <span class="phpdocumentor-signature__visibility">public</span>
  258. <span class="phpdocumentor-signature__type">int</span>
  259. <span class="phpdocumentor-signature__name">FNC1_FIRST</span>
  260. = <span class="phpdocumentor-signature__default-value">0b101</span>
  261. </code>
  262. </article>
  263. <article class="phpdocumentor-element -constant -public ">
  264. <h4 class="phpdocumentor-element__name" id="constant_FNC1_SECOND">
  265. FNC1_SECOND
  266. <a href="classes/chillerlan-QRCode-Common-Mode.html#constant_FNC1_SECOND" class="headerlink"><i class="fas fa-link"></i></a>
  267. </h4>
  268. <aside class="phpdocumentor-element-found-in">
  269. <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>
  270. :
  271. <span class="phpdocumentor-element-found-in__line">40</span>
  272. </aside>
  273. <code class="phpdocumentor-signature phpdocumentor-code ">
  274. <span class="phpdocumentor-signature__visibility">public</span>
  275. <span class="phpdocumentor-signature__type">int</span>
  276. <span class="phpdocumentor-signature__name">FNC1_SECOND</span>
  277. = <span class="phpdocumentor-signature__default-value">0b1001</span>
  278. </code>
  279. </article>
  280. <article class="phpdocumentor-element -constant -public ">
  281. <h4 class="phpdocumentor-element__name" id="constant_HANZI">
  282. HANZI
  283. <a href="classes/chillerlan-QRCode-Common-Mode.html#constant_HANZI" class="headerlink"><i class="fas fa-link"></i></a>
  284. </h4>
  285. <aside class="phpdocumentor-element-found-in">
  286. <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>
  287. :
  288. <span class="phpdocumentor-element-found-in__line">34</span>
  289. </aside>
  290. <code class="phpdocumentor-signature phpdocumentor-code ">
  291. <span class="phpdocumentor-signature__visibility">public</span>
  292. <span class="phpdocumentor-signature__type">int</span>
  293. <span class="phpdocumentor-signature__name">HANZI</span>
  294. = <span class="phpdocumentor-signature__default-value">0b1101</span>
  295. </code>
  296. </article>
  297. <article class="phpdocumentor-element -constant -public ">
  298. <h4 class="phpdocumentor-element__name" id="constant_INTERFACES">
  299. INTERFACES
  300. <a href="classes/chillerlan-QRCode-Common-Mode.html#constant_INTERFACES" class="headerlink"><i class="fas fa-link"></i></a>
  301. </h4>
  302. <aside class="phpdocumentor-element-found-in">
  303. <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>
  304. :
  305. <span class="phpdocumentor-element-found-in__line">63</span>
  306. </aside>
  307. <p class="phpdocumentor-summary">Map of data mode =&gt; interface (detection order)</p>
  308. <code class="phpdocumentor-signature phpdocumentor-code ">
  309. <span class="phpdocumentor-signature__visibility">public</span>
  310. <span class="phpdocumentor-signature__type">array&lt;string|int, string&gt;</span>
  311. <span class="phpdocumentor-signature__name">INTERFACES</span>
  312. = <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>
  313. </code>
  314. </article>
  315. <article class="phpdocumentor-element -constant -public ">
  316. <h4 class="phpdocumentor-element__name" id="constant_KANJI">
  317. KANJI
  318. <a href="classes/chillerlan-QRCode-Common-Mode.html#constant_KANJI" class="headerlink"><i class="fas fa-link"></i></a>
  319. </h4>
  320. <aside class="phpdocumentor-element-found-in">
  321. <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>
  322. :
  323. <span class="phpdocumentor-element-found-in__line">32</span>
  324. </aside>
  325. <code class="phpdocumentor-signature phpdocumentor-code ">
  326. <span class="phpdocumentor-signature__visibility">public</span>
  327. <span class="phpdocumentor-signature__type">int</span>
  328. <span class="phpdocumentor-signature__name">KANJI</span>
  329. = <span class="phpdocumentor-signature__default-value">0b1000</span>
  330. </code>
  331. </article>
  332. <article class="phpdocumentor-element -constant -public ">
  333. <h4 class="phpdocumentor-element__name" id="constant_LENGTH_BITS">
  334. LENGTH_BITS
  335. <a href="classes/chillerlan-QRCode-Common-Mode.html#constant_LENGTH_BITS" class="headerlink"><i class="fas fa-link"></i></a>
  336. </h4>
  337. <aside class="phpdocumentor-element-found-in">
  338. <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>
  339. :
  340. <span class="phpdocumentor-element-found-in__line">49</span>
  341. </aside>
  342. <p class="phpdocumentor-summary">mode length bits for the version breakpoints 1-9, 10-26 and 27-40</p>
  343. <code class="phpdocumentor-signature phpdocumentor-code ">
  344. <span class="phpdocumentor-signature__visibility">public</span>
  345. <span class="phpdocumentor-signature__type">mixed</span>
  346. <span class="phpdocumentor-signature__name">LENGTH_BITS</span>
  347. = <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>
  348. </code>
  349. <section class="phpdocumentor-description"><p>ISO/IEC 18004:2000 Table 3 - Number of bits in Character Count Indicator</p>
  350. </section>
  351. <section class="phpdocumentor-description"></section>
  352. </article>
  353. <article class="phpdocumentor-element -constant -public ">
  354. <h4 class="phpdocumentor-element__name" id="constant_NUMBER">
  355. NUMBER
  356. <a href="classes/chillerlan-QRCode-Common-Mode.html#constant_NUMBER" class="headerlink"><i class="fas fa-link"></i></a>
  357. </h4>
  358. <aside class="phpdocumentor-element-found-in">
  359. <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>
  360. :
  361. <span class="phpdocumentor-element-found-in__line">26</span>
  362. </aside>
  363. <code class="phpdocumentor-signature phpdocumentor-code ">
  364. <span class="phpdocumentor-signature__visibility">public</span>
  365. <span class="phpdocumentor-signature__type">int</span>
  366. <span class="phpdocumentor-signature__name">NUMBER</span>
  367. = <span class="phpdocumentor-signature__default-value">0b1</span>
  368. </code>
  369. </article>
  370. <article class="phpdocumentor-element -constant -public ">
  371. <h4 class="phpdocumentor-element__name" id="constant_STRCTURED_APPEND">
  372. STRCTURED_APPEND
  373. <a href="classes/chillerlan-QRCode-Common-Mode.html#constant_STRCTURED_APPEND" class="headerlink"><i class="fas fa-link"></i></a>
  374. </h4>
  375. <aside class="phpdocumentor-element-found-in">
  376. <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>
  377. :
  378. <span class="phpdocumentor-element-found-in__line">36</span>
  379. </aside>
  380. <code class="phpdocumentor-signature phpdocumentor-code ">
  381. <span class="phpdocumentor-signature__visibility">public</span>
  382. <span class="phpdocumentor-signature__type">int</span>
  383. <span class="phpdocumentor-signature__name">STRCTURED_APPEND</span>
  384. = <span class="phpdocumentor-signature__default-value">0b11</span>
  385. </code>
  386. </article>
  387. <article class="phpdocumentor-element -constant -public ">
  388. <h4 class="phpdocumentor-element__name" id="constant_TERMINATOR">
  389. TERMINATOR
  390. <a href="classes/chillerlan-QRCode-Common-Mode.html#constant_TERMINATOR" class="headerlink"><i class="fas fa-link"></i></a>
  391. </h4>
  392. <aside class="phpdocumentor-element-found-in">
  393. <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>
  394. :
  395. <span class="phpdocumentor-element-found-in__line">24</span>
  396. </aside>
  397. <code class="phpdocumentor-signature phpdocumentor-code ">
  398. <span class="phpdocumentor-signature__visibility">public</span>
  399. <span class="phpdocumentor-signature__type">int</span>
  400. <span class="phpdocumentor-signature__name">TERMINATOR</span>
  401. = <span class="phpdocumentor-signature__default-value">0b0</span>
  402. </code>
  403. </article>
  404. </section>
  405. <section class="phpdocumentor-methods">
  406. <h3 class="phpdocumentor-elements__header" id="methods">
  407. Methods
  408. <a href="classes/chillerlan-QRCode-Common-Mode.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  409. </h3>
  410. <article
  411. class="phpdocumentor-element
  412. -method
  413. -public
  414. -static "
  415. >
  416. <h4 class="phpdocumentor-element__name" id="method_getLengthBitsForVersion">
  417. getLengthBitsForVersion()
  418. <a href="classes/chillerlan-QRCode-Common-Mode.html#method_getLengthBitsForVersion" class="headerlink"><i class="fas fa-link"></i></a>
  419. </h4>
  420. <aside class="phpdocumentor-element-found-in">
  421. <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>
  422. :
  423. <span class="phpdocumentor-element-found-in__line">76</span>
  424. </aside>
  425. <p class="phpdocumentor-summary">returns the length bits for the version breakpoints 1-9, 10-26 and 27-40</p>
  426. <code class="phpdocumentor-code phpdocumentor-signature ">
  427. <span class="phpdocumentor-signature__visibility">public</span>
  428. <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>
  429. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  430. <dl class="phpdocumentor-argument-list">
  431. <dt class="phpdocumentor-argument-list__entry">
  432. <span class="phpdocumentor-signature__argument__name">$mode</span>
  433. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  434. </dt>
  435. <dd class="phpdocumentor-argument-list__definition">
  436. <section class="phpdocumentor-description"></section>
  437. </dd>
  438. <dt class="phpdocumentor-argument-list__entry">
  439. <span class="phpdocumentor-signature__argument__name">$version</span>
  440. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  441. </dt>
  442. <dd class="phpdocumentor-argument-list__definition">
  443. <section class="phpdocumentor-description"></section>
  444. </dd>
  445. </dl>
  446. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  447. Tags
  448. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  449. </h5>
  450. <dl class="phpdocumentor-tag-list">
  451. <dt class="phpdocumentor-tag-list__entry">
  452. <span class="phpdocumentor-tag__name">throws</span>
  453. </dt>
  454. <dd class="phpdocumentor-tag-list__definition">
  455. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-QRCodeException.html"><abbr title="\chillerlan\QRCode\QRCodeException">QRCodeException</abbr></a></span>
  456. </dd>
  457. </dl>
  458. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  459. <span class="phpdocumentor-signature__response_type">int</span>
  460. &mdash;
  461. </article>
  462. </section>
  463. <script type="text/javascript">
  464. function loadExternalCodeSnippets(line) {
  465. Array.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach((pre) => {
  466. var src = pre.getAttribute('data-src').replace( /\\/g, '/');
  467. var extension = (src.match(/\.(\w+)$/) || [, ''])[1];
  468. var language = 'php';
  469. var code = document.createElement('code');
  470. code.className = 'language-' + language;
  471. pre.textContent = '';
  472. pre.setAttribute('data-line', line)
  473. code.textContent = 'Loading…';
  474. pre.appendChild(code);
  475. var xhr = new XMLHttpRequest();
  476. xhr.open('GET', src, true);
  477. xhr.onreadystatechange = function () {
  478. if (xhr.readyState == 4) {
  479. if (xhr.status < 400 && xhr.responseText) {
  480. code.textContent = xhr.responseText;
  481. Prism.highlightElement(code);
  482. }
  483. else if (xhr.status >= 400) {
  484. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  485. }
  486. else {
  487. code.textContent = '✖ Error: File does not exist, is empty or trying to view from localhost';
  488. }
  489. }
  490. };
  491. xhr.send(null);
  492. });
  493. }
  494. var modals = document.querySelectorAll("[data-modal]");
  495. modals.forEach(function (trigger) {
  496. trigger.addEventListener("click", function (event) {
  497. //event.preventDefault();
  498. const modal = document.getElementById(trigger.dataset.modal);
  499. modal.classList.add("phpdocumentor-modal__open");
  500. loadExternalCodeSnippets(trigger.dataset.line)
  501. const exits = modal.querySelectorAll("[data-exit-button]");
  502. exits.forEach(function (exit) {
  503. exit.addEventListener("click", function (event) {
  504. event.preventDefault();
  505. modal.classList.remove("phpdocumentor-modal__open");
  506. });
  507. });
  508. });
  509. });
  510. </script>
  511. </article>
  512. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  513. <section class="phpdocumentor-search-results__dialog">
  514. <header class="phpdocumentor-search-results__header">
  515. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  516. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  517. </header>
  518. <section class="phpdocumentor-search-results__body">
  519. <ul class="phpdocumentor-search-results__entries"></ul>
  520. </section>
  521. </section>
  522. </section>
  523. </div>
  524. </div>
  525. <a href="classes/chillerlan-QRCode-Common-Mode.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  526. </main>
  527. <script>
  528. cssVars({});
  529. </script>
  530. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  531. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  532. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  533. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  534. </body>
  535. </html>