chillerlan-QRCode-Data-QRData.html 52 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125
  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. </section>
  89. <section class="phpdocumentor-sidebar__category -packages">
  90. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  91. <h4 class="phpdocumentor-sidebar__root-namespace">
  92. <a href="packages/Application.html" class="">Application</a>
  93. </h4>
  94. </section>
  95. <section class="phpdocumentor-sidebar__category -reports">
  96. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  97. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  98. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  99. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  100. </section>
  101. <section class="phpdocumentor-sidebar__category -indices">
  102. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  103. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  104. </section>
  105. </aside>
  106. <div class="phpdocumentor-column -nine phpdocumentor-content">
  107. <section>
  108. <ul class="phpdocumentor-breadcrumbs">
  109. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  110. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode.html">QRCode</a></li>
  111. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode-data.html">Data</a></li>
  112. </ul>
  113. <article class="phpdocumentor-element -class">
  114. <h2 class="phpdocumentor-content__title">
  115. QRData
  116. <div class="phpdocumentor-element__package">
  117. in package
  118. <ul class="phpdocumentor-breadcrumbs">
  119. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  120. </ul>
  121. </div>
  122. </h2>
  123. <div class="phpdocumentor-label-line">
  124. <div class="phpdocumentor-label phpdocumentor-label--success"><span>Final</span><span>Yes</span></div>
  125. </div>
  126. <aside class="phpdocumentor-element-found-in">
  127. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRData.php"><a href="files/src-data-qrdata.html"><abbr title="src/Data/QRData.php">QRData.php</abbr></a></abbr>
  128. :
  129. <span class="phpdocumentor-element-found-in__line">22</span>
  130. </aside>
  131. <p class="phpdocumentor-summary">Processes the binary data and maps it on a QRMatrix which is then being returned</p>
  132. <h3 id="toc">
  133. Table of Contents
  134. <a href="classes/chillerlan-QRCode-Data-QRData.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
  135. </h3>
  136. <h4 id="toc-properties">
  137. Properties
  138. <a href="classes/chillerlan-QRCode-Data-QRData.html#toc-properties" class="headerlink"><i class="fas fa-link"></i></a>
  139. </h4>
  140. <dl class="phpdocumentor-table-of-contents">
  141. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  142. <a class="" href="classes/chillerlan-QRCode-Data-QRData.html#property_bitBuffer">$bitBuffer</a>
  143. <span>
  144. &nbsp;: <a href="classes/chillerlan-QRCode-Common-BitBuffer.html"><abbr title="\chillerlan\QRCode\Common\BitBuffer">BitBuffer</abbr></a> </span>
  145. </dt>
  146. <dd>a BitBuffer instance</dd>
  147. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  148. <a class="" href="classes/chillerlan-QRCode-Data-QRData.html#property_dataSegments">$dataSegments</a>
  149. <span>
  150. &nbsp;: array&lt;string|int, <a href="classes/chillerlan-QRCode-Data-QRDataModeInterface.html"><abbr title="\chillerlan\QRCode\Data\QRDataModeInterface">QRDataModeInterface</abbr></a>&gt; </span>
  151. </dt>
  152. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  153. <a class="" href="classes/chillerlan-QRCode-Data-QRData.html#property_eccLevel">$eccLevel</a>
  154. <span>
  155. &nbsp;: <a href="classes/chillerlan-QRCode-Common-EccLevel.html"><abbr title="\chillerlan\QRCode\Common\EccLevel">EccLevel</abbr></a> </span>
  156. </dt>
  157. <dd>an EccLevel instance</dd>
  158. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  159. <a class="" href="classes/chillerlan-QRCode-Data-QRData.html#property_maxBitsForEcc">$maxBitsForEcc</a>
  160. <span>
  161. &nbsp;: array&lt;string|int, int&gt; </span>
  162. </dt>
  163. <dd>Max bits for the current ECC mode</dd>
  164. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  165. <a class="" href="classes/chillerlan-QRCode-Data-QRData.html#property_options">$options</a>
  166. <span>
  167. &nbsp;: <abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr>|<a href="classes/chillerlan-QRCode-QROptions.html"><abbr title="\chillerlan\QRCode\QROptions">QROptions</abbr></a> </span>
  168. </dt>
  169. <dd>the options instance</dd>
  170. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  171. <a class="" href="classes/chillerlan-QRCode-Data-QRData.html#property_version">$version</a>
  172. <span>
  173. &nbsp;: <a href="classes/chillerlan-QRCode-Common-Version.html"><abbr title="\chillerlan\QRCode\Common\Version">Version</abbr></a> </span>
  174. </dt>
  175. <dd>current QR Code version</dd>
  176. </dl>
  177. <h4 id="toc-methods">
  178. Methods
  179. <a href="classes/chillerlan-QRCode-Data-QRData.html#toc-methods" class="headerlink"><i class="fas fa-link"></i></a>
  180. </h4>
  181. <dl class="phpdocumentor-table-of-contents">
  182. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  183. <a class="" href="classes/chillerlan-QRCode-Data-QRData.html#method___construct">__construct()</a>
  184. <span>
  185. &nbsp;: mixed </span>
  186. </dt>
  187. <dd>QRData constructor.</dd>
  188. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  189. <a class="" href="classes/chillerlan-QRCode-Data-QRData.html#method_estimateTotalBitLength">estimateTotalBitLength()</a>
  190. <span>
  191. &nbsp;: int </span>
  192. </dt>
  193. <dd>estimates the total length of the several mode segments in order to guess the minimum version</dd>
  194. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  195. <a class="" href="classes/chillerlan-QRCode-Data-QRData.html#method_getBitBuffer">getBitBuffer()</a>
  196. <span>
  197. &nbsp;: <a href="classes/chillerlan-QRCode-Common-BitBuffer.html"><abbr title="\chillerlan\QRCode\Common\BitBuffer">BitBuffer</abbr></a> </span>
  198. </dt>
  199. <dd>Returns the current BitBuffer instance</dd>
  200. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  201. <a class="" href="classes/chillerlan-QRCode-Data-QRData.html#method_getMinimumVersion">getMinimumVersion()</a>
  202. <span>
  203. &nbsp;: <a href="classes/chillerlan-QRCode-Common-Version.html"><abbr title="\chillerlan\QRCode\Common\Version">Version</abbr></a> </span>
  204. </dt>
  205. <dd>returns the minimum version number for the given string</dd>
  206. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  207. <a class="" href="classes/chillerlan-QRCode-Data-QRData.html#method_setBitBuffer">setBitBuffer()</a>
  208. <span>
  209. &nbsp;: self </span>
  210. </dt>
  211. <dd>Sets a BitBuffer object</dd>
  212. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  213. <a class="" href="classes/chillerlan-QRCode-Data-QRData.html#method_setData">setData()</a>
  214. <span>
  215. &nbsp;: self </span>
  216. </dt>
  217. <dd>Sets the data string (internally called by the constructor)</dd>
  218. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  219. <a class="" href="classes/chillerlan-QRCode-Data-QRData.html#method_writeMatrix">writeMatrix()</a>
  220. <span>
  221. &nbsp;: <a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a> </span>
  222. </dt>
  223. <dd>returns a fresh matrix object with the data written and masked with the given $maskPattern</dd>
  224. <dt class="phpdocumentor-table-of-contents__entry -method -private">
  225. <a class="" href="classes/chillerlan-QRCode-Data-QRData.html#method_writeBitBuffer">writeBitBuffer()</a>
  226. <span>
  227. &nbsp;: void </span>
  228. </dt>
  229. <dd>creates a BitBuffer and writes the string data to it</dd>
  230. </dl>
  231. <section class="phpdocumentor-properties">
  232. <h3 class="phpdocumentor-elements__header" id="properties">
  233. Properties
  234. <a href="classes/chillerlan-QRCode-Data-QRData.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  235. </h3>
  236. <article
  237. class="
  238. phpdocumentor-element
  239. -property
  240. -private
  241. "
  242. >
  243. <h4 class="phpdocumentor-element__name" id="property_bitBuffer">
  244. $bitBuffer
  245. <a href="classes/chillerlan-QRCode-Data-QRData.html#property_bitBuffer" class="headerlink"><i class="fas fa-link"></i></a>
  246. <span class="phpdocumentor-element__modifiers">
  247. </span>
  248. </h4>
  249. <aside class="phpdocumentor-element-found-in">
  250. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRData.php"><a href="files/src-data-qrdata.html"><abbr title="src/Data/QRData.php">QRData.php</abbr></a></abbr>
  251. :
  252. <span class="phpdocumentor-element-found-in__line">32</span>
  253. </aside>
  254. <p class="phpdocumentor-summary">a BitBuffer instance</p>
  255. <code class="phpdocumentor-code phpdocumentor-signature ">
  256. <span class="phpdocumentor-signature__visibility">private</span>
  257. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-Common-BitBuffer.html"><abbr title="\chillerlan\QRCode\Common\BitBuffer">BitBuffer</abbr></a></span>
  258. <span class="phpdocumentor-signature__name">$bitBuffer</span>
  259. </code>
  260. </article>
  261. <article
  262. class="
  263. phpdocumentor-element
  264. -property
  265. -private
  266. "
  267. >
  268. <h4 class="phpdocumentor-element__name" id="property_dataSegments">
  269. $dataSegments
  270. <a href="classes/chillerlan-QRCode-Data-QRData.html#property_dataSegments" class="headerlink"><i class="fas fa-link"></i></a>
  271. <span class="phpdocumentor-element__modifiers">
  272. </span>
  273. </h4>
  274. <aside class="phpdocumentor-element-found-in">
  275. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRData.php"><a href="files/src-data-qrdata.html"><abbr title="src/Data/QRData.php">QRData.php</abbr></a></abbr>
  276. :
  277. <span class="phpdocumentor-element-found-in__line">47</span>
  278. </aside>
  279. <code class="phpdocumentor-code phpdocumentor-signature ">
  280. <span class="phpdocumentor-signature__visibility">private</span>
  281. <span class="phpdocumentor-signature__type">array&lt;string|int, <a href="classes/chillerlan-QRCode-Data-QRDataModeInterface.html"><abbr title="\chillerlan\QRCode\Data\QRDataModeInterface">QRDataModeInterface</abbr></a>&gt;</span>
  282. <span class="phpdocumentor-signature__name">$dataSegments</span>
  283. = <span class="phpdocumentor-signature__default-value">[]</span></code>
  284. </article>
  285. <article
  286. class="
  287. phpdocumentor-element
  288. -property
  289. -private
  290. "
  291. >
  292. <h4 class="phpdocumentor-element__name" id="property_eccLevel">
  293. $eccLevel
  294. <a href="classes/chillerlan-QRCode-Data-QRData.html#property_eccLevel" 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/QRData.php"><a href="files/src-data-qrdata.html"><abbr title="src/Data/QRData.php">QRData.php</abbr></a></abbr>
  300. :
  301. <span class="phpdocumentor-element-found-in__line">37</span>
  302. </aside>
  303. <p class="phpdocumentor-summary">an EccLevel instance</p>
  304. <code class="phpdocumentor-code phpdocumentor-signature ">
  305. <span class="phpdocumentor-signature__visibility">private</span>
  306. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-Common-EccLevel.html"><abbr title="\chillerlan\QRCode\Common\EccLevel">EccLevel</abbr></a></span>
  307. <span class="phpdocumentor-signature__name">$eccLevel</span>
  308. </code>
  309. </article>
  310. <article
  311. class="
  312. phpdocumentor-element
  313. -property
  314. -private
  315. "
  316. >
  317. <h4 class="phpdocumentor-element__name" id="property_maxBitsForEcc">
  318. $maxBitsForEcc
  319. <a href="classes/chillerlan-QRCode-Data-QRData.html#property_maxBitsForEcc" class="headerlink"><i class="fas fa-link"></i></a>
  320. <span class="phpdocumentor-element__modifiers">
  321. </span>
  322. </h4>
  323. <aside class="phpdocumentor-element-found-in">
  324. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRData.php"><a href="files/src-data-qrdata.html"><abbr title="src/Data/QRData.php">QRData.php</abbr></a></abbr>
  325. :
  326. <span class="phpdocumentor-element-found-in__line">54</span>
  327. </aside>
  328. <p class="phpdocumentor-summary">Max bits for the current ECC mode</p>
  329. <code class="phpdocumentor-code phpdocumentor-signature ">
  330. <span class="phpdocumentor-signature__visibility">private</span>
  331. <span class="phpdocumentor-signature__type">array&lt;string|int, int&gt;</span>
  332. <span class="phpdocumentor-signature__name">$maxBitsForEcc</span>
  333. </code>
  334. </article>
  335. <article
  336. class="
  337. phpdocumentor-element
  338. -property
  339. -private
  340. "
  341. >
  342. <h4 class="phpdocumentor-element__name" id="property_options">
  343. $options
  344. <a href="classes/chillerlan-QRCode-Data-QRData.html#property_options" class="headerlink"><i class="fas fa-link"></i></a>
  345. <span class="phpdocumentor-element__modifiers">
  346. </span>
  347. </h4>
  348. <aside class="phpdocumentor-element-found-in">
  349. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRData.php"><a href="files/src-data-qrdata.html"><abbr title="src/Data/QRData.php">QRData.php</abbr></a></abbr>
  350. :
  351. <span class="phpdocumentor-element-found-in__line">27</span>
  352. </aside>
  353. <p class="phpdocumentor-summary">the options instance</p>
  354. <code class="phpdocumentor-code phpdocumentor-signature ">
  355. <span class="phpdocumentor-signature__visibility">private</span>
  356. <span class="phpdocumentor-signature__type"><abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr>|<a href="classes/chillerlan-QRCode-QROptions.html"><abbr title="\chillerlan\QRCode\QROptions">QROptions</abbr></a></span>
  357. <span class="phpdocumentor-signature__name">$options</span>
  358. </code>
  359. </article>
  360. <article
  361. class="
  362. phpdocumentor-element
  363. -property
  364. -private
  365. "
  366. >
  367. <h4 class="phpdocumentor-element__name" id="property_version">
  368. $version
  369. <a href="classes/chillerlan-QRCode-Data-QRData.html#property_version" class="headerlink"><i class="fas fa-link"></i></a>
  370. <span class="phpdocumentor-element__modifiers">
  371. </span>
  372. </h4>
  373. <aside class="phpdocumentor-element-found-in">
  374. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRData.php"><a href="files/src-data-qrdata.html"><abbr title="src/Data/QRData.php">QRData.php</abbr></a></abbr>
  375. :
  376. <span class="phpdocumentor-element-found-in__line">42</span>
  377. </aside>
  378. <p class="phpdocumentor-summary">current QR Code version</p>
  379. <code class="phpdocumentor-code phpdocumentor-signature ">
  380. <span class="phpdocumentor-signature__visibility">private</span>
  381. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-Common-Version.html"><abbr title="\chillerlan\QRCode\Common\Version">Version</abbr></a></span>
  382. <span class="phpdocumentor-signature__name">$version</span>
  383. </code>
  384. </article>
  385. </section>
  386. <section class="phpdocumentor-methods">
  387. <h3 class="phpdocumentor-elements__header" id="methods">
  388. Methods
  389. <a href="classes/chillerlan-QRCode-Data-QRData.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  390. </h3>
  391. <article
  392. class="phpdocumentor-element
  393. -method
  394. -public
  395. "
  396. >
  397. <h4 class="phpdocumentor-element__name" id="method___construct">
  398. __construct()
  399. <a href="classes/chillerlan-QRCode-Data-QRData.html#method___construct" class="headerlink"><i class="fas fa-link"></i></a>
  400. </h4>
  401. <aside class="phpdocumentor-element-found-in">
  402. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRData.php"><a href="files/src-data-qrdata.html"><abbr title="src/Data/QRData.php">QRData.php</abbr></a></abbr>
  403. :
  404. <span class="phpdocumentor-element-found-in__line">61</span>
  405. </aside>
  406. <p class="phpdocumentor-summary">QRData constructor.</p>
  407. <code class="phpdocumentor-code phpdocumentor-signature ">
  408. <span class="phpdocumentor-signature__visibility">public</span>
  409. <span class="phpdocumentor-signature__name">__construct</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr>|<a href="classes/chillerlan-QRCode-QROptions.html"><abbr title="\chillerlan\QRCode\QROptions">QROptions</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$options</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, <a href="classes/chillerlan-QRCode-Data-QRDataModeInterface.html"><abbr title="\chillerlan\QRCode\Data\QRDataModeInterface">QRDataModeInterface</abbr></a>&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$dataSegments</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">[]</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
  410. <div class="phpdocumentor-label-line">
  411. </div>
  412. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  413. <dl class="phpdocumentor-argument-list">
  414. <dt class="phpdocumentor-argument-list__entry">
  415. <span class="phpdocumentor-signature__argument__name">$options</span>
  416. : <span class="phpdocumentor-signature__argument__return-type"><abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr>|<a href="classes/chillerlan-QRCode-QROptions.html"><abbr title="\chillerlan\QRCode\QROptions">QROptions</abbr></a></span>
  417. </dt>
  418. <dd class="phpdocumentor-argument-list__definition">
  419. </dd>
  420. <dt class="phpdocumentor-argument-list__entry">
  421. <span class="phpdocumentor-signature__argument__name">$dataSegments</span>
  422. : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, <a href="classes/chillerlan-QRCode-Data-QRDataModeInterface.html"><abbr title="\chillerlan\QRCode\Data\QRDataModeInterface">QRDataModeInterface</abbr></a>&gt;</span>
  423. = <span class="phpdocumentor-signature__argument__default-value">[]</span> </dt>
  424. <dd class="phpdocumentor-argument-list__definition">
  425. </dd>
  426. </dl>
  427. </article>
  428. <article
  429. class="phpdocumentor-element
  430. -method
  431. -public
  432. "
  433. >
  434. <h4 class="phpdocumentor-element__name" id="method_estimateTotalBitLength">
  435. estimateTotalBitLength()
  436. <a href="classes/chillerlan-QRCode-Data-QRData.html#method_estimateTotalBitLength" class="headerlink"><i class="fas fa-link"></i></a>
  437. </h4>
  438. <aside class="phpdocumentor-element-found-in">
  439. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRData.php"><a href="files/src-data-qrdata.html"><abbr title="src/Data/QRData.php">QRData.php</abbr></a></abbr>
  440. :
  441. <span class="phpdocumentor-element-found-in__line">137</span>
  442. </aside>
  443. <p class="phpdocumentor-summary">estimates the total length of the several mode segments in order to guess the minimum version</p>
  444. <code class="phpdocumentor-code phpdocumentor-signature ">
  445. <span class="phpdocumentor-signature__visibility">public</span>
  446. <span class="phpdocumentor-signature__name">estimateTotalBitLength</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  447. <div class="phpdocumentor-label-line">
  448. </div>
  449. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  450. Tags
  451. <a href="classes/chillerlan-QRCode-Data-QRData.html#method_estimateTotalBitLength#tags" class="headerlink"><i class="fas fa-link"></i></a>
  452. </h5>
  453. <dl class="phpdocumentor-tag-list">
  454. <dt class="phpdocumentor-tag-list__entry">
  455. <span class="phpdocumentor-tag__name">throws</span>
  456. </dt>
  457. <dd class="phpdocumentor-tag-list__definition">
  458. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Data-QRCodeDataException.html"><abbr title="\chillerlan\QRCode\Data\QRCodeDataException">QRCodeDataException</abbr></a></span>
  459. </dd>
  460. </dl>
  461. <section>
  462. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  463. <span class="phpdocumentor-signature__response_type">int</span>
  464. </section>
  465. </article>
  466. <article
  467. class="phpdocumentor-element
  468. -method
  469. -public
  470. "
  471. >
  472. <h4 class="phpdocumentor-element__name" id="method_getBitBuffer">
  473. getBitBuffer()
  474. <a href="classes/chillerlan-QRCode-Data-QRData.html#method_getBitBuffer" class="headerlink"><i class="fas fa-link"></i></a>
  475. </h4>
  476. <aside class="phpdocumentor-element-found-in">
  477. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRData.php"><a href="files/src-data-qrdata.html"><abbr title="src/Data/QRData.php">QRData.php</abbr></a></abbr>
  478. :
  479. <span class="phpdocumentor-element-found-in__line">92</span>
  480. </aside>
  481. <p class="phpdocumentor-summary">Returns the current BitBuffer instance</p>
  482. <code class="phpdocumentor-code phpdocumentor-signature ">
  483. <span class="phpdocumentor-signature__visibility">public</span>
  484. <span class="phpdocumentor-signature__name">getBitBuffer</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Common-BitBuffer.html"><abbr title="\chillerlan\QRCode\Common\BitBuffer">BitBuffer</abbr></a></span></code>
  485. <div class="phpdocumentor-label-line">
  486. </div>
  487. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  488. Tags
  489. <a href="classes/chillerlan-QRCode-Data-QRData.html#method_getBitBuffer#tags" class="headerlink"><i class="fas fa-link"></i></a>
  490. </h5>
  491. <dl class="phpdocumentor-tag-list">
  492. <dt class="phpdocumentor-tag-list__entry">
  493. <span class="phpdocumentor-tag__name">codeCoverageIgnore</span>
  494. </dt>
  495. <dd class="phpdocumentor-tag-list__definition">
  496. </dd>
  497. </dl>
  498. <section>
  499. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  500. <span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Common-BitBuffer.html"><abbr title="\chillerlan\QRCode\Common\BitBuffer">BitBuffer</abbr></a></span>
  501. </section>
  502. </article>
  503. <article
  504. class="phpdocumentor-element
  505. -method
  506. -public
  507. "
  508. >
  509. <h4 class="phpdocumentor-element__name" id="method_getMinimumVersion">
  510. getMinimumVersion()
  511. <a href="classes/chillerlan-QRCode-Data-QRData.html#method_getMinimumVersion" class="headerlink"><i class="fas fa-link"></i></a>
  512. </h4>
  513. <aside class="phpdocumentor-element-found-in">
  514. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRData.php"><a href="files/src-data-qrdata.html"><abbr title="src/Data/QRData.php">QRData.php</abbr></a></abbr>
  515. :
  516. <span class="phpdocumentor-element-found-in__line">190</span>
  517. </aside>
  518. <p class="phpdocumentor-summary">returns the minimum version number for the given string</p>
  519. <code class="phpdocumentor-code phpdocumentor-signature ">
  520. <span class="phpdocumentor-signature__visibility">public</span>
  521. <span class="phpdocumentor-signature__name">getMinimumVersion</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Common-Version.html"><abbr title="\chillerlan\QRCode\Common\Version">Version</abbr></a></span></code>
  522. <div class="phpdocumentor-label-line">
  523. </div>
  524. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  525. Tags
  526. <a href="classes/chillerlan-QRCode-Data-QRData.html#method_getMinimumVersion#tags" class="headerlink"><i class="fas fa-link"></i></a>
  527. </h5>
  528. <dl class="phpdocumentor-tag-list">
  529. <dt class="phpdocumentor-tag-list__entry">
  530. <span class="phpdocumentor-tag__name">throws</span>
  531. </dt>
  532. <dd class="phpdocumentor-tag-list__definition">
  533. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Data-QRCodeDataException.html"><abbr title="\chillerlan\QRCode\Data\QRCodeDataException">QRCodeDataException</abbr></a></span>
  534. </dd>
  535. </dl>
  536. <section>
  537. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  538. <span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Common-Version.html"><abbr title="\chillerlan\QRCode\Common\Version">Version</abbr></a></span>
  539. </section>
  540. </article>
  541. <article
  542. class="phpdocumentor-element
  543. -method
  544. -public
  545. "
  546. >
  547. <h4 class="phpdocumentor-element__name" id="method_setBitBuffer">
  548. setBitBuffer()
  549. <a href="classes/chillerlan-QRCode-Data-QRData.html#method_setBitBuffer" class="headerlink"><i class="fas fa-link"></i></a>
  550. </h4>
  551. <aside class="phpdocumentor-element-found-in">
  552. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRData.php"><a href="files/src-data-qrdata.html"><abbr title="src/Data/QRData.php">QRData.php</abbr></a></abbr>
  553. :
  554. <span class="phpdocumentor-element-found-in__line">105</span>
  555. </aside>
  556. <p class="phpdocumentor-summary">Sets a BitBuffer object</p>
  557. <code class="phpdocumentor-code phpdocumentor-signature ">
  558. <span class="phpdocumentor-signature__visibility">public</span>
  559. <span class="phpdocumentor-signature__name">setBitBuffer</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>)</span><span> : </span><span class="phpdocumentor-signature__response_type">self</span></code>
  560. <div class="phpdocumentor-label-line">
  561. </div>
  562. <section class="phpdocumentor-description"><p>This can be used instead of setData(), however, the version auto-detection is not available in this case.
  563. The version needs to match the length bits range for the data mode the data has been encoded with,
  564. additionally the bit array needs to contain enough pad bits.</p>
  565. </section>
  566. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  567. <dl class="phpdocumentor-argument-list">
  568. <dt class="phpdocumentor-argument-list__entry">
  569. <span class="phpdocumentor-signature__argument__name">$bitBuffer</span>
  570. : <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>
  571. </dt>
  572. <dd class="phpdocumentor-argument-list__definition">
  573. </dd>
  574. </dl>
  575. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  576. Tags
  577. <a href="classes/chillerlan-QRCode-Data-QRData.html#method_setBitBuffer#tags" class="headerlink"><i class="fas fa-link"></i></a>
  578. </h5>
  579. <dl class="phpdocumentor-tag-list">
  580. <dt class="phpdocumentor-tag-list__entry">
  581. <span class="phpdocumentor-tag__name">throws</span>
  582. </dt>
  583. <dd class="phpdocumentor-tag-list__definition">
  584. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Data-QRCodeDataException.html"><abbr title="\chillerlan\QRCode\Data\QRCodeDataException">QRCodeDataException</abbr></a></span>
  585. </dd>
  586. </dl>
  587. <section>
  588. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  589. <span class="phpdocumentor-signature__response_type">self</span>
  590. </section>
  591. </article>
  592. <article
  593. class="phpdocumentor-element
  594. -method
  595. -public
  596. "
  597. >
  598. <h4 class="phpdocumentor-element__name" id="method_setData">
  599. setData()
  600. <a href="classes/chillerlan-QRCode-Data-QRData.html#method_setData" class="headerlink"><i class="fas fa-link"></i></a>
  601. </h4>
  602. <aside class="phpdocumentor-element-found-in">
  603. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRData.php"><a href="files/src-data-qrdata.html"><abbr title="src/Data/QRData.php">QRData.php</abbr></a></abbr>
  604. :
  605. <span class="phpdocumentor-element-found-in__line">77</span>
  606. </aside>
  607. <p class="phpdocumentor-summary">Sets the data string (internally called by the constructor)</p>
  608. <code class="phpdocumentor-code phpdocumentor-signature ">
  609. <span class="phpdocumentor-signature__visibility">public</span>
  610. <span class="phpdocumentor-signature__name">setData</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, <a href="classes/chillerlan-QRCode-Data-QRDataModeInterface.html"><abbr title="\chillerlan\QRCode\Data\QRDataModeInterface">QRDataModeInterface</abbr></a>&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$dataSegments</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">self</span></code>
  611. <div class="phpdocumentor-label-line">
  612. </div>
  613. <section class="phpdocumentor-description"><p>Subsequent calls will overwrite the current state - use the QRCode::add*Segement() method instead</p>
  614. </section>
  615. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  616. <dl class="phpdocumentor-argument-list">
  617. <dt class="phpdocumentor-argument-list__entry">
  618. <span class="phpdocumentor-signature__argument__name">$dataSegments</span>
  619. : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, <a href="classes/chillerlan-QRCode-Data-QRDataModeInterface.html"><abbr title="\chillerlan\QRCode\Data\QRDataModeInterface">QRDataModeInterface</abbr></a>&gt;</span>
  620. </dt>
  621. <dd class="phpdocumentor-argument-list__definition">
  622. </dd>
  623. </dl>
  624. <section>
  625. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  626. <span class="phpdocumentor-signature__response_type">self</span>
  627. </section>
  628. </article>
  629. <article
  630. class="phpdocumentor-element
  631. -method
  632. -public
  633. "
  634. >
  635. <h4 class="phpdocumentor-element__name" id="method_writeMatrix">
  636. writeMatrix()
  637. <a href="classes/chillerlan-QRCode-Data-QRData.html#method_writeMatrix" class="headerlink"><i class="fas fa-link"></i></a>
  638. </h4>
  639. <aside class="phpdocumentor-element-found-in">
  640. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRData.php"><a href="files/src-data-qrdata.html"><abbr title="src/Data/QRData.php">QRData.php</abbr></a></abbr>
  641. :
  642. <span class="phpdocumentor-element-found-in__line">125</span>
  643. </aside>
  644. <p class="phpdocumentor-summary">returns a fresh matrix object with the data written and masked with the given $maskPattern</p>
  645. <code class="phpdocumentor-code phpdocumentor-signature ">
  646. <span class="phpdocumentor-signature__visibility">public</span>
  647. <span class="phpdocumentor-signature__name">writeMatrix</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a></span></code>
  648. <div class="phpdocumentor-label-line">
  649. </div>
  650. <section>
  651. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  652. <span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a></span>
  653. </section>
  654. </article>
  655. <article
  656. class="phpdocumentor-element
  657. -method
  658. -private
  659. "
  660. >
  661. <h4 class="phpdocumentor-element__name" id="method_writeBitBuffer">
  662. writeBitBuffer()
  663. <a href="classes/chillerlan-QRCode-Data-QRData.html#method_writeBitBuffer" class="headerlink"><i class="fas fa-link"></i></a>
  664. </h4>
  665. <aside class="phpdocumentor-element-found-in">
  666. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRData.php"><a href="files/src-data-qrdata.html"><abbr title="src/Data/QRData.php">QRData.php</abbr></a></abbr>
  667. :
  668. <span class="phpdocumentor-element-found-in__line">214</span>
  669. </aside>
  670. <p class="phpdocumentor-summary">creates a BitBuffer and writes the string data to it</p>
  671. <code class="phpdocumentor-code phpdocumentor-signature ">
  672. <span class="phpdocumentor-signature__visibility">private</span>
  673. <span class="phpdocumentor-signature__name">writeBitBuffer</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  674. <div class="phpdocumentor-label-line">
  675. </div>
  676. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  677. Tags
  678. <a href="classes/chillerlan-QRCode-Data-QRData.html#method_writeBitBuffer#tags" class="headerlink"><i class="fas fa-link"></i></a>
  679. </h5>
  680. <dl class="phpdocumentor-tag-list">
  681. <dt class="phpdocumentor-tag-list__entry">
  682. <span class="phpdocumentor-tag__name">throws</span>
  683. </dt>
  684. <dd class="phpdocumentor-tag-list__definition">
  685. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Data-QRCodeDataException.html"><abbr title="\chillerlan\QRCode\Data\QRCodeDataException">QRCodeDataException</abbr></a></span>
  686. <section class="phpdocumentor-description"><p>on data overflow</p>
  687. </section>
  688. </dd>
  689. </dl>
  690. </article>
  691. </section>
  692. <div class="phpdocumentor-modal" id="source-view">
  693. <div class="phpdocumentor-modal-bg" data-exit-button></div>
  694. <div class="phpdocumentor-modal-container">
  695. <div class="phpdocumentor-modal-content">
  696. <pre style="max-height: 500px; overflow-y: scroll" data-src="files/src/Data/QRData.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
  697. </div>
  698. <button data-exit-button class="phpdocumentor-modal__close">&times;</button>
  699. </div>
  700. </div>
  701. <script type="text/javascript">
  702. (function () {
  703. function loadExternalCodeSnippet(el, url, line) {
  704. Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
  705. const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
  706. const language = 'php';
  707. const code = document.createElement('code');
  708. code.className = 'language-' + language;
  709. pre.textContent = '';
  710. pre.setAttribute('data-line', line)
  711. code.textContent = 'Loading…';
  712. pre.appendChild(code);
  713. var xhr = new XMLHttpRequest();
  714. xhr.open('GET', src, true);
  715. xhr.onreadystatechange = function () {
  716. if (xhr.readyState !== 4) {
  717. return;
  718. }
  719. if (xhr.status < 400 && xhr.responseText) {
  720. code.textContent = xhr.responseText;
  721. Prism.highlightElement(code);
  722. d=document.getElementsByClassName("line-numbers");
  723. d[0].scrollTop = d[0].children[1].offsetTop;
  724. return;
  725. }
  726. if (xhr.status === 404) {
  727. code.textContent = '✖ Error: File could not be found';
  728. return;
  729. }
  730. if (xhr.status >= 400) {
  731. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  732. return;
  733. }
  734. code.textContent = '✖ Error: An unknown error occurred';
  735. };
  736. xhr.send(null);
  737. });
  738. }
  739. const modalButtons = document.querySelectorAll("[data-modal]");
  740. const openedAsLocalFile = window.location.protocol === 'file:';
  741. if (modalButtons.length > 0 && openedAsLocalFile) {
  742. console.warn(
  743. 'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
  744. 'browsers block XHR requests when a page is opened this way'
  745. );
  746. }
  747. modalButtons.forEach(function (trigger) {
  748. if (openedAsLocalFile) {
  749. trigger.setAttribute("hidden", "hidden");
  750. }
  751. trigger.addEventListener("click", function (event) {
  752. event.preventDefault();
  753. const modal = document.getElementById(trigger.dataset.modal);
  754. if (!modal) {
  755. console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
  756. return;
  757. }
  758. modal.classList.add("phpdocumentor-modal__open");
  759. loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
  760. const exits = modal.querySelectorAll("[data-exit-button]");
  761. exits.forEach(function (exit) {
  762. exit.addEventListener("click", function (event) {
  763. event.preventDefault();
  764. modal.classList.remove("phpdocumentor-modal__open");
  765. });
  766. });
  767. });
  768. });
  769. })();
  770. </script>
  771. </article>
  772. </section>
  773. <section class="phpdocumentor-on-this-page__sidebar">
  774. <section class="phpdocumentor-on-this-page__content">
  775. <strong class="phpdocumentor-on-this-page__title">On this page</strong>
  776. <ul class="phpdocumentor-list -clean">
  777. <li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
  778. <li>
  779. <ul class="phpdocumentor-list -clean">
  780. <li><a href="classes/chillerlan-QRCode-Data-QRData.html#toc-properties">Properties</a></li>
  781. <li><a href="classes/chillerlan-QRCode-Data-QRData.html#toc-methods">Methods</a></li>
  782. </ul>
  783. </li>
  784. <li class="phpdocumentor-on-this-page-section__title">Properties</li>
  785. <li>
  786. <ul class="phpdocumentor-list -clean">
  787. <li class=""><a href="classes/chillerlan-QRCode-Data-QRData.html#property_bitBuffer">$bitBuffer</a></li>
  788. <li class=""><a href="classes/chillerlan-QRCode-Data-QRData.html#property_dataSegments">$dataSegments</a></li>
  789. <li class=""><a href="classes/chillerlan-QRCode-Data-QRData.html#property_eccLevel">$eccLevel</a></li>
  790. <li class=""><a href="classes/chillerlan-QRCode-Data-QRData.html#property_maxBitsForEcc">$maxBitsForEcc</a></li>
  791. <li class=""><a href="classes/chillerlan-QRCode-Data-QRData.html#property_options">$options</a></li>
  792. <li class=""><a href="classes/chillerlan-QRCode-Data-QRData.html#property_version">$version</a></li>
  793. </ul>
  794. </li>
  795. <li class="phpdocumentor-on-this-page-section__title">Methods</li>
  796. <li>
  797. <ul class="phpdocumentor-list -clean">
  798. <li class=""><a href="classes/chillerlan-QRCode-Data-QRData.html#method___construct">__construct()</a></li>
  799. <li class=""><a href="classes/chillerlan-QRCode-Data-QRData.html#method_estimateTotalBitLength">estimateTotalBitLength()</a></li>
  800. <li class=""><a href="classes/chillerlan-QRCode-Data-QRData.html#method_getBitBuffer">getBitBuffer()</a></li>
  801. <li class=""><a href="classes/chillerlan-QRCode-Data-QRData.html#method_getMinimumVersion">getMinimumVersion()</a></li>
  802. <li class=""><a href="classes/chillerlan-QRCode-Data-QRData.html#method_setBitBuffer">setBitBuffer()</a></li>
  803. <li class=""><a href="classes/chillerlan-QRCode-Data-QRData.html#method_setData">setData()</a></li>
  804. <li class=""><a href="classes/chillerlan-QRCode-Data-QRData.html#method_writeMatrix">writeMatrix()</a></li>
  805. <li class=""><a href="classes/chillerlan-QRCode-Data-QRData.html#method_writeBitBuffer">writeBitBuffer()</a></li>
  806. </ul>
  807. </li>
  808. </ul>
  809. </section>
  810. </section>
  811. </div>
  812. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  813. <section class="phpdocumentor-search-results__dialog">
  814. <header class="phpdocumentor-search-results__header">
  815. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  816. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  817. </header>
  818. <section class="phpdocumentor-search-results__body">
  819. <ul class="phpdocumentor-search-results__entries"></ul>
  820. </section>
  821. </section>
  822. </section>
  823. </div>
  824. <a href="classes/chillerlan-QRCode-Data-QRData.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  825. </main>
  826. <script>
  827. cssVars({});
  828. </script>
  829. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  830. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  831. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  832. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  833. </body>
  834. </html>