chillerlan-QRCode-Common-FormatInformation.html 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557
  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. FormatInformation
  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/FormatInformation.php"><a href="files/src-common-formatinformation.html"><abbr title="src/Common/FormatInformation.php">FormatInformation.php</abbr></a></abbr>
  98. :
  99. <span class="phpdocumentor-element-found-in__line">21</span>
  100. </aside>
  101. <p class="phpdocumentor-summary">&lt;p&gt;Encapsulates a QR Code&#039;s format information, including the data mask used and
  102. error correction level.&lt;/p&gt;</p>
  103. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  104. Tags
  105. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  106. </h5>
  107. <dl class="phpdocumentor-tag-list">
  108. <dt class="phpdocumentor-tag-list__entry">
  109. <span class="phpdocumentor-tag__name">author</span>
  110. </dt>
  111. <dd class="phpdocumentor-tag-list__definition">
  112. <section class="phpdocumentor-description"><p>Sean Owen</p>
  113. </section>
  114. </dd>
  115. <dt class="phpdocumentor-tag-list__entry">
  116. <span class="phpdocumentor-tag__name">see</span>
  117. </dt>
  118. <dd class="phpdocumentor-tag-list__definition">
  119. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\Common\ErrorCorrectionLevel">ErrorCorrectionLevel</abbr></span>
  120. </dd>
  121. </dl>
  122. <h3 id="toc">
  123. Table of Contents
  124. <a href="#toc" class="headerlink"><i class="fas fa-link"></i></a>
  125. </h3>
  126. <dl class="phpdocumentor-table-of-contents">
  127. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  128. <a href="classes/chillerlan-QRCode-Common-FormatInformation.html#constant_DECODE_LOOKUP">DECODE_LOOKUP</a>
  129. <span>
  130. &nbsp;= [[0x0, 0x5412], [0x1, 0x5125], [0x2, 0x5e7c], [0x3, 0x5b4b], [0x4, 0x45f9], [0x5, 0x40ce], [0x6, 0x4f97], [0x7, 0x4aa0], [0x8, 0x77c4], [0x9, 0x72f3], [0xa, 0x7daa], [0xb, 0x789d], [0xc, 0x662f], [0xd, 0x6318], [0xe, 0x6c41], [0xf, 0x6976], [0x10, 0x1689], [0x11, 0x13be], [0x12, 0x1ce7], [0x13, 0x19d0], [0x14, 0x762], [0x15, 0x255], [0x16, 0xd0c], [0x17, 0x83b], [0x18, 0x355f], [0x19, 0x3068], [0x1a, 0x3f31], [0x1b, 0x3a06], [0x1c, 0x24b4], [0x1d, 0x2183], [0x1e, 0x2eda], [0x1f, 0x2bed]] </span>
  131. </dt>
  132. <dd>See ISO 18004:2006, Annex C, Table C.1</dd>
  133. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  134. <a href="classes/chillerlan-QRCode-Common-FormatInformation.html#constant_MASK_QR">MASK_QR</a>
  135. <span>
  136. &nbsp;= 0x5412 </span>
  137. </dt>
  138. <dd></dd>
  139. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  140. <a href="classes/chillerlan-QRCode-Common-FormatInformation.html#property_dataMask">$dataMask</a>
  141. <span>
  142. &nbsp;: int </span>
  143. </dt>
  144. <dd></dd>
  145. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  146. <a href="classes/chillerlan-QRCode-Common-FormatInformation.html#property_errorCorrectionLevel">$errorCorrectionLevel</a>
  147. <span>
  148. &nbsp;: int </span>
  149. </dt>
  150. <dd></dd>
  151. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  152. <a href="classes/chillerlan-QRCode-Common-FormatInformation.html#method___construct">__construct()</a>
  153. <span>
  154. &nbsp;: mixed </span>
  155. </dt>
  156. <dd></dd>
  157. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  158. <a href="classes/chillerlan-QRCode-Common-FormatInformation.html#method_getDataMask">getDataMask()</a>
  159. <span>
  160. &nbsp;: <a href="classes/chillerlan-QRCode-Common-MaskPattern.html"><abbr title="\chillerlan\QRCode\Common\MaskPattern">MaskPattern</abbr></a> </span>
  161. </dt>
  162. <dd></dd>
  163. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  164. <a href="classes/chillerlan-QRCode-Common-FormatInformation.html#method_getErrorCorrectionLevel">getErrorCorrectionLevel()</a>
  165. <span>
  166. &nbsp;: <a href="classes/chillerlan-QRCode-Common-EccLevel.html"><abbr title="\chillerlan\QRCode\Common\EccLevel">EccLevel</abbr></a> </span>
  167. </dt>
  168. <dd></dd>
  169. </dl>
  170. <section class="phpdocumentor-constants">
  171. <h3 class="phpdocumentor-elements__header" id="constants">
  172. Constants
  173. <a href="classes/chillerlan-QRCode-Common-FormatInformation.html#constants" class="headerlink"><i class="fas fa-link"></i></a>
  174. </h3>
  175. <article class="phpdocumentor-element -constant -public ">
  176. <h4 class="phpdocumentor-element__name" id="constant_DECODE_LOOKUP">
  177. DECODE_LOOKUP
  178. <a href="classes/chillerlan-QRCode-Common-FormatInformation.html#constant_DECODE_LOOKUP" class="headerlink"><i class="fas fa-link"></i></a>
  179. </h4>
  180. <aside class="phpdocumentor-element-found-in">
  181. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/FormatInformation.php"><a href="files/src-common-formatinformation.html"><abbr title="src/Common/FormatInformation.php">FormatInformation.php</abbr></a></abbr>
  182. :
  183. <span class="phpdocumentor-element-found-in__line">30</span>
  184. </aside>
  185. <p class="phpdocumentor-summary">See ISO 18004:2006, Annex C, Table C.1</p>
  186. <code class="phpdocumentor-signature phpdocumentor-code ">
  187. <span class="phpdocumentor-signature__visibility">public</span>
  188. <span class="phpdocumentor-signature__type">mixed</span>
  189. <span class="phpdocumentor-signature__name">DECODE_LOOKUP</span>
  190. = <span class="phpdocumentor-signature__default-value">[[0x0, 0x5412], [0x1, 0x5125], [0x2, 0x5e7c], [0x3, 0x5b4b], [0x4, 0x45f9], [0x5, 0x40ce], [0x6, 0x4f97], [0x7, 0x4aa0], [0x8, 0x77c4], [0x9, 0x72f3], [0xa, 0x7daa], [0xb, 0x789d], [0xc, 0x662f], [0xd, 0x6318], [0xe, 0x6c41], [0xf, 0x6976], [0x10, 0x1689], [0x11, 0x13be], [0x12, 0x1ce7], [0x13, 0x19d0], [0x14, 0x762], [0x15, 0x255], [0x16, 0xd0c], [0x17, 0x83b], [0x18, 0x355f], [0x19, 0x3068], [0x1a, 0x3f31], [0x1b, 0x3a06], [0x1c, 0x24b4], [0x1d, 0x2183], [0x1e, 0x2eda], [0x1f, 0x2bed]]</span>
  191. </code>
  192. <section class="phpdocumentor-description"><p>[data bits, sequence after masking]</p>
  193. </section>
  194. <section class="phpdocumentor-description"></section>
  195. </article>
  196. <article class="phpdocumentor-element -constant -public ">
  197. <h4 class="phpdocumentor-element__name" id="constant_MASK_QR">
  198. MASK_QR
  199. <a href="classes/chillerlan-QRCode-Common-FormatInformation.html#constant_MASK_QR" class="headerlink"><i class="fas fa-link"></i></a>
  200. </h4>
  201. <aside class="phpdocumentor-element-found-in">
  202. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/FormatInformation.php"><a href="files/src-common-formatinformation.html"><abbr title="src/Common/FormatInformation.php">FormatInformation.php</abbr></a></abbr>
  203. :
  204. <span class="phpdocumentor-element-found-in__line">23</span>
  205. </aside>
  206. <code class="phpdocumentor-signature phpdocumentor-code ">
  207. <span class="phpdocumentor-signature__visibility">public</span>
  208. <span class="phpdocumentor-signature__type">mixed</span>
  209. <span class="phpdocumentor-signature__name">MASK_QR</span>
  210. = <span class="phpdocumentor-signature__default-value">0x5412</span>
  211. </code>
  212. <section class="phpdocumentor-description"></section>
  213. <section class="phpdocumentor-description"></section>
  214. </article>
  215. </section>
  216. <section class="phpdocumentor-properties">
  217. <h3 class="phpdocumentor-elements__header" id="properties">
  218. Properties
  219. <a href="classes/chillerlan-QRCode-Common-FormatInformation.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  220. </h3>
  221. <article
  222. class="
  223. phpdocumentor-element
  224. -property
  225. -private
  226. "
  227. >
  228. <h4 class="phpdocumentor-element__name" id="property_dataMask">
  229. $dataMask
  230. <a href="classes/chillerlan-QRCode-Common-FormatInformation.html#property_dataMask" class="headerlink"><i class="fas fa-link"></i></a>
  231. <span class="phpdocumentor-element__modifiers">
  232. </span>
  233. </h4>
  234. <aside class="phpdocumentor-element-found-in">
  235. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/FormatInformation.php"><a href="files/src-common-formatinformation.html"><abbr title="src/Common/FormatInformation.php">FormatInformation.php</abbr></a></abbr>
  236. :
  237. <span class="phpdocumentor-element-found-in__line">66</span>
  238. </aside>
  239. <code class="phpdocumentor-code phpdocumentor-signature ">
  240. <span class="phpdocumentor-signature__visibility">private</span>
  241. <span class="phpdocumentor-signature__type">int</span>
  242. <span class="phpdocumentor-signature__name">$dataMask</span>
  243. </code>
  244. <section class="phpdocumentor-description"></section>
  245. <section class="phpdocumentor-description"></section>
  246. </article>
  247. <article
  248. class="
  249. phpdocumentor-element
  250. -property
  251. -private
  252. "
  253. >
  254. <h4 class="phpdocumentor-element__name" id="property_errorCorrectionLevel">
  255. $errorCorrectionLevel
  256. <a href="classes/chillerlan-QRCode-Common-FormatInformation.html#property_errorCorrectionLevel" class="headerlink"><i class="fas fa-link"></i></a>
  257. <span class="phpdocumentor-element__modifiers">
  258. </span>
  259. </h4>
  260. <aside class="phpdocumentor-element-found-in">
  261. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/FormatInformation.php"><a href="files/src-common-formatinformation.html"><abbr title="src/Common/FormatInformation.php">FormatInformation.php</abbr></a></abbr>
  262. :
  263. <span class="phpdocumentor-element-found-in__line">65</span>
  264. </aside>
  265. <code class="phpdocumentor-code phpdocumentor-signature ">
  266. <span class="phpdocumentor-signature__visibility">private</span>
  267. <span class="phpdocumentor-signature__type">int</span>
  268. <span class="phpdocumentor-signature__name">$errorCorrectionLevel</span>
  269. </code>
  270. <section class="phpdocumentor-description"></section>
  271. <section class="phpdocumentor-description"></section>
  272. </article>
  273. </section>
  274. <section class="phpdocumentor-methods">
  275. <h3 class="phpdocumentor-elements__header" id="methods">
  276. Methods
  277. <a href="classes/chillerlan-QRCode-Common-FormatInformation.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  278. </h3>
  279. <article
  280. class="phpdocumentor-element
  281. -method
  282. -public
  283. "
  284. >
  285. <h4 class="phpdocumentor-element__name" id="method___construct">
  286. __construct()
  287. <a href="classes/chillerlan-QRCode-Common-FormatInformation.html#method___construct" class="headerlink"><i class="fas fa-link"></i></a>
  288. </h4>
  289. <aside class="phpdocumentor-element-found-in">
  290. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/FormatInformation.php"><a href="files/src-common-formatinformation.html"><abbr title="src/Common/FormatInformation.php">FormatInformation.php</abbr></a></abbr>
  291. :
  292. <span class="phpdocumentor-element-found-in__line">71</span>
  293. </aside>
  294. <code class="phpdocumentor-code phpdocumentor-signature ">
  295. <span class="phpdocumentor-signature__visibility">public</span>
  296. <span class="phpdocumentor-signature__name">__construct</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$formatInfo</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
  297. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  298. <dl class="phpdocumentor-argument-list">
  299. <dt class="phpdocumentor-argument-list__entry">
  300. <span class="phpdocumentor-signature__argument__name">$formatInfo</span>
  301. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  302. </dt>
  303. <dd class="phpdocumentor-argument-list__definition">
  304. <section class="phpdocumentor-description"></section>
  305. </dd>
  306. </dl>
  307. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  308. <span class="phpdocumentor-signature__response_type">mixed</span>
  309. &mdash;
  310. </article>
  311. <article
  312. class="phpdocumentor-element
  313. -method
  314. -public
  315. "
  316. >
  317. <h4 class="phpdocumentor-element__name" id="method_getDataMask">
  318. getDataMask()
  319. <a href="classes/chillerlan-QRCode-Common-FormatInformation.html#method_getDataMask" class="headerlink"><i class="fas fa-link"></i></a>
  320. </h4>
  321. <aside class="phpdocumentor-element-found-in">
  322. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/FormatInformation.php"><a href="files/src-common-formatinformation.html"><abbr title="src/Common/FormatInformation.php">FormatInformation.php</abbr></a></abbr>
  323. :
  324. <span class="phpdocumentor-element-found-in__line">86</span>
  325. </aside>
  326. <code class="phpdocumentor-code phpdocumentor-signature ">
  327. <span class="phpdocumentor-signature__visibility">public</span>
  328. <span class="phpdocumentor-signature__name">getDataMask</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Common-MaskPattern.html"><abbr title="\chillerlan\QRCode\Common\MaskPattern">MaskPattern</abbr></a></span></code>
  329. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  330. <span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Common-MaskPattern.html"><abbr title="\chillerlan\QRCode\Common\MaskPattern">MaskPattern</abbr></a></span>
  331. &mdash;
  332. </article>
  333. <article
  334. class="phpdocumentor-element
  335. -method
  336. -public
  337. "
  338. >
  339. <h4 class="phpdocumentor-element__name" id="method_getErrorCorrectionLevel">
  340. getErrorCorrectionLevel()
  341. <a href="classes/chillerlan-QRCode-Common-FormatInformation.html#method_getErrorCorrectionLevel" class="headerlink"><i class="fas fa-link"></i></a>
  342. </h4>
  343. <aside class="phpdocumentor-element-found-in">
  344. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/FormatInformation.php"><a href="files/src-common-formatinformation.html"><abbr title="src/Common/FormatInformation.php">FormatInformation.php</abbr></a></abbr>
  345. :
  346. <span class="phpdocumentor-element-found-in__line">79</span>
  347. </aside>
  348. <code class="phpdocumentor-code phpdocumentor-signature ">
  349. <span class="phpdocumentor-signature__visibility">public</span>
  350. <span class="phpdocumentor-signature__name">getErrorCorrectionLevel</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Common-EccLevel.html"><abbr title="\chillerlan\QRCode\Common\EccLevel">EccLevel</abbr></a></span></code>
  351. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  352. <span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Common-EccLevel.html"><abbr title="\chillerlan\QRCode\Common\EccLevel">EccLevel</abbr></a></span>
  353. &mdash;
  354. </article>
  355. </section>
  356. <script type="text/javascript">
  357. function loadExternalCodeSnippets(line) {
  358. Array.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach((pre) => {
  359. var src = pre.getAttribute('data-src').replace( /\\/g, '/');
  360. var extension = (src.match(/\.(\w+)$/) || [, ''])[1];
  361. var language = 'php';
  362. var code = document.createElement('code');
  363. code.className = 'language-' + language;
  364. pre.textContent = '';
  365. pre.setAttribute('data-line', line)
  366. code.textContent = 'Loading…';
  367. pre.appendChild(code);
  368. var xhr = new XMLHttpRequest();
  369. xhr.open('GET', src, true);
  370. xhr.onreadystatechange = function () {
  371. if (xhr.readyState == 4) {
  372. if (xhr.status < 400 && xhr.responseText) {
  373. code.textContent = xhr.responseText;
  374. Prism.highlightElement(code);
  375. }
  376. else if (xhr.status >= 400) {
  377. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  378. }
  379. else {
  380. code.textContent = '✖ Error: File does not exist, is empty or trying to view from localhost';
  381. }
  382. }
  383. };
  384. xhr.send(null);
  385. });
  386. }
  387. var modals = document.querySelectorAll("[data-modal]");
  388. modals.forEach(function (trigger) {
  389. trigger.addEventListener("click", function (event) {
  390. //event.preventDefault();
  391. const modal = document.getElementById(trigger.dataset.modal);
  392. modal.classList.add("phpdocumentor-modal__open");
  393. loadExternalCodeSnippets(trigger.dataset.line)
  394. const exits = modal.querySelectorAll("[data-exit-button]");
  395. exits.forEach(function (exit) {
  396. exit.addEventListener("click", function (event) {
  397. event.preventDefault();
  398. modal.classList.remove("phpdocumentor-modal__open");
  399. });
  400. });
  401. });
  402. });
  403. </script>
  404. </article>
  405. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  406. <section class="phpdocumentor-search-results__dialog">
  407. <header class="phpdocumentor-search-results__header">
  408. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  409. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  410. </header>
  411. <section class="phpdocumentor-search-results__body">
  412. <ul class="phpdocumentor-search-results__entries"></ul>
  413. </section>
  414. </section>
  415. </section>
  416. </div>
  417. </div>
  418. <a href="classes/chillerlan-QRCode-Common-FormatInformation.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  419. </main>
  420. <script>
  421. cssVars({});
  422. </script>
  423. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  424. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  425. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  426. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  427. </body>
  428. </html>