chillerlan-QRCode-Output-QRFpdf.html 50 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Documentation</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <base href="../">
  8. <link rel="icon" href="images/favicon.ico"/>
  9. <link rel="stylesheet" href="css/normalize.css">
  10. <link rel="stylesheet" href="css/base.css">
  11. <link rel="preconnect" href="https://fonts.gstatic.com">
  12. <link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap" rel="stylesheet">
  13. <link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
  14. <link rel="stylesheet" href="css/template.css">
  15. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
  16. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
  17. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
  18. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
  19. <script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
  20. <script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
  21. <script src="js/search.js"></script>
  22. <script defer src="js/searchIndex.js"></script>
  23. </head>
  24. <body id="top">
  25. <header class="phpdocumentor-header phpdocumentor-section">
  26. <h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
  27. <input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
  28. <label class="phpdocumentor-header__menu-icon" for="menu-button">
  29. <i class="fas fa-bars"></i>
  30. </label>
  31. <section data-search-form class="phpdocumentor-search">
  32. <label>
  33. <span class="visually-hidden">Search for</span>
  34. <svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  35. <circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
  36. <line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
  37. </svg>
  38. <input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
  39. </label>
  40. </section>
  41. <nav class="phpdocumentor-topnav">
  42. <ul class="phpdocumentor-topnav__menu">
  43. </ul>
  44. </nav>
  45. </header>
  46. <main class="phpdocumentor">
  47. <div class="phpdocumentor-section">
  48. <input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
  49. <label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
  50. Menu
  51. </label>
  52. <aside class="phpdocumentor-column -four phpdocumentor-sidebar">
  53. <section class="phpdocumentor-sidebar__category">
  54. <h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
  55. <h4 class="phpdocumentor-sidebar__root-namespace"><a href="namespaces/chillerlan.html">chillerlan</a></h4>
  56. <ul class="phpdocumentor-list">
  57. <li>
  58. <a href="namespaces/chillerlan-qrcode.html">QRCode</a>
  59. </li>
  60. <li>
  61. <a href="namespaces/chillerlan-qrcodetest.html">QRCodeTest</a>
  62. </li>
  63. </ul>
  64. </section>
  65. <section class="phpdocumentor-sidebar__category">
  66. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  67. <h4 class="phpdocumentor-sidebar__root-namespace"><a href="packages/Application.html">Application</a></h4>
  68. </section>
  69. <section class="phpdocumentor-sidebar__category">
  70. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  71. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  72. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  73. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  74. </section>
  75. <section class="phpdocumentor-sidebar__category">
  76. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  77. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  78. </section>
  79. </aside>
  80. <div class="phpdocumentor-column -eight phpdocumentor-content">
  81. <ul class="phpdocumentor-breadcrumbs">
  82. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  83. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode.html">QRCode</a></li>
  84. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode-output.html">Output</a></li>
  85. </ul>
  86. <article class="phpdocumentor-element -class">
  87. <h2 class="phpdocumentor-content__title">
  88. QRFpdf
  89. <span class="phpdocumentor-element__extends">
  90. extends <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html"><abbr title="\chillerlan\QRCode\Output\QROutputAbstract">QROutputAbstract</abbr></a>
  91. </span>
  92. <div class="phpdocumentor-element__package">
  93. in package
  94. <ul class="phpdocumentor-breadcrumbs">
  95. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  96. </ul>
  97. </div>
  98. </h2>
  99. <aside class="phpdocumentor-element-found-in">
  100. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QRFpdf.php"><a href="files/src-output-qrfpdf.html"><abbr title="src/Output/QRFpdf.php">QRFpdf.php</abbr></a></abbr>
  101. :
  102. <span class="phpdocumentor-element-found-in__line">26</span>
  103. </aside>
  104. <p class="phpdocumentor-summary">QRFpdf output module (requires fpdf)</p>
  105. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  106. Tags
  107. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  108. </h5>
  109. <dl class="phpdocumentor-tag-list">
  110. <dt class="phpdocumentor-tag-list__entry">
  111. <span class="phpdocumentor-tag__name">see</span>
  112. </dt>
  113. <dd class="phpdocumentor-tag-list__definition">
  114. <span class="phpdocumentor-tag-link"><a href="https://github.com/Setasign/FPDF"><abbr title="https://github.com/Setasign/FPDF">https://github.com/Setasign/FPDF</abbr></a></span>
  115. </dd>
  116. <dt class="phpdocumentor-tag-list__entry">
  117. <span class="phpdocumentor-tag__name">see</span>
  118. </dt>
  119. <dd class="phpdocumentor-tag-list__definition">
  120. <span class="phpdocumentor-tag-link"><a href="http://www.fpdf.org/"><abbr title="http://www.fpdf.org/">http://www.fpdf.org/</abbr></a></span>
  121. </dd>
  122. </dl>
  123. <h3 id="toc">
  124. Table of Contents
  125. <a href="#toc" class="headerlink"><i class="fas fa-link"></i></a>
  126. </h3>
  127. <dl class="phpdocumentor-table-of-contents">
  128. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  129. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_length">$length</a>
  130. <span>
  131. &nbsp;: int </span>
  132. </dt>
  133. <dd>the side length of the QR image (modules * scale)</dd>
  134. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  135. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_matrix">$matrix</a>
  136. <span>
  137. &nbsp;: <a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a> </span>
  138. </dt>
  139. <dd>the (filled) data matrix object</dd>
  140. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  141. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_moduleCount">$moduleCount</a>
  142. <span>
  143. &nbsp;: int </span>
  144. </dt>
  145. <dd>the current size of the QR matrix</dd>
  146. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  147. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_moduleValues">$moduleValues</a>
  148. <span>
  149. &nbsp;: array&lt;string|int, mixed&gt; </span>
  150. </dt>
  151. <dd>an (optional) array of color values for the several QR matrix parts</dd>
  152. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  153. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_options">$options</a>
  154. <span>
  155. &nbsp;: <abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr> </span>
  156. </dt>
  157. <dd></dd>
  158. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  159. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_scale">$scale</a>
  160. <span>
  161. &nbsp;: int </span>
  162. </dt>
  163. <dd>the current scaling for a QR pixel</dd>
  164. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  165. <a href="classes/chillerlan-QRCode-Output-QRFpdf.html#method___construct">__construct()</a>
  166. <span>
  167. &nbsp;: mixed </span>
  168. </dt>
  169. <dd>QRFpdf constructor.</dd>
  170. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  171. <a href="classes/chillerlan-QRCode-Output-QRFpdf.html#method_dump">dump()</a>
  172. <span>
  173. &nbsp;: string|<abbr title="\FPDF">FPDF</abbr> </span>
  174. </dt>
  175. <dd></dd>
  176. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  177. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_base64encode">base64encode()</a>
  178. <span>
  179. &nbsp;: string </span>
  180. </dt>
  181. <dd>Returns a base64 data URI for the given string and mime type</dd>
  182. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  183. <a href="classes/chillerlan-QRCode-Output-QRFpdf.html#method_getDefaultModuleValue">getDefaultModuleValue()</a>
  184. <span>
  185. &nbsp;: mixed </span>
  186. </dt>
  187. <dd>Returns a defualt value for either dark or light modules (return value depends on the output module)</dd>
  188. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  189. <a href="classes/chillerlan-QRCode-Output-QRFpdf.html#method_getModuleValue">getModuleValue()</a>
  190. <span>
  191. &nbsp;: mixed </span>
  192. </dt>
  193. <dd>Returns the final value for the given input (return value depends on the output module)</dd>
  194. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  195. <a href="classes/chillerlan-QRCode-Output-QRFpdf.html#method_moduleValueIsValid">moduleValueIsValid()</a>
  196. <span>
  197. &nbsp;: bool </span>
  198. </dt>
  199. <dd>Determines whether the given value is valid</dd>
  200. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  201. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_saveToFile">saveToFile()</a>
  202. <span>
  203. &nbsp;: void </span>
  204. </dt>
  205. <dd>saves the qr data to a file</dd>
  206. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  207. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_setModuleValues">setModuleValues()</a>
  208. <span>
  209. &nbsp;: void </span>
  210. </dt>
  211. <dd>Sets the initial module values</dd>
  212. </dl>
  213. <section class="phpdocumentor-properties">
  214. <h3 class="phpdocumentor-elements__header" id="properties">
  215. Properties
  216. <a href="classes/chillerlan-QRCode-Output-QRFpdf.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  217. </h3>
  218. <article
  219. class="
  220. phpdocumentor-element
  221. -property
  222. -protected
  223. "
  224. >
  225. <h4 class="phpdocumentor-element__name" id="property_length">
  226. $length
  227. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_length" class="headerlink"><i class="fas fa-link"></i></a>
  228. <span class="phpdocumentor-element__modifiers">
  229. </span>
  230. </h4>
  231. <aside class="phpdocumentor-element-found-in">
  232. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QROutputAbstract.php"><a href="files/src-output-qroutputabstract.html"><abbr title="src/Output/QROutputAbstract.php">QROutputAbstract.php</abbr></a></abbr>
  233. :
  234. <span class="phpdocumentor-element-found-in__line">39</span>
  235. </aside>
  236. <p class="phpdocumentor-summary">the side length of the QR image (modules * scale)</p>
  237. <code class="phpdocumentor-code phpdocumentor-signature ">
  238. <span class="phpdocumentor-signature__visibility">protected</span>
  239. <span class="phpdocumentor-signature__type">int</span>
  240. <span class="phpdocumentor-signature__name">$length</span>
  241. </code>
  242. <section class="phpdocumentor-description"></section>
  243. </article>
  244. <article
  245. class="
  246. phpdocumentor-element
  247. -property
  248. -protected
  249. "
  250. >
  251. <h4 class="phpdocumentor-element__name" id="property_matrix">
  252. $matrix
  253. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_matrix" class="headerlink"><i class="fas fa-link"></i></a>
  254. <span class="phpdocumentor-element__modifiers">
  255. </span>
  256. </h4>
  257. <aside class="phpdocumentor-element-found-in">
  258. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QROutputAbstract.php"><a href="files/src-output-qroutputabstract.html"><abbr title="src/Output/QROutputAbstract.php">QROutputAbstract.php</abbr></a></abbr>
  259. :
  260. <span class="phpdocumentor-element-found-in__line">49</span>
  261. </aside>
  262. <p class="phpdocumentor-summary">the (filled) data matrix object</p>
  263. <code class="phpdocumentor-code phpdocumentor-signature ">
  264. <span class="phpdocumentor-signature__visibility">protected</span>
  265. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a></span>
  266. <span class="phpdocumentor-signature__name">$matrix</span>
  267. </code>
  268. <section class="phpdocumentor-description"></section>
  269. </article>
  270. <article
  271. class="
  272. phpdocumentor-element
  273. -property
  274. -protected
  275. "
  276. >
  277. <h4 class="phpdocumentor-element__name" id="property_moduleCount">
  278. $moduleCount
  279. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_moduleCount" class="headerlink"><i class="fas fa-link"></i></a>
  280. <span class="phpdocumentor-element__modifiers">
  281. </span>
  282. </h4>
  283. <aside class="phpdocumentor-element-found-in">
  284. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QROutputAbstract.php"><a href="files/src-output-qroutputabstract.html"><abbr title="src/Output/QROutputAbstract.php">QROutputAbstract.php</abbr></a></abbr>
  285. :
  286. <span class="phpdocumentor-element-found-in__line">27</span>
  287. </aside>
  288. <p class="phpdocumentor-summary">the current size of the QR matrix</p>
  289. <code class="phpdocumentor-code phpdocumentor-signature ">
  290. <span class="phpdocumentor-signature__visibility">protected</span>
  291. <span class="phpdocumentor-signature__type">int</span>
  292. <span class="phpdocumentor-signature__name">$moduleCount</span>
  293. </code>
  294. <section class="phpdocumentor-description"></section>
  295. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  296. Tags
  297. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  298. </h5>
  299. <dl class="phpdocumentor-tag-list">
  300. <dt class="phpdocumentor-tag-list__entry">
  301. <span class="phpdocumentor-tag__name">see</span>
  302. </dt>
  303. <dd class="phpdocumentor-tag-list__definition">
  304. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_size"><abbr title="\chillerlan\QRCode\Data\QRMatrix::size()">QRMatrix::size()</abbr></a></span>
  305. </dd>
  306. </dl>
  307. </article>
  308. <article
  309. class="
  310. phpdocumentor-element
  311. -property
  312. -protected
  313. "
  314. >
  315. <h4 class="phpdocumentor-element__name" id="property_moduleValues">
  316. $moduleValues
  317. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_moduleValues" class="headerlink"><i class="fas fa-link"></i></a>
  318. <span class="phpdocumentor-element__modifiers">
  319. </span>
  320. </h4>
  321. <aside class="phpdocumentor-element-found-in">
  322. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QROutputAbstract.php"><a href="files/src-output-qroutputabstract.html"><abbr title="src/Output/QROutputAbstract.php">QROutputAbstract.php</abbr></a></abbr>
  323. :
  324. <span class="phpdocumentor-element-found-in__line">44</span>
  325. </aside>
  326. <p class="phpdocumentor-summary">an (optional) array of color values for the several QR matrix parts</p>
  327. <code class="phpdocumentor-code phpdocumentor-signature ">
  328. <span class="phpdocumentor-signature__visibility">protected</span>
  329. <span class="phpdocumentor-signature__type">array&lt;string|int, mixed&gt;</span>
  330. <span class="phpdocumentor-signature__name">$moduleValues</span>
  331. </code>
  332. <section class="phpdocumentor-description"></section>
  333. </article>
  334. <article
  335. class="
  336. phpdocumentor-element
  337. -property
  338. -protected
  339. "
  340. >
  341. <h4 class="phpdocumentor-element__name" id="property_options">
  342. $options
  343. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_options" class="headerlink"><i class="fas fa-link"></i></a>
  344. <span class="phpdocumentor-element__modifiers">
  345. </span>
  346. </h4>
  347. <aside class="phpdocumentor-element-found-in">
  348. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QROutputAbstract.php"><a href="files/src-output-qroutputabstract.html"><abbr title="src/Output/QROutputAbstract.php">QROutputAbstract.php</abbr></a></abbr>
  349. :
  350. <span class="phpdocumentor-element-found-in__line">54</span>
  351. </aside>
  352. <code class="phpdocumentor-code phpdocumentor-signature ">
  353. <span class="phpdocumentor-signature__visibility">protected</span>
  354. <span class="phpdocumentor-signature__type"><abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr></span>
  355. <span class="phpdocumentor-signature__name">$options</span>
  356. </code>
  357. </article>
  358. <article
  359. class="
  360. phpdocumentor-element
  361. -property
  362. -protected
  363. "
  364. >
  365. <h4 class="phpdocumentor-element__name" id="property_scale">
  366. $scale
  367. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_scale" class="headerlink"><i class="fas fa-link"></i></a>
  368. <span class="phpdocumentor-element__modifiers">
  369. </span>
  370. </h4>
  371. <aside class="phpdocumentor-element-found-in">
  372. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QROutputAbstract.php"><a href="files/src-output-qroutputabstract.html"><abbr title="src/Output/QROutputAbstract.php">QROutputAbstract.php</abbr></a></abbr>
  373. :
  374. <span class="phpdocumentor-element-found-in__line">34</span>
  375. </aside>
  376. <p class="phpdocumentor-summary">the current scaling for a QR pixel</p>
  377. <code class="phpdocumentor-code phpdocumentor-signature ">
  378. <span class="phpdocumentor-signature__visibility">protected</span>
  379. <span class="phpdocumentor-signature__type">int</span>
  380. <span class="phpdocumentor-signature__name">$scale</span>
  381. </code>
  382. <section class="phpdocumentor-description"></section>
  383. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  384. Tags
  385. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  386. </h5>
  387. <dl class="phpdocumentor-tag-list">
  388. <dt class="phpdocumentor-tag-list__entry">
  389. <span class="phpdocumentor-tag__name">see</span>
  390. </dt>
  391. <dd class="phpdocumentor-tag-list__definition">
  392. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\QROptions::$scale">QROptions::$scale</abbr></span>
  393. </dd>
  394. </dl>
  395. </article>
  396. </section>
  397. <section class="phpdocumentor-methods">
  398. <h3 class="phpdocumentor-elements__header" id="methods">
  399. Methods
  400. <a href="classes/chillerlan-QRCode-Output-QRFpdf.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  401. </h3>
  402. <article
  403. class="phpdocumentor-element
  404. -method
  405. -public
  406. "
  407. >
  408. <h4 class="phpdocumentor-element__name" id="method___construct">
  409. __construct()
  410. <a href="classes/chillerlan-QRCode-Output-QRFpdf.html#method___construct" class="headerlink"><i class="fas fa-link"></i></a>
  411. </h4>
  412. <aside class="phpdocumentor-element-found-in">
  413. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QRFpdf.php"><a href="files/src-output-qrfpdf.html"><abbr title="src/Output/QRFpdf.php">QRFpdf.php</abbr></a></abbr>
  414. :
  415. <span class="phpdocumentor-element-found-in__line">33</span>
  416. </aside>
  417. <p class="phpdocumentor-summary">QRFpdf constructor.</p>
  418. <code class="phpdocumentor-code phpdocumentor-signature ">
  419. <span class="phpdocumentor-signature__visibility">public</span>
  420. <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>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$options</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$matrix</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
  421. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  422. <dl class="phpdocumentor-argument-list">
  423. <dt class="phpdocumentor-argument-list__entry">
  424. <span class="phpdocumentor-signature__argument__name">$options</span>
  425. : <span class="phpdocumentor-signature__argument__return-type"><abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr></span>
  426. </dt>
  427. <dd class="phpdocumentor-argument-list__definition">
  428. <section class="phpdocumentor-description"></section>
  429. </dd>
  430. <dt class="phpdocumentor-argument-list__entry">
  431. <span class="phpdocumentor-signature__argument__name">$matrix</span>
  432. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a></span>
  433. </dt>
  434. <dd class="phpdocumentor-argument-list__definition">
  435. <section class="phpdocumentor-description"></section>
  436. </dd>
  437. </dl>
  438. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  439. Tags
  440. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  441. </h5>
  442. <dl class="phpdocumentor-tag-list">
  443. <dt class="phpdocumentor-tag-list__entry">
  444. <span class="phpdocumentor-tag__name">throws</span>
  445. </dt>
  446. <dd class="phpdocumentor-tag-list__definition">
  447. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Output-QRCodeOutputException.html"><abbr title="\chillerlan\QRCode\Output\QRCodeOutputException">QRCodeOutputException</abbr></a></span>
  448. </dd>
  449. </dl>
  450. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  451. <span class="phpdocumentor-signature__response_type">mixed</span>
  452. &mdash;
  453. </article>
  454. <article
  455. class="phpdocumentor-element
  456. -method
  457. -public
  458. "
  459. >
  460. <h4 class="phpdocumentor-element__name" id="method_dump">
  461. dump()
  462. <a href="classes/chillerlan-QRCode-Output-QRFpdf.html#method_dump" class="headerlink"><i class="fas fa-link"></i></a>
  463. </h4>
  464. <aside class="phpdocumentor-element-found-in">
  465. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QRFpdf.php"><a href="files/src-output-qrfpdf.html"><abbr title="src/Output/QRFpdf.php">QRFpdf.php</abbr></a></abbr>
  466. :
  467. <span class="phpdocumentor-element-found-in__line">73</span>
  468. </aside>
  469. <code class="phpdocumentor-code phpdocumentor-signature ">
  470. <span class="phpdocumentor-signature__visibility">public</span>
  471. <span class="phpdocumentor-signature__name">dump</span><span>(</span><span class="phpdocumentor-signature__argument"><span>[</span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$file</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">null</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string|<abbr title="\FPDF">FPDF</abbr></span></code>
  472. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  473. <dl class="phpdocumentor-argument-list">
  474. <dt class="phpdocumentor-argument-list__entry">
  475. <span class="phpdocumentor-signature__argument__name">$file</span>
  476. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  477. = <span class="phpdocumentor-signature__argument__default-value">null</span> </dt>
  478. <dd class="phpdocumentor-argument-list__definition">
  479. <section class="phpdocumentor-description"></section>
  480. </dd>
  481. </dl>
  482. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  483. Tags
  484. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  485. </h5>
  486. <dl class="phpdocumentor-tag-list">
  487. <dt class="phpdocumentor-tag-list__entry">
  488. <span class="phpdocumentor-tag__name">inheritDoc</span>
  489. </dt>
  490. <dd class="phpdocumentor-tag-list__definition">
  491. </dd>
  492. </dl>
  493. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  494. <span class="phpdocumentor-signature__response_type">string|<abbr title="\FPDF">FPDF</abbr></span>
  495. &mdash;
  496. </article>
  497. <article
  498. class="phpdocumentor-element
  499. -method
  500. -protected
  501. "
  502. >
  503. <h4 class="phpdocumentor-element__name" id="method_base64encode">
  504. base64encode()
  505. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_base64encode" class="headerlink"><i class="fas fa-link"></i></a>
  506. </h4>
  507. <aside class="phpdocumentor-element-found-in">
  508. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QROutputAbstract.php"><a href="files/src-output-qroutputabstract.html"><abbr title="src/Output/QROutputAbstract.php">QROutputAbstract.php</abbr></a></abbr>
  509. :
  510. <span class="phpdocumentor-element-found-in__line">110</span>
  511. </aside>
  512. <p class="phpdocumentor-summary">Returns a base64 data URI for the given string and mime type</p>
  513. <code class="phpdocumentor-code phpdocumentor-signature ">
  514. <span class="phpdocumentor-signature__visibility">protected</span>
  515. <span class="phpdocumentor-signature__name">base64encode</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 class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$mime</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
  516. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  517. <dl class="phpdocumentor-argument-list">
  518. <dt class="phpdocumentor-argument-list__entry">
  519. <span class="phpdocumentor-signature__argument__name">$data</span>
  520. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  521. </dt>
  522. <dd class="phpdocumentor-argument-list__definition">
  523. <section class="phpdocumentor-description"></section>
  524. </dd>
  525. <dt class="phpdocumentor-argument-list__entry">
  526. <span class="phpdocumentor-signature__argument__name">$mime</span>
  527. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  528. </dt>
  529. <dd class="phpdocumentor-argument-list__definition">
  530. <section class="phpdocumentor-description"></section>
  531. </dd>
  532. </dl>
  533. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  534. <span class="phpdocumentor-signature__response_type">string</span>
  535. &mdash;
  536. </article>
  537. <article
  538. class="phpdocumentor-element
  539. -method
  540. -protected
  541. "
  542. >
  543. <h4 class="phpdocumentor-element__name" id="method_getDefaultModuleValue">
  544. getDefaultModuleValue()
  545. <a href="classes/chillerlan-QRCode-Output-QRFpdf.html#method_getDefaultModuleValue" class="headerlink"><i class="fas fa-link"></i></a>
  546. </h4>
  547. <aside class="phpdocumentor-element-found-in">
  548. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QRFpdf.php"><a href="files/src-output-qrfpdf.html"><abbr title="src/Output/QRFpdf.php">QRFpdf.php</abbr></a></abbr>
  549. :
  550. <span class="phpdocumentor-element-found-in__line">64</span>
  551. </aside>
  552. <p class="phpdocumentor-summary">Returns a defualt value for either dark or light modules (return value depends on the output module)</p>
  553. <code class="phpdocumentor-code phpdocumentor-signature ">
  554. <span class="phpdocumentor-signature__visibility">protected</span>
  555. <span class="phpdocumentor-signature__name">getDefaultModuleValue</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">bool&nbsp;</span><span class="phpdocumentor-signature__argument__name">$isDark</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
  556. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  557. <dl class="phpdocumentor-argument-list">
  558. <dt class="phpdocumentor-argument-list__entry">
  559. <span class="phpdocumentor-signature__argument__name">$isDark</span>
  560. : <span class="phpdocumentor-signature__argument__return-type">bool</span>
  561. </dt>
  562. <dd class="phpdocumentor-argument-list__definition">
  563. <section class="phpdocumentor-description"></section>
  564. </dd>
  565. </dl>
  566. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  567. Tags
  568. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  569. </h5>
  570. <dl class="phpdocumentor-tag-list">
  571. <dt class="phpdocumentor-tag-list__entry">
  572. <span class="phpdocumentor-tag__name">inheritDoc</span>
  573. </dt>
  574. <dd class="phpdocumentor-tag-list__definition">
  575. </dd>
  576. </dl>
  577. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  578. <span class="phpdocumentor-signature__response_type">mixed</span>
  579. &mdash;
  580. </article>
  581. <article
  582. class="phpdocumentor-element
  583. -method
  584. -protected
  585. "
  586. >
  587. <h4 class="phpdocumentor-element__name" id="method_getModuleValue">
  588. getModuleValue()
  589. <a href="classes/chillerlan-QRCode-Output-QRFpdf.html#method_getModuleValue" class="headerlink"><i class="fas fa-link"></i></a>
  590. </h4>
  591. <aside class="phpdocumentor-element-found-in">
  592. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QRFpdf.php"><a href="files/src-output-qrfpdf.html"><abbr title="src/Output/QRFpdf.php">QRFpdf.php</abbr></a></abbr>
  593. :
  594. <span class="phpdocumentor-element-found-in__line">57</span>
  595. </aside>
  596. <p class="phpdocumentor-summary">Returns the final value for the given input (return value depends on the output module)</p>
  597. <code class="phpdocumentor-code phpdocumentor-signature ">
  598. <span class="phpdocumentor-signature__visibility">protected</span>
  599. <span class="phpdocumentor-signature__name">getModuleValue</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$value</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
  600. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  601. <dl class="phpdocumentor-argument-list">
  602. <dt class="phpdocumentor-argument-list__entry">
  603. <span class="phpdocumentor-signature__argument__name">$value</span>
  604. : <span class="phpdocumentor-signature__argument__return-type">mixed</span>
  605. </dt>
  606. <dd class="phpdocumentor-argument-list__definition">
  607. </dd>
  608. </dl>
  609. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  610. Tags
  611. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  612. </h5>
  613. <dl class="phpdocumentor-tag-list">
  614. <dt class="phpdocumentor-tag-list__entry">
  615. <span class="phpdocumentor-tag__name">inheritDoc</span>
  616. </dt>
  617. <dd class="phpdocumentor-tag-list__definition">
  618. </dd>
  619. </dl>
  620. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  621. <span class="phpdocumentor-signature__response_type">mixed</span>
  622. &mdash;
  623. </article>
  624. <article
  625. class="phpdocumentor-element
  626. -method
  627. -protected
  628. "
  629. >
  630. <h4 class="phpdocumentor-element__name" id="method_moduleValueIsValid">
  631. moduleValueIsValid()
  632. <a href="classes/chillerlan-QRCode-Output-QRFpdf.html#method_moduleValueIsValid" class="headerlink"><i class="fas fa-link"></i></a>
  633. </h4>
  634. <aside class="phpdocumentor-element-found-in">
  635. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QRFpdf.php"><a href="files/src-output-qrfpdf.html"><abbr title="src/Output/QRFpdf.php">QRFpdf.php</abbr></a></abbr>
  636. :
  637. <span class="phpdocumentor-element-found-in__line">50</span>
  638. </aside>
  639. <p class="phpdocumentor-summary">Determines whether the given value is valid</p>
  640. <code class="phpdocumentor-code phpdocumentor-signature ">
  641. <span class="phpdocumentor-signature__visibility">protected</span>
  642. <span class="phpdocumentor-signature__name">moduleValueIsValid</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$value</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>
  643. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  644. <dl class="phpdocumentor-argument-list">
  645. <dt class="phpdocumentor-argument-list__entry">
  646. <span class="phpdocumentor-signature__argument__name">$value</span>
  647. : <span class="phpdocumentor-signature__argument__return-type">mixed</span>
  648. </dt>
  649. <dd class="phpdocumentor-argument-list__definition">
  650. </dd>
  651. </dl>
  652. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  653. Tags
  654. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  655. </h5>
  656. <dl class="phpdocumentor-tag-list">
  657. <dt class="phpdocumentor-tag-list__entry">
  658. <span class="phpdocumentor-tag__name">inheritDoc</span>
  659. </dt>
  660. <dd class="phpdocumentor-tag-list__definition">
  661. </dd>
  662. </dl>
  663. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  664. <span class="phpdocumentor-signature__response_type">bool</span>
  665. &mdash;
  666. </article>
  667. <article
  668. class="phpdocumentor-element
  669. -method
  670. -protected
  671. "
  672. >
  673. <h4 class="phpdocumentor-element__name" id="method_saveToFile">
  674. saveToFile()
  675. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_saveToFile" class="headerlink"><i class="fas fa-link"></i></a>
  676. </h4>
  677. <aside class="phpdocumentor-element-found-in">
  678. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QROutputAbstract.php"><a href="files/src-output-qroutputabstract.html"><abbr title="src/Output/QROutputAbstract.php">QROutputAbstract.php</abbr></a></abbr>
  679. :
  680. <span class="phpdocumentor-element-found-in__line">122</span>
  681. </aside>
  682. <p class="phpdocumentor-summary">saves the qr data to a file</p>
  683. <code class="phpdocumentor-code phpdocumentor-signature ">
  684. <span class="phpdocumentor-signature__visibility">protected</span>
  685. <span class="phpdocumentor-signature__name">saveToFile</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 class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$file</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  686. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  687. <dl class="phpdocumentor-argument-list">
  688. <dt class="phpdocumentor-argument-list__entry">
  689. <span class="phpdocumentor-signature__argument__name">$data</span>
  690. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  691. </dt>
  692. <dd class="phpdocumentor-argument-list__definition">
  693. <section class="phpdocumentor-description"></section>
  694. </dd>
  695. <dt class="phpdocumentor-argument-list__entry">
  696. <span class="phpdocumentor-signature__argument__name">$file</span>
  697. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  698. </dt>
  699. <dd class="phpdocumentor-argument-list__definition">
  700. <section class="phpdocumentor-description"></section>
  701. </dd>
  702. </dl>
  703. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  704. Tags
  705. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  706. </h5>
  707. <dl class="phpdocumentor-tag-list">
  708. <dt class="phpdocumentor-tag-list__entry">
  709. <span class="phpdocumentor-tag__name">see</span>
  710. </dt>
  711. <dd class="phpdocumentor-tag-list__definition">
  712. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\Output\file_put_contents()">file_put_contents()</abbr></span>
  713. </dd>
  714. <dt class="phpdocumentor-tag-list__entry">
  715. <span class="phpdocumentor-tag__name">see</span>
  716. </dt>
  717. <dd class="phpdocumentor-tag-list__definition">
  718. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\QROptions::cachefile">QROptions::cachefile</abbr></span>
  719. </dd>
  720. <dt class="phpdocumentor-tag-list__entry">
  721. <span class="phpdocumentor-tag__name">throws</span>
  722. </dt>
  723. <dd class="phpdocumentor-tag-list__definition">
  724. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Output-QRCodeOutputException.html"><abbr title="\chillerlan\QRCode\Output\QRCodeOutputException">QRCodeOutputException</abbr></a></span>
  725. </dd>
  726. </dl>
  727. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  728. <span class="phpdocumentor-signature__response_type">void</span>
  729. &mdash;
  730. </article>
  731. <article
  732. class="phpdocumentor-element
  733. -method
  734. -protected
  735. "
  736. >
  737. <h4 class="phpdocumentor-element__name" id="method_setModuleValues">
  738. setModuleValues()
  739. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_setModuleValues" class="headerlink"><i class="fas fa-link"></i></a>
  740. </h4>
  741. <aside class="phpdocumentor-element-found-in">
  742. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QROutputAbstract.php"><a href="files/src-output-qroutputabstract.html"><abbr title="src/Output/QROutputAbstract.php">QROutputAbstract.php</abbr></a></abbr>
  743. :
  744. <span class="phpdocumentor-element-found-in__line">72</span>
  745. </aside>
  746. <p class="phpdocumentor-summary">Sets the initial module values</p>
  747. <code class="phpdocumentor-code phpdocumentor-signature ">
  748. <span class="phpdocumentor-signature__visibility">protected</span>
  749. <span class="phpdocumentor-signature__name">setModuleValues</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  750. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  751. <span class="phpdocumentor-signature__response_type">void</span>
  752. &mdash;
  753. </article>
  754. </section>
  755. <script type="text/javascript">
  756. function loadExternalCodeSnippets(line) {
  757. Array.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach((pre) => {
  758. var src = pre.getAttribute('data-src').replace( /\\/g, '/');
  759. var extension = (src.match(/\.(\w+)$/) || [, ''])[1];
  760. var language = 'php';
  761. var code = document.createElement('code');
  762. code.className = 'language-' + language;
  763. pre.textContent = '';
  764. pre.setAttribute('data-line', line)
  765. code.textContent = 'Loading…';
  766. pre.appendChild(code);
  767. var xhr = new XMLHttpRequest();
  768. xhr.open('GET', src, true);
  769. xhr.onreadystatechange = function () {
  770. if (xhr.readyState == 4) {
  771. if (xhr.status < 400 && xhr.responseText) {
  772. code.textContent = xhr.responseText;
  773. Prism.highlightElement(code);
  774. }
  775. else if (xhr.status >= 400) {
  776. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  777. }
  778. else {
  779. code.textContent = '✖ Error: File does not exist, is empty or trying to view from localhost';
  780. }
  781. }
  782. };
  783. xhr.send(null);
  784. });
  785. }
  786. var modals = document.querySelectorAll("[data-modal]");
  787. modals.forEach(function (trigger) {
  788. trigger.addEventListener("click", function (event) {
  789. //event.preventDefault();
  790. const modal = document.getElementById(trigger.dataset.modal);
  791. modal.classList.add("phpdocumentor-modal__open");
  792. loadExternalCodeSnippets(trigger.dataset.line)
  793. const exits = modal.querySelectorAll("[data-exit-button]");
  794. exits.forEach(function (exit) {
  795. exit.addEventListener("click", function (event) {
  796. event.preventDefault();
  797. modal.classList.remove("phpdocumentor-modal__open");
  798. });
  799. });
  800. });
  801. });
  802. </script>
  803. </article>
  804. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  805. <section class="phpdocumentor-search-results__dialog">
  806. <header class="phpdocumentor-search-results__header">
  807. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  808. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  809. </header>
  810. <section class="phpdocumentor-search-results__body">
  811. <ul class="phpdocumentor-search-results__entries"></ul>
  812. </section>
  813. </section>
  814. </section>
  815. </div>
  816. </div>
  817. <a href="classes/chillerlan-QRCode-Output-QRFpdf.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  818. </main>
  819. <script>
  820. cssVars({});
  821. </script>
  822. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  823. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  824. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  825. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  826. </body>
  827. </html>