chillerlan-QRCode-Common-Mode.html 31 KB

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