chillerlan-QRCode-Data-QRDataModeAbstract.html 29 KB

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