chillerlan-QRCode-Output-QRFpdf.html 50 KB

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