chillerlan-QRCode-Data-QRDataModeAbstract.html 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637
  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. </ul>
  59. </nav>
  60. </header>
  61. <main class="phpdocumentor">
  62. <div class="phpdocumentor-section">
  63. <input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
  64. <label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
  65. Menu
  66. </label>
  67. <aside class="phpdocumentor-column -three phpdocumentor-sidebar">
  68. <section class="phpdocumentor-sidebar__category">
  69. <h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
  70. <h4 class="phpdocumentor-sidebar__root-namespace">
  71. <a href="namespaces/chillerlan.html" class="">chillerlan</a>
  72. </h4>
  73. <ul class="phpdocumentor-list">
  74. <li>
  75. <a href="namespaces/chillerlan-qrcode.html" class="">QRCode</a>
  76. </li>
  77. <li>
  78. <a href="namespaces/chillerlan-qrcodetest.html" class="">QRCodeTest</a>
  79. </li>
  80. </ul>
  81. </section>
  82. <section class="phpdocumentor-sidebar__category">
  83. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  84. <h4 class="phpdocumentor-sidebar__root-namespace">
  85. <a href="packages/Application.html" class="">Application</a>
  86. </h4>
  87. </section>
  88. <section class="phpdocumentor-sidebar__category">
  89. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  90. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  91. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  92. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  93. </section>
  94. <section class="phpdocumentor-sidebar__category">
  95. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  96. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  97. </section>
  98. </aside>
  99. <div class="phpdocumentor-column -nine phpdocumentor-content">
  100. <section>
  101. <ul class="phpdocumentor-breadcrumbs">
  102. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  103. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode.html">QRCode</a></li>
  104. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode-data.html">Data</a></li>
  105. </ul>
  106. <article class="phpdocumentor-element -class">
  107. <h2 class="phpdocumentor-content__title">
  108. QRDataModeAbstract
  109. <div class="phpdocumentor-element__package">
  110. in package
  111. <ul class="phpdocumentor-breadcrumbs">
  112. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  113. </ul>
  114. </div>
  115. <span class="phpdocumentor-element__implements">
  116. implements
  117. <a href="classes/chillerlan-QRCode-Data-QRDataModeInterface.html"><abbr title="\chillerlan\QRCode\Data\QRDataModeInterface">QRDataModeInterface</abbr></a> </span>
  118. </h2>
  119. <div class="phpdocumentor-label-line">
  120. <div class="phpdocumentor-label phpdocumentor-label--success"><span>Abstract</span><span>Yes</span></div>
  121. </div>
  122. <aside class="phpdocumentor-element-found-in">
  123. <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>
  124. :
  125. <span class="phpdocumentor-element-found-in__line">18</span>
  126. </aside>
  127. <p class="phpdocumentor-summary">abstract methods for the several data modes</p>
  128. <h3 id="toc">
  129. Table of Contents
  130. <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
  131. </h3>
  132. <h4 id="toc-interfaces">
  133. Interfaces
  134. <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#toc-interfaces" class="headerlink"><i class="fas fa-link"></i></a>
  135. </h4>
  136. <dl class="phpdocumentor-table-of-contents">
  137. <dt class="phpdocumentor-table-of-contents__entry -interface"><a href="classes/chillerlan-QRCode-Data-QRDataModeInterface.html"><abbr title="\chillerlan\QRCode\Data\QRDataModeInterface">QRDataModeInterface</abbr></a></dt><dd>Specifies the methods reqired for the data modules (Number, Alphanum, Byte and Kanji)</dd> </dl>
  138. <h4 id="toc-properties">
  139. Properties
  140. <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#toc-properties" class="headerlink"><i class="fas fa-link"></i></a>
  141. </h4>
  142. <dl class="phpdocumentor-table-of-contents">
  143. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  144. <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#property_data">$data</a>
  145. <span>
  146. &nbsp;: string </span>
  147. </dt>
  148. <dd>The data to write</dd>
  149. </dl>
  150. <h4 id="toc-methods">
  151. Methods
  152. <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#toc-methods" class="headerlink"><i class="fas fa-link"></i></a>
  153. </h4>
  154. <dl class="phpdocumentor-table-of-contents">
  155. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  156. <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method___construct">__construct()</a>
  157. <span>
  158. &nbsp;: mixed </span>
  159. </dt>
  160. <dd>QRDataModeAbstract constructor.</dd>
  161. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  162. <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method_convertEncoding">convertEncoding()</a>
  163. <span>
  164. &nbsp;: string </span>
  165. </dt>
  166. <dd>encoding conversion helper</dd>
  167. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  168. <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method_getCharCount">getCharCount()</a>
  169. <span>
  170. &nbsp;: int </span>
  171. </dt>
  172. <dd>returns the character count of the $data string</dd>
  173. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  174. <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method_getLengthBits">getLengthBits()</a>
  175. <span>
  176. &nbsp;: int </span>
  177. </dt>
  178. <dd>shortcut</dd>
  179. </dl>
  180. <section class="phpdocumentor-properties">
  181. <h3 class="phpdocumentor-elements__header" id="properties">
  182. Properties
  183. <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  184. </h3>
  185. <article
  186. class="
  187. phpdocumentor-element
  188. -property
  189. -protected
  190. "
  191. >
  192. <h4 class="phpdocumentor-element__name" id="property_data">
  193. $data
  194. <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#property_data" class="headerlink"><i class="fas fa-link"></i></a>
  195. <span class="phpdocumentor-element__modifiers">
  196. </span>
  197. </h4>
  198. <aside class="phpdocumentor-element-found-in">
  199. <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>
  200. :
  201. <span class="phpdocumentor-element-found-in__line">23</span>
  202. </aside>
  203. <p class="phpdocumentor-summary">The data to write</p>
  204. <code class="phpdocumentor-code phpdocumentor-signature ">
  205. <span class="phpdocumentor-signature__visibility">protected</span>
  206. <span class="phpdocumentor-signature__type">string</span>
  207. <span class="phpdocumentor-signature__name">$data</span>
  208. </code>
  209. </article>
  210. </section>
  211. <section class="phpdocumentor-methods">
  212. <h3 class="phpdocumentor-elements__header" id="methods">
  213. Methods
  214. <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  215. </h3>
  216. <article
  217. class="phpdocumentor-element
  218. -method
  219. -public
  220. "
  221. >
  222. <h4 class="phpdocumentor-element__name" id="method___construct">
  223. __construct()
  224. <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method___construct" class="headerlink"><i class="fas fa-link"></i></a>
  225. </h4>
  226. <aside class="phpdocumentor-element-found-in">
  227. <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>
  228. :
  229. <span class="phpdocumentor-element-found-in__line">30</span>
  230. </aside>
  231. <p class="phpdocumentor-summary">QRDataModeAbstract constructor.</p>
  232. <code class="phpdocumentor-code phpdocumentor-signature ">
  233. <span class="phpdocumentor-signature__visibility">public</span>
  234. <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>
  235. <div class="phpdocumentor-label-line">
  236. </div>
  237. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  238. <dl class="phpdocumentor-argument-list">
  239. <dt class="phpdocumentor-argument-list__entry">
  240. <span class="phpdocumentor-signature__argument__name">$data</span>
  241. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  242. </dt>
  243. <dd class="phpdocumentor-argument-list__definition">
  244. </dd>
  245. </dl>
  246. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  247. Tags
  248. <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method___construct#tags" class="headerlink"><i class="fas fa-link"></i></a>
  249. </h5>
  250. <dl class="phpdocumentor-tag-list">
  251. <dt class="phpdocumentor-tag-list__entry">
  252. <span class="phpdocumentor-tag__name">throws</span>
  253. </dt>
  254. <dd class="phpdocumentor-tag-list__definition">
  255. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Data-QRCodeDataException.html"><abbr title="\chillerlan\QRCode\Data\QRCodeDataException">QRCodeDataException</abbr></a></span>
  256. </dd>
  257. </dl>
  258. </article>
  259. <article
  260. class="phpdocumentor-element
  261. -method
  262. -public
  263. -static "
  264. >
  265. <h4 class="phpdocumentor-element__name" id="method_convertEncoding">
  266. convertEncoding()
  267. <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method_convertEncoding" class="headerlink"><i class="fas fa-link"></i></a>
  268. </h4>
  269. <aside class="phpdocumentor-element-found-in">
  270. <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>
  271. :
  272. <span class="phpdocumentor-element-found-in__line">50</span>
  273. </aside>
  274. <p class="phpdocumentor-summary">encoding conversion helper</p>
  275. <code class="phpdocumentor-code phpdocumentor-signature ">
  276. <span class="phpdocumentor-signature__visibility">public</span>
  277. <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>
  278. <div class="phpdocumentor-label-line">
  279. </div>
  280. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  281. <dl class="phpdocumentor-argument-list">
  282. <dt class="phpdocumentor-argument-list__entry">
  283. <span class="phpdocumentor-signature__argument__name">$string</span>
  284. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  285. </dt>
  286. <dd class="phpdocumentor-argument-list__definition">
  287. </dd>
  288. </dl>
  289. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  290. Tags
  291. <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method_convertEncoding#tags" class="headerlink"><i class="fas fa-link"></i></a>
  292. </h5>
  293. <dl class="phpdocumentor-tag-list">
  294. <dt class="phpdocumentor-tag-list__entry">
  295. <span class="phpdocumentor-tag__name">inheritDoc</span>
  296. </dt>
  297. <dd class="phpdocumentor-tag-list__definition">
  298. </dd>
  299. </dl>
  300. <section>
  301. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  302. <span class="phpdocumentor-signature__response_type">string</span>
  303. </section>
  304. </article>
  305. <article
  306. class="phpdocumentor-element
  307. -method
  308. -protected
  309. "
  310. >
  311. <h4 class="phpdocumentor-element__name" id="method_getCharCount">
  312. getCharCount()
  313. <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method_getCharCount" class="headerlink"><i class="fas fa-link"></i></a>
  314. </h4>
  315. <aside class="phpdocumentor-element-found-in">
  316. <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>
  317. :
  318. <span class="phpdocumentor-element-found-in__line">43</span>
  319. </aside>
  320. <p class="phpdocumentor-summary">returns the character count of the $data string</p>
  321. <code class="phpdocumentor-code phpdocumentor-signature ">
  322. <span class="phpdocumentor-signature__visibility">protected</span>
  323. <span class="phpdocumentor-signature__name">getCharCount</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  324. <div class="phpdocumentor-label-line">
  325. </div>
  326. <section>
  327. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  328. <span class="phpdocumentor-signature__response_type">int</span>
  329. </section>
  330. </article>
  331. <article
  332. class="phpdocumentor-element
  333. -method
  334. -protected
  335. -static "
  336. >
  337. <h4 class="phpdocumentor-element__name" id="method_getLengthBits">
  338. getLengthBits()
  339. <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method_getLengthBits" class="headerlink"><i class="fas fa-link"></i></a>
  340. </h4>
  341. <aside class="phpdocumentor-element-found-in">
  342. <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>
  343. :
  344. <span class="phpdocumentor-element-found-in__line">57</span>
  345. </aside>
  346. <p class="phpdocumentor-summary">shortcut</p>
  347. <code class="phpdocumentor-code phpdocumentor-signature ">
  348. <span class="phpdocumentor-signature__visibility">protected</span>
  349. <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>
  350. <div class="phpdocumentor-label-line">
  351. </div>
  352. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  353. <dl class="phpdocumentor-argument-list">
  354. <dt class="phpdocumentor-argument-list__entry">
  355. <span class="phpdocumentor-signature__argument__name">$versionNumber</span>
  356. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  357. </dt>
  358. <dd class="phpdocumentor-argument-list__definition">
  359. </dd>
  360. </dl>
  361. <section>
  362. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  363. <span class="phpdocumentor-signature__response_type">int</span>
  364. </section>
  365. </article>
  366. </section>
  367. <div class="phpdocumentor-modal" id="source-view">
  368. <div class="phpdocumentor-modal-bg" data-exit-button></div>
  369. <div class="phpdocumentor-modal-container">
  370. <div class="phpdocumentor-modal-content">
  371. <pre style="max-height: 500px; overflow-y: scroll" data-src="files/src/Data/QRDataModeAbstract.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
  372. </div>
  373. <button data-exit-button class="phpdocumentor-modal__close">&times;</button>
  374. </div>
  375. </div>
  376. <script type="text/javascript">
  377. (function () {
  378. function loadExternalCodeSnippet(el, url, line) {
  379. Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
  380. const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
  381. const language = 'php';
  382. const code = document.createElement('code');
  383. code.className = 'language-' + language;
  384. pre.textContent = '';
  385. pre.setAttribute('data-line', line)
  386. code.textContent = 'Loading…';
  387. pre.appendChild(code);
  388. var xhr = new XMLHttpRequest();
  389. xhr.open('GET', src, true);
  390. xhr.onreadystatechange = function () {
  391. if (xhr.readyState !== 4) {
  392. return;
  393. }
  394. if (xhr.status < 400 && xhr.responseText) {
  395. code.textContent = xhr.responseText;
  396. Prism.highlightElement(code);
  397. return;
  398. }
  399. if (xhr.status === 404) {
  400. code.textContent = '✖ Error: File could not be found';
  401. return;
  402. }
  403. if (xhr.status >= 400) {
  404. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  405. return;
  406. }
  407. code.textContent = '✖ Error: An unknown error occurred';
  408. };
  409. xhr.send(null);
  410. });
  411. }
  412. const modalButtons = document.querySelectorAll("[data-modal]");
  413. const openedAsLocalFile = window.location.protocol === 'file:';
  414. if (modalButtons.length > 0 && openedAsLocalFile) {
  415. console.warn(
  416. 'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
  417. 'browsers block XHR requests when a page is opened this way'
  418. );
  419. }
  420. modalButtons.forEach(function (trigger) {
  421. if (openedAsLocalFile) {
  422. trigger.setAttribute("hidden", "hidden");
  423. }
  424. trigger.addEventListener("click", function (event) {
  425. event.preventDefault();
  426. const modal = document.getElementById(trigger.dataset.modal);
  427. if (!modal) {
  428. console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
  429. return;
  430. }
  431. modal.classList.add("phpdocumentor-modal__open");
  432. loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
  433. const exits = modal.querySelectorAll("[data-exit-button]");
  434. exits.forEach(function (exit) {
  435. exit.addEventListener("click", function (event) {
  436. event.preventDefault();
  437. modal.classList.remove("phpdocumentor-modal__open");
  438. });
  439. });
  440. });
  441. });
  442. })();
  443. </script>
  444. </article>
  445. </section>
  446. <section class="phpdocumentor-on-this-page__sidebar">
  447. <section class="phpdocumentor-on-this-page__content">
  448. <strong class="phpdocumentor-on-this-page__title">On this page</strong>
  449. <ul class="phpdocumentor-list -clean">
  450. <li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
  451. <li>
  452. <ul class="phpdocumentor-list -clean">
  453. <li><a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#toc-properties">Properties</a></li>
  454. <li><a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#toc-methods">Methods</a></li>
  455. </ul>
  456. </li>
  457. <li class="phpdocumentor-on-this-page-section__title">Properties</li>
  458. <li>
  459. <ul class="phpdocumentor-list -clean">
  460. <li><a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#property_data">$data<a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html"></li>
  461. </ul>
  462. </li>
  463. <li class="phpdocumentor-on-this-page-section__title">Methods</li>
  464. <li>
  465. <ul class="phpdocumentor-list -clean">
  466. <li><a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method___construct">__construct()</a></li>
  467. <li><a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method_convertEncoding">convertEncoding()</a></li>
  468. <li><a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method_getCharCount">getCharCount()</a></li>
  469. <li><a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method_getLengthBits">getLengthBits()</a></li>
  470. </ul>
  471. </li>
  472. </ul>
  473. </section>
  474. </section>
  475. </div>
  476. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  477. <section class="phpdocumentor-search-results__dialog">
  478. <header class="phpdocumentor-search-results__header">
  479. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  480. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  481. </header>
  482. <section class="phpdocumentor-search-results__body">
  483. <ul class="phpdocumentor-search-results__entries"></ul>
  484. </section>
  485. </section>
  486. </section>
  487. </div>
  488. <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  489. </main>
  490. <script>
  491. cssVars({});
  492. </script>
  493. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  494. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  495. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  496. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  497. </body>
  498. </html>