chillerlan-QRCode-Data-AlphaNum.html 51 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070
  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=Open+Sans:wght@100;200;300;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/template.js"></script>
  22. <script src="js/search.js"></script>
  23. <script defer src="js/searchIndex.js"></script>
  24. </head>
  25. <body id="top">
  26. <header class="phpdocumentor-header phpdocumentor-section">
  27. <h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
  28. <input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
  29. <label class="phpdocumentor-header__menu-icon" for="menu-button">
  30. <i class="fas fa-bars"></i>
  31. </label>
  32. <section data-search-form class="phpdocumentor-search">
  33. <label>
  34. <span class="visually-hidden">Search for</span>
  35. <svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  36. <circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
  37. <line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
  38. </svg>
  39. <input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
  40. </label>
  41. </section>
  42. <nav class="phpdocumentor-topnav">
  43. <ul class="phpdocumentor-topnav__menu">
  44. <li class="phpdocumentor-topnav__menu-item -menu">
  45. <a href="https://php-qrcode.readthedocs.io">
  46. <span>
  47. User Manual
  48. </span>
  49. </a>
  50. </li>
  51. <li class="phpdocumentor-topnav__menu-item -social">
  52. <a href="https://github.com/chillerlan/php-qrcode">
  53. <span>
  54. <i class="fab fa-github"></i>
  55. </span>
  56. </a>
  57. </li>
  58. <li class="phpdocumentor-topnav__menu-item -social">
  59. <a href="https://github.com/chillerlan/php-qrcode/discussions">
  60. <span>
  61. <i class="fas fa-envelope-open-text"></i>
  62. </span>
  63. </a>
  64. </li>
  65. </ul>
  66. </nav>
  67. </header>
  68. <main class="phpdocumentor">
  69. <div class="phpdocumentor-section">
  70. <input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
  71. <label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
  72. Menu
  73. </label>
  74. <aside class="phpdocumentor-column -three phpdocumentor-sidebar">
  75. <section class="phpdocumentor-sidebar__category -namespaces">
  76. <h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
  77. <h4 class="phpdocumentor-sidebar__root-namespace">
  78. <a href="namespaces/chillerlan.html" class="">chillerlan</a>
  79. </h4>
  80. <ul class="phpdocumentor-list">
  81. <li>
  82. <a href="namespaces/chillerlan-qrcode.html" class="">QRCode</a>
  83. </li>
  84. <li>
  85. <a href="namespaces/chillerlan-qrcodetest.html" class="">QRCodeTest</a>
  86. </li>
  87. </ul>
  88. <h4 class="phpdocumentor-sidebar__root-namespace">
  89. <a href="namespaces/output.html" class="">Output</a>
  90. </h4>
  91. </section>
  92. <section class="phpdocumentor-sidebar__category -packages">
  93. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  94. <h4 class="phpdocumentor-sidebar__root-namespace">
  95. <a href="packages/Application.html" class="">Application</a>
  96. </h4>
  97. </section>
  98. <section class="phpdocumentor-sidebar__category -reports">
  99. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  100. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  101. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  102. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  103. </section>
  104. <section class="phpdocumentor-sidebar__category -indices">
  105. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  106. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  107. </section>
  108. </aside>
  109. <div class="phpdocumentor-column -nine phpdocumentor-content">
  110. <section>
  111. <ul class="phpdocumentor-breadcrumbs">
  112. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  113. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode.html">QRCode</a></li>
  114. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode-data.html">Data</a></li>
  115. </ul>
  116. <article class="phpdocumentor-element -class">
  117. <h2 class="phpdocumentor-content__title">
  118. AlphaNum
  119. <span class="phpdocumentor-element__extends">
  120. extends <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html"><abbr title="\chillerlan\QRCode\Data\QRDataModeAbstract">QRDataModeAbstract</abbr></a>
  121. </span>
  122. <div class="phpdocumentor-element__package">
  123. in package
  124. <ul class="phpdocumentor-breadcrumbs">
  125. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  126. </ul>
  127. </div>
  128. </h2>
  129. <div class="phpdocumentor-label-line">
  130. <div class="phpdocumentor-label phpdocumentor-label--success"><span>Final</span><span>Yes</span></div>
  131. </div>
  132. <aside class="phpdocumentor-element-found-in">
  133. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/AlphaNum.php"><a href="files/src-data-alphanum.html"><abbr title="src/Data/AlphaNum.php">AlphaNum.php</abbr></a></abbr>
  134. :
  135. <span class="phpdocumentor-element-found-in__line">22</span>
  136. </aside>
  137. <p class="phpdocumentor-summary">Alphanumeric mode: 0 to 9, A to Z, space, $ % * + - . / :</p>
  138. <section class="phpdocumentor-description"><p>ISO/IEC 18004:2000 Section 8.3.3
  139. ISO/IEC 18004:2000 Section 8.4.3</p>
  140. </section>
  141. <h3 id="toc">
  142. Table of Contents
  143. <a href="classes/chillerlan-QRCode-Data-AlphaNum.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
  144. </h3>
  145. <h4 id="toc-constants">
  146. Constants
  147. <a href="classes/chillerlan-QRCode-Data-AlphaNum.html#toc-constants" class="headerlink"><i class="fas fa-link"></i></a>
  148. </h4>
  149. <dl class="phpdocumentor-table-of-contents">
  150. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  151. <a class="" href="classes/chillerlan-QRCode-Data-AlphaNum.html#constant_DATAMODE">DATAMODE</a>
  152. <span>
  153. &nbsp;= \chillerlan\QRCode\Common\Mode::ALPHANUM </span>
  154. </dt>
  155. <dt class="phpdocumentor-table-of-contents__entry -constant -private">
  156. <a class="" href="classes/chillerlan-QRCode-Data-AlphaNum.html#constant_CHAR_TO_ORD">CHAR_TO_ORD</a>
  157. <span>
  158. &nbsp;= [&#039;0&#039; =&gt; 0, &#039;1&#039; =&gt; 1, &#039;2&#039; =&gt; 2, &#039;3&#039; =&gt; 3, &#039;4&#039; =&gt; 4, &#039;5&#039; =&gt; 5, &#039;6&#039; =&gt; 6, &#039;7&#039; =&gt; 7, &#039;8&#039; =&gt; 8, &#039;9&#039; =&gt; 9, &#039;A&#039; =&gt; 10, &#039;B&#039; =&gt; 11, &#039;C&#039; =&gt; 12, &#039;D&#039; =&gt; 13, &#039;E&#039; =&gt; 14, &#039;F&#039; =&gt; 15, &#039;G&#039; =&gt; 16, &#039;H&#039; =&gt; 17, &#039;I&#039; =&gt; 18, &#039;J&#039; =&gt; 19, &#039;K&#039; =&gt; 20, &#039;L&#039; =&gt; 21, &#039;M&#039; =&gt; 22, &#039;N&#039; =&gt; 23, &#039;O&#039; =&gt; 24, &#039;P&#039; =&gt; 25, &#039;Q&#039; =&gt; 26, &#039;R&#039; =&gt; 27, &#039;S&#039; =&gt; 28, &#039;T&#039; =&gt; 29, &#039;U&#039; =&gt; 30, &#039;V&#039; =&gt; 31, &#039;W&#039; =&gt; 32, &#039;X&#039; =&gt; 33, &#039;Y&#039; =&gt; 34, &#039;Z&#039; =&gt; 35, &#039; &#039; =&gt; 36, &#039;$&#039; =&gt; 37, &#039;%&#039; =&gt; 38, &#039;*&#039; =&gt; 39, &#039;+&#039; =&gt; 40, &#039;-&#039; =&gt; 41, &#039;.&#039; =&gt; 42, &#039;/&#039; =&gt; 43, &#039;:&#039; =&gt; 44] </span>
  159. </dt>
  160. <dd>ISO/IEC 18004:2000 Table 5</dd>
  161. </dl>
  162. <h4 id="toc-properties">
  163. Properties
  164. <a href="classes/chillerlan-QRCode-Data-AlphaNum.html#toc-properties" class="headerlink"><i class="fas fa-link"></i></a>
  165. </h4>
  166. <dl class="phpdocumentor-table-of-contents">
  167. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  168. <a class="" href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#property_data">$data</a>
  169. <span>
  170. &nbsp;: string </span>
  171. </dt>
  172. <dd>The data to write</dd>
  173. </dl>
  174. <h4 id="toc-methods">
  175. Methods
  176. <a href="classes/chillerlan-QRCode-Data-AlphaNum.html#toc-methods" class="headerlink"><i class="fas fa-link"></i></a>
  177. </h4>
  178. <dl class="phpdocumentor-table-of-contents">
  179. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  180. <a class="" href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method___construct">__construct()</a>
  181. <span>
  182. &nbsp;: mixed </span>
  183. </dt>
  184. <dd>QRDataModeAbstract constructor.</dd>
  185. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  186. <a class="" href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method_convertEncoding">convertEncoding()</a>
  187. <span>
  188. &nbsp;: string </span>
  189. </dt>
  190. <dd>encoding conversion helper</dd>
  191. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  192. <a class="" href="classes/chillerlan-QRCode-Data-AlphaNum.html#method_decodeSegment">decodeSegment()</a>
  193. <span>
  194. &nbsp;: string </span>
  195. </dt>
  196. <dd>reads a segment from the BitBuffer and decodes in the current data mode</dd>
  197. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  198. <a class="" href="classes/chillerlan-QRCode-Data-AlphaNum.html#method_getLengthInBits">getLengthInBits()</a>
  199. <span>
  200. &nbsp;: int </span>
  201. </dt>
  202. <dd>retruns the length in bits of the data string</dd>
  203. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  204. <a class="" href="classes/chillerlan-QRCode-Data-AlphaNum.html#method_validateString">validateString()</a>
  205. <span>
  206. &nbsp;: bool </span>
  207. </dt>
  208. <dd>checks if the given string qualifies for the encoder module</dd>
  209. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  210. <a class="" href="classes/chillerlan-QRCode-Data-AlphaNum.html#method_write">write()</a>
  211. <span>
  212. &nbsp;: static </span>
  213. </dt>
  214. <dd>writes the actual data string to the BitBuffer, uses the given version to determine the length bits</dd>
  215. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  216. <a class="" href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method_getCharCount">getCharCount()</a>
  217. <span>
  218. &nbsp;: int </span>
  219. </dt>
  220. <dd>returns the character count of the $data string</dd>
  221. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  222. <a class="" href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method_getLengthBits">getLengthBits()</a>
  223. <span>
  224. &nbsp;: int </span>
  225. </dt>
  226. <dd>shortcut</dd>
  227. </dl>
  228. <section class="phpdocumentor-constants">
  229. <h3 class="phpdocumentor-elements__header" id="constants">
  230. Constants
  231. <a href="classes/chillerlan-QRCode-Data-AlphaNum.html#constants" class="headerlink"><i class="fas fa-link"></i></a>
  232. </h3>
  233. <article class="phpdocumentor-element -constant -public ">
  234. <h4 class="phpdocumentor-element__name" id="constant_DATAMODE">
  235. DATAMODE
  236. <a href="classes/chillerlan-QRCode-Data-AlphaNum.html#constant_DATAMODE" class="headerlink"><i class="fas fa-link"></i></a>
  237. </h4>
  238. <aside class="phpdocumentor-element-found-in">
  239. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/AlphaNum.php"><a href="files/src-data-alphanum.html"><abbr title="src/Data/AlphaNum.php">AlphaNum.php</abbr></a></abbr>
  240. :
  241. <span class="phpdocumentor-element-found-in__line">41</span>
  242. </aside>
  243. <code class="phpdocumentor-signature phpdocumentor-code ">
  244. <span class="phpdocumentor-signature__visibility">public</span>
  245. <span class="phpdocumentor-signature__type">mixed</span>
  246. <span class="phpdocumentor-signature__name">DATAMODE</span>
  247. = <span class="phpdocumentor-signature__default-value">\chillerlan\QRCode\Common\Mode::ALPHANUM</span>
  248. </code>
  249. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  250. Tags
  251. <a href="classes/chillerlan-QRCode-Data-AlphaNum.html#constant_DATAMODE#tags" class="headerlink"><i class="fas fa-link"></i></a>
  252. </h5>
  253. <dl class="phpdocumentor-tag-list">
  254. <dt class="phpdocumentor-tag-list__entry">
  255. <span class="phpdocumentor-tag__name">inheritDoc</span>
  256. </dt>
  257. <dd class="phpdocumentor-tag-list__definition">
  258. </dd>
  259. </dl>
  260. </article>
  261. <article class="phpdocumentor-element -constant -private ">
  262. <h4 class="phpdocumentor-element__name" id="constant_CHAR_TO_ORD">
  263. CHAR_TO_ORD
  264. <a href="classes/chillerlan-QRCode-Data-AlphaNum.html#constant_CHAR_TO_ORD" class="headerlink"><i class="fas fa-link"></i></a>
  265. </h4>
  266. <aside class="phpdocumentor-element-found-in">
  267. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/AlphaNum.php"><a href="files/src-data-alphanum.html"><abbr title="src/Data/AlphaNum.php">AlphaNum.php</abbr></a></abbr>
  268. :
  269. <span class="phpdocumentor-element-found-in__line">29</span>
  270. </aside>
  271. <p class="phpdocumentor-summary">ISO/IEC 18004:2000 Table 5</p>
  272. <code class="phpdocumentor-signature phpdocumentor-code ">
  273. <span class="phpdocumentor-signature__visibility">private</span>
  274. <span class="phpdocumentor-signature__type">array&lt;string|int, int&gt;</span>
  275. <span class="phpdocumentor-signature__name">CHAR_TO_ORD</span>
  276. = <span class="phpdocumentor-signature__default-value">[&#039;0&#039; =&gt; 0, &#039;1&#039; =&gt; 1, &#039;2&#039; =&gt; 2, &#039;3&#039; =&gt; 3, &#039;4&#039; =&gt; 4, &#039;5&#039; =&gt; 5, &#039;6&#039; =&gt; 6, &#039;7&#039; =&gt; 7, &#039;8&#039; =&gt; 8, &#039;9&#039; =&gt; 9, &#039;A&#039; =&gt; 10, &#039;B&#039; =&gt; 11, &#039;C&#039; =&gt; 12, &#039;D&#039; =&gt; 13, &#039;E&#039; =&gt; 14, &#039;F&#039; =&gt; 15, &#039;G&#039; =&gt; 16, &#039;H&#039; =&gt; 17, &#039;I&#039; =&gt; 18, &#039;J&#039; =&gt; 19, &#039;K&#039; =&gt; 20, &#039;L&#039; =&gt; 21, &#039;M&#039; =&gt; 22, &#039;N&#039; =&gt; 23, &#039;O&#039; =&gt; 24, &#039;P&#039; =&gt; 25, &#039;Q&#039; =&gt; 26, &#039;R&#039; =&gt; 27, &#039;S&#039; =&gt; 28, &#039;T&#039; =&gt; 29, &#039;U&#039; =&gt; 30, &#039;V&#039; =&gt; 31, &#039;W&#039; =&gt; 32, &#039;X&#039; =&gt; 33, &#039;Y&#039; =&gt; 34, &#039;Z&#039; =&gt; 35, &#039; &#039; =&gt; 36, &#039;$&#039; =&gt; 37, &#039;%&#039; =&gt; 38, &#039;*&#039; =&gt; 39, &#039;+&#039; =&gt; 40, &#039;-&#039; =&gt; 41, &#039;.&#039; =&gt; 42, &#039;/&#039; =&gt; 43, &#039;:&#039; =&gt; 44]</span>
  277. </code>
  278. </article>
  279. </section>
  280. <section class="phpdocumentor-properties">
  281. <h3 class="phpdocumentor-elements__header" id="properties">
  282. Properties
  283. <a href="classes/chillerlan-QRCode-Data-AlphaNum.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  284. </h3>
  285. <article
  286. class="
  287. phpdocumentor-element
  288. -property
  289. -protected
  290. "
  291. >
  292. <h4 class="phpdocumentor-element__name" id="property_data">
  293. $data
  294. <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#property_data" class="headerlink"><i class="fas fa-link"></i></a>
  295. <span class="phpdocumentor-element__modifiers">
  296. </span>
  297. </h4>
  298. <aside class="phpdocumentor-element-found-in">
  299. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRDataModeAbstract.php"><a href="files/src-data-qrdatamodeabstract.html"><abbr title="src/Data/QRDataModeAbstract.php">QRDataModeAbstract.php</abbr></a></abbr>
  300. :
  301. <span class="phpdocumentor-element-found-in__line">23</span>
  302. </aside>
  303. <p class="phpdocumentor-summary">The data to write</p>
  304. <code class="phpdocumentor-code phpdocumentor-signature ">
  305. <span class="phpdocumentor-signature__visibility">protected</span>
  306. <span class="phpdocumentor-signature__type">string</span>
  307. <span class="phpdocumentor-signature__name">$data</span>
  308. </code>
  309. </article>
  310. </section>
  311. <section class="phpdocumentor-methods">
  312. <h3 class="phpdocumentor-elements__header" id="methods">
  313. Methods
  314. <a href="classes/chillerlan-QRCode-Data-AlphaNum.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  315. </h3>
  316. <article
  317. class="phpdocumentor-element
  318. -method
  319. -public
  320. "
  321. >
  322. <h4 class="phpdocumentor-element__name" id="method___construct">
  323. __construct()
  324. <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method___construct" 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/Data/QRDataModeAbstract.php"><a href="files/src-data-qrdatamodeabstract.html"><abbr title="src/Data/QRDataModeAbstract.php">QRDataModeAbstract.php</abbr></a></abbr>
  328. :
  329. <span class="phpdocumentor-element-found-in__line">30</span>
  330. </aside>
  331. <p class="phpdocumentor-summary">QRDataModeAbstract constructor.</p>
  332. <code class="phpdocumentor-code phpdocumentor-signature ">
  333. <span class="phpdocumentor-signature__visibility">public</span>
  334. <span class="phpdocumentor-signature__name">__construct</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$data</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
  335. <div class="phpdocumentor-label-line">
  336. </div>
  337. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  338. <dl class="phpdocumentor-argument-list">
  339. <dt class="phpdocumentor-argument-list__entry">
  340. <span class="phpdocumentor-signature__argument__name">$data</span>
  341. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  342. </dt>
  343. <dd class="phpdocumentor-argument-list__definition">
  344. </dd>
  345. </dl>
  346. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  347. Tags
  348. <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method___construct#tags" class="headerlink"><i class="fas fa-link"></i></a>
  349. </h5>
  350. <dl class="phpdocumentor-tag-list">
  351. <dt class="phpdocumentor-tag-list__entry">
  352. <span class="phpdocumentor-tag__name">throws</span>
  353. </dt>
  354. <dd class="phpdocumentor-tag-list__definition">
  355. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Data-QRCodeDataException.html"><abbr title="\chillerlan\QRCode\Data\QRCodeDataException">QRCodeDataException</abbr></a></span>
  356. </dd>
  357. </dl>
  358. </article>
  359. <article
  360. class="phpdocumentor-element
  361. -method
  362. -public
  363. -static "
  364. >
  365. <h4 class="phpdocumentor-element__name" id="method_convertEncoding">
  366. convertEncoding()
  367. <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method_convertEncoding" class="headerlink"><i class="fas fa-link"></i></a>
  368. </h4>
  369. <aside class="phpdocumentor-element-found-in">
  370. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRDataModeAbstract.php"><a href="files/src-data-qrdatamodeabstract.html"><abbr title="src/Data/QRDataModeAbstract.php">QRDataModeAbstract.php</abbr></a></abbr>
  371. :
  372. <span class="phpdocumentor-element-found-in__line">50</span>
  373. </aside>
  374. <p class="phpdocumentor-summary">encoding conversion helper</p>
  375. <code class="phpdocumentor-code phpdocumentor-signature ">
  376. <span class="phpdocumentor-signature__visibility">public</span>
  377. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">convertEncoding</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$string</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
  378. <div class="phpdocumentor-label-line">
  379. </div>
  380. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  381. <dl class="phpdocumentor-argument-list">
  382. <dt class="phpdocumentor-argument-list__entry">
  383. <span class="phpdocumentor-signature__argument__name">$string</span>
  384. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  385. </dt>
  386. <dd class="phpdocumentor-argument-list__definition">
  387. </dd>
  388. </dl>
  389. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  390. Tags
  391. <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method_convertEncoding#tags" class="headerlink"><i class="fas fa-link"></i></a>
  392. </h5>
  393. <dl class="phpdocumentor-tag-list">
  394. <dt class="phpdocumentor-tag-list__entry">
  395. <span class="phpdocumentor-tag__name">inheritDoc</span>
  396. </dt>
  397. <dd class="phpdocumentor-tag-list__definition">
  398. </dd>
  399. </dl>
  400. <section>
  401. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  402. <span class="phpdocumentor-signature__response_type">string</span>
  403. </section>
  404. </article>
  405. <article
  406. class="phpdocumentor-element
  407. -method
  408. -public
  409. -static "
  410. >
  411. <h4 class="phpdocumentor-element__name" id="method_decodeSegment">
  412. decodeSegment()
  413. <a href="classes/chillerlan-QRCode-Data-AlphaNum.html#method_decodeSegment" class="headerlink"><i class="fas fa-link"></i></a>
  414. </h4>
  415. <aside class="phpdocumentor-element-found-in">
  416. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/AlphaNum.php"><a href="files/src-data-alphanum.html"><abbr title="src/Data/AlphaNum.php">AlphaNum.php</abbr></a></abbr>
  417. :
  418. <span class="phpdocumentor-element-found-in__line">97</span>
  419. </aside>
  420. <p class="phpdocumentor-summary">reads a segment from the BitBuffer and decodes in the current data mode</p>
  421. <code class="phpdocumentor-code phpdocumentor-signature ">
  422. <span class="phpdocumentor-signature__visibility">public</span>
  423. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">decodeSegment</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-BitBuffer.html"><abbr title="\chillerlan\QRCode\Common\BitBuffer">BitBuffer</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$bitBuffer</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">$versionNumber</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
  424. <div class="phpdocumentor-label-line">
  425. </div>
  426. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  427. <dl class="phpdocumentor-argument-list">
  428. <dt class="phpdocumentor-argument-list__entry">
  429. <span class="phpdocumentor-signature__argument__name">$bitBuffer</span>
  430. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-BitBuffer.html"><abbr title="\chillerlan\QRCode\Common\BitBuffer">BitBuffer</abbr></a></span>
  431. </dt>
  432. <dd class="phpdocumentor-argument-list__definition">
  433. </dd>
  434. <dt class="phpdocumentor-argument-list__entry">
  435. <span class="phpdocumentor-signature__argument__name">$versionNumber</span>
  436. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  437. </dt>
  438. <dd class="phpdocumentor-argument-list__definition">
  439. </dd>
  440. </dl>
  441. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  442. Tags
  443. <a href="classes/chillerlan-QRCode-Data-AlphaNum.html#method_decodeSegment#tags" class="headerlink"><i class="fas fa-link"></i></a>
  444. </h5>
  445. <dl class="phpdocumentor-tag-list">
  446. <dt class="phpdocumentor-tag-list__entry">
  447. <span class="phpdocumentor-tag__name">inheritDoc</span>
  448. </dt>
  449. <dd class="phpdocumentor-tag-list__definition">
  450. </dd>
  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-Data-QRCodeDataException.html"><abbr title="\chillerlan\QRCode\Data\QRCodeDataException">QRCodeDataException</abbr></a></span>
  456. </dd>
  457. </dl>
  458. <section>
  459. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  460. <span class="phpdocumentor-signature__response_type">string</span>
  461. </section>
  462. </article>
  463. <article
  464. class="phpdocumentor-element
  465. -method
  466. -public
  467. "
  468. >
  469. <h4 class="phpdocumentor-element__name" id="method_getLengthInBits">
  470. getLengthInBits()
  471. <a href="classes/chillerlan-QRCode-Data-AlphaNum.html#method_getLengthInBits" class="headerlink"><i class="fas fa-link"></i></a>
  472. </h4>
  473. <aside class="phpdocumentor-element-found-in">
  474. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/AlphaNum.php"><a href="files/src-data-alphanum.html"><abbr title="src/Data/AlphaNum.php">AlphaNum.php</abbr></a></abbr>
  475. :
  476. <span class="phpdocumentor-element-found-in__line">46</span>
  477. </aside>
  478. <p class="phpdocumentor-summary">retruns the length in bits of the data string</p>
  479. <code class="phpdocumentor-code phpdocumentor-signature ">
  480. <span class="phpdocumentor-signature__visibility">public</span>
  481. <span class="phpdocumentor-signature__name">getLengthInBits</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  482. <div class="phpdocumentor-label-line">
  483. </div>
  484. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  485. Tags
  486. <a href="classes/chillerlan-QRCode-Data-AlphaNum.html#method_getLengthInBits#tags" class="headerlink"><i class="fas fa-link"></i></a>
  487. </h5>
  488. <dl class="phpdocumentor-tag-list">
  489. <dt class="phpdocumentor-tag-list__entry">
  490. <span class="phpdocumentor-tag__name">inheritDoc</span>
  491. </dt>
  492. <dd class="phpdocumentor-tag-list__definition">
  493. </dd>
  494. </dl>
  495. <section>
  496. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  497. <span class="phpdocumentor-signature__response_type">int</span>
  498. </section>
  499. </article>
  500. <article
  501. class="phpdocumentor-element
  502. -method
  503. -public
  504. -static "
  505. >
  506. <h4 class="phpdocumentor-element__name" id="method_validateString">
  507. validateString()
  508. <a href="classes/chillerlan-QRCode-Data-AlphaNum.html#method_validateString" class="headerlink"><i class="fas fa-link"></i></a>
  509. </h4>
  510. <aside class="phpdocumentor-element-found-in">
  511. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/AlphaNum.php"><a href="files/src-data-alphanum.html"><abbr title="src/Data/AlphaNum.php">AlphaNum.php</abbr></a></abbr>
  512. :
  513. <span class="phpdocumentor-element-found-in__line">53</span>
  514. </aside>
  515. <p class="phpdocumentor-summary">checks if the given string qualifies for the encoder module</p>
  516. <code class="phpdocumentor-code phpdocumentor-signature ">
  517. <span class="phpdocumentor-signature__visibility">public</span>
  518. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">validateString</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$string</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>
  519. <div class="phpdocumentor-label-line">
  520. </div>
  521. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  522. <dl class="phpdocumentor-argument-list">
  523. <dt class="phpdocumentor-argument-list__entry">
  524. <span class="phpdocumentor-signature__argument__name">$string</span>
  525. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  526. </dt>
  527. <dd class="phpdocumentor-argument-list__definition">
  528. </dd>
  529. </dl>
  530. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  531. Tags
  532. <a href="classes/chillerlan-QRCode-Data-AlphaNum.html#method_validateString#tags" class="headerlink"><i class="fas fa-link"></i></a>
  533. </h5>
  534. <dl class="phpdocumentor-tag-list">
  535. <dt class="phpdocumentor-tag-list__entry">
  536. <span class="phpdocumentor-tag__name">inheritDoc</span>
  537. </dt>
  538. <dd class="phpdocumentor-tag-list__definition">
  539. </dd>
  540. </dl>
  541. <section>
  542. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  543. <span class="phpdocumentor-signature__response_type">bool</span>
  544. </section>
  545. </article>
  546. <article
  547. class="phpdocumentor-element
  548. -method
  549. -public
  550. "
  551. >
  552. <h4 class="phpdocumentor-element__name" id="method_write">
  553. write()
  554. <a href="classes/chillerlan-QRCode-Data-AlphaNum.html#method_write" class="headerlink"><i class="fas fa-link"></i></a>
  555. </h4>
  556. <aside class="phpdocumentor-element-found-in">
  557. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/AlphaNum.php"><a href="files/src-data-alphanum.html"><abbr title="src/Data/AlphaNum.php">AlphaNum.php</abbr></a></abbr>
  558. :
  559. <span class="phpdocumentor-element-found-in__line">71</span>
  560. </aside>
  561. <p class="phpdocumentor-summary">writes the actual data string to the BitBuffer, uses the given version to determine the length bits</p>
  562. <code class="phpdocumentor-code phpdocumentor-signature ">
  563. <span class="phpdocumentor-signature__visibility">public</span>
  564. <span class="phpdocumentor-signature__name">write</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-BitBuffer.html"><abbr title="\chillerlan\QRCode\Common\BitBuffer">BitBuffer</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$bitBuffer</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">$versionNumber</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">static</span></code>
  565. <div class="phpdocumentor-label-line">
  566. </div>
  567. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  568. <dl class="phpdocumentor-argument-list">
  569. <dt class="phpdocumentor-argument-list__entry">
  570. <span class="phpdocumentor-signature__argument__name">$bitBuffer</span>
  571. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-BitBuffer.html"><abbr title="\chillerlan\QRCode\Common\BitBuffer">BitBuffer</abbr></a></span>
  572. </dt>
  573. <dd class="phpdocumentor-argument-list__definition">
  574. </dd>
  575. <dt class="phpdocumentor-argument-list__entry">
  576. <span class="phpdocumentor-signature__argument__name">$versionNumber</span>
  577. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  578. </dt>
  579. <dd class="phpdocumentor-argument-list__definition">
  580. </dd>
  581. </dl>
  582. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  583. Tags
  584. <a href="classes/chillerlan-QRCode-Data-AlphaNum.html#method_write#tags" class="headerlink"><i class="fas fa-link"></i></a>
  585. </h5>
  586. <dl class="phpdocumentor-tag-list">
  587. <dt class="phpdocumentor-tag-list__entry">
  588. <span class="phpdocumentor-tag__name">inheritDoc</span>
  589. </dt>
  590. <dd class="phpdocumentor-tag-list__definition">
  591. </dd>
  592. </dl>
  593. <section>
  594. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  595. <span class="phpdocumentor-signature__response_type">static</span>
  596. </section>
  597. </article>
  598. <article
  599. class="phpdocumentor-element
  600. -method
  601. -protected
  602. "
  603. >
  604. <h4 class="phpdocumentor-element__name" id="method_getCharCount">
  605. getCharCount()
  606. <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method_getCharCount" class="headerlink"><i class="fas fa-link"></i></a>
  607. </h4>
  608. <aside class="phpdocumentor-element-found-in">
  609. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRDataModeAbstract.php"><a href="files/src-data-qrdatamodeabstract.html"><abbr title="src/Data/QRDataModeAbstract.php">QRDataModeAbstract.php</abbr></a></abbr>
  610. :
  611. <span class="phpdocumentor-element-found-in__line">43</span>
  612. </aside>
  613. <p class="phpdocumentor-summary">returns the character count of the $data string</p>
  614. <code class="phpdocumentor-code phpdocumentor-signature ">
  615. <span class="phpdocumentor-signature__visibility">protected</span>
  616. <span class="phpdocumentor-signature__name">getCharCount</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  617. <div class="phpdocumentor-label-line">
  618. </div>
  619. <section>
  620. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  621. <span class="phpdocumentor-signature__response_type">int</span>
  622. </section>
  623. </article>
  624. <article
  625. class="phpdocumentor-element
  626. -method
  627. -protected
  628. -static "
  629. >
  630. <h4 class="phpdocumentor-element__name" id="method_getLengthBits">
  631. getLengthBits()
  632. <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method_getLengthBits" class="headerlink"><i class="fas fa-link"></i></a>
  633. </h4>
  634. <aside class="phpdocumentor-element-found-in">
  635. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRDataModeAbstract.php"><a href="files/src-data-qrdatamodeabstract.html"><abbr title="src/Data/QRDataModeAbstract.php">QRDataModeAbstract.php</abbr></a></abbr>
  636. :
  637. <span class="phpdocumentor-element-found-in__line">57</span>
  638. </aside>
  639. <p class="phpdocumentor-summary">shortcut</p>
  640. <code class="phpdocumentor-code phpdocumentor-signature ">
  641. <span class="phpdocumentor-signature__visibility">protected</span>
  642. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">getLengthBits</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$versionNumber</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  643. <div class="phpdocumentor-label-line">
  644. </div>
  645. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  646. <dl class="phpdocumentor-argument-list">
  647. <dt class="phpdocumentor-argument-list__entry">
  648. <span class="phpdocumentor-signature__argument__name">$versionNumber</span>
  649. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  650. </dt>
  651. <dd class="phpdocumentor-argument-list__definition">
  652. </dd>
  653. </dl>
  654. <section>
  655. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  656. <span class="phpdocumentor-signature__response_type">int</span>
  657. </section>
  658. </article>
  659. </section>
  660. <div class="phpdocumentor-modal" id="source-view">
  661. <div class="phpdocumentor-modal-bg" data-exit-button></div>
  662. <div class="phpdocumentor-modal-container">
  663. <div class="phpdocumentor-modal-content">
  664. <pre style="max-height: 500px; overflow-y: scroll" data-src="files/src/Data/AlphaNum.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
  665. </div>
  666. <button data-exit-button class="phpdocumentor-modal__close">&times;</button>
  667. </div>
  668. </div>
  669. <script type="text/javascript">
  670. (function () {
  671. function loadExternalCodeSnippet(el, url, line) {
  672. Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
  673. const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
  674. const language = 'php';
  675. const code = document.createElement('code');
  676. code.className = 'language-' + language;
  677. pre.textContent = '';
  678. pre.setAttribute('data-line', line)
  679. code.textContent = 'Loading…';
  680. pre.appendChild(code);
  681. var xhr = new XMLHttpRequest();
  682. xhr.open('GET', src, true);
  683. xhr.onreadystatechange = function () {
  684. if (xhr.readyState !== 4) {
  685. return;
  686. }
  687. if (xhr.status < 400 && xhr.responseText) {
  688. code.textContent = xhr.responseText;
  689. Prism.highlightElement(code);
  690. return;
  691. }
  692. if (xhr.status === 404) {
  693. code.textContent = '✖ Error: File could not be found';
  694. return;
  695. }
  696. if (xhr.status >= 400) {
  697. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  698. return;
  699. }
  700. code.textContent = '✖ Error: An unknown error occurred';
  701. };
  702. xhr.send(null);
  703. });
  704. }
  705. const modalButtons = document.querySelectorAll("[data-modal]");
  706. const openedAsLocalFile = window.location.protocol === 'file:';
  707. if (modalButtons.length > 0 && openedAsLocalFile) {
  708. console.warn(
  709. 'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
  710. 'browsers block XHR requests when a page is opened this way'
  711. );
  712. }
  713. modalButtons.forEach(function (trigger) {
  714. if (openedAsLocalFile) {
  715. trigger.setAttribute("hidden", "hidden");
  716. }
  717. trigger.addEventListener("click", function (event) {
  718. event.preventDefault();
  719. const modal = document.getElementById(trigger.dataset.modal);
  720. if (!modal) {
  721. console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
  722. return;
  723. }
  724. modal.classList.add("phpdocumentor-modal__open");
  725. loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
  726. const exits = modal.querySelectorAll("[data-exit-button]");
  727. exits.forEach(function (exit) {
  728. exit.addEventListener("click", function (event) {
  729. event.preventDefault();
  730. modal.classList.remove("phpdocumentor-modal__open");
  731. });
  732. });
  733. });
  734. });
  735. })();
  736. </script>
  737. </article>
  738. </section>
  739. <section class="phpdocumentor-on-this-page__sidebar">
  740. <section class="phpdocumentor-on-this-page__content">
  741. <strong class="phpdocumentor-on-this-page__title">On this page</strong>
  742. <ul class="phpdocumentor-list -clean">
  743. <li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
  744. <li>
  745. <ul class="phpdocumentor-list -clean">
  746. <li><a href="classes/chillerlan-QRCode-Data-AlphaNum.html#toc-constants">Constants</a></li>
  747. <li><a href="classes/chillerlan-QRCode-Data-AlphaNum.html#toc-properties">Properties</a></li>
  748. <li><a href="classes/chillerlan-QRCode-Data-AlphaNum.html#toc-methods">Methods</a></li>
  749. </ul>
  750. </li>
  751. <li class="phpdocumentor-on-this-page-section__title">Constants</li>
  752. <li>
  753. <ul class="phpdocumentor-list -clean">
  754. <li class=""><a href="classes/chillerlan-QRCode-Data-AlphaNum.html#constant_DATAMODE">DATAMODE</a></li>
  755. <li class=""><a href="classes/chillerlan-QRCode-Data-AlphaNum.html#constant_CHAR_TO_ORD">CHAR_TO_ORD</a></li>
  756. </ul>
  757. </li>
  758. <li class="phpdocumentor-on-this-page-section__title">Properties</li>
  759. <li>
  760. <ul class="phpdocumentor-list -clean">
  761. <li class=""><a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#property_data">$data</li>
  762. </ul>
  763. </li>
  764. <li class="phpdocumentor-on-this-page-section__title">Methods</li>
  765. <li>
  766. <ul class="phpdocumentor-list -clean">
  767. <li class=""><a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method___construct">__construct()</a></li>
  768. <li class=""><a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method_convertEncoding">convertEncoding()</a></li>
  769. <li class=""><a href="classes/chillerlan-QRCode-Data-AlphaNum.html#method_decodeSegment">decodeSegment()</a></li>
  770. <li class=""><a href="classes/chillerlan-QRCode-Data-AlphaNum.html#method_getLengthInBits">getLengthInBits()</a></li>
  771. <li class=""><a href="classes/chillerlan-QRCode-Data-AlphaNum.html#method_validateString">validateString()</a></li>
  772. <li class=""><a href="classes/chillerlan-QRCode-Data-AlphaNum.html#method_write">write()</a></li>
  773. <li class=""><a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method_getCharCount">getCharCount()</a></li>
  774. <li class=""><a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method_getLengthBits">getLengthBits()</a></li>
  775. </ul>
  776. </li>
  777. </ul>
  778. </section>
  779. </section>
  780. </div>
  781. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  782. <section class="phpdocumentor-search-results__dialog">
  783. <header class="phpdocumentor-search-results__header">
  784. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  785. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  786. </header>
  787. <section class="phpdocumentor-search-results__body">
  788. <ul class="phpdocumentor-search-results__entries"></ul>
  789. </section>
  790. </section>
  791. </section>
  792. </div>
  793. <a href="classes/chillerlan-QRCode-Data-AlphaNum.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  794. </main>
  795. <script>
  796. cssVars({});
  797. </script>
  798. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  799. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  800. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  801. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  802. </body>
  803. </html>