chillerlan-QRCode-Output-QREps.html 67 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366
  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. <li class="phpdocumentor-topnav__menu-item -menu">
  44. <a href="https://php-qrcode.readthedocs.io">
  45. <span>
  46. User Manual
  47. </span>
  48. </a>
  49. </li>
  50. <li class="phpdocumentor-topnav__menu-item -social">
  51. <a href="https://github.com/chillerlan/php-qrcode">
  52. <span>
  53. <i class="fab fa-github"></i>
  54. </span>
  55. </a>
  56. </li>
  57. </ul>
  58. </nav>
  59. </header>
  60. <main class="phpdocumentor">
  61. <div class="phpdocumentor-section">
  62. <input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
  63. <label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
  64. Menu
  65. </label>
  66. <aside class="phpdocumentor-column -four phpdocumentor-sidebar">
  67. <section class="phpdocumentor-sidebar__category">
  68. <h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
  69. <h4 class="phpdocumentor-sidebar__root-namespace">
  70. <a href="namespaces/chillerlan.html" class="">chillerlan</a>
  71. </h4>
  72. <ul class="phpdocumentor-list">
  73. <li>
  74. <a href="namespaces/chillerlan-qrcode.html" class="">QRCode</a>
  75. </li>
  76. <li>
  77. <a href="namespaces/chillerlan-qrcodetest.html" class="">QRCodeTest</a>
  78. </li>
  79. </ul>
  80. </section>
  81. <section class="phpdocumentor-sidebar__category">
  82. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  83. <h4 class="phpdocumentor-sidebar__root-namespace">
  84. <a href="packages/Application.html" class="">Application</a>
  85. </h4>
  86. </section>
  87. <section class="phpdocumentor-sidebar__category">
  88. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  89. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  90. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  91. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  92. </section>
  93. <section class="phpdocumentor-sidebar__category">
  94. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  95. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  96. </section>
  97. </aside>
  98. <div class="phpdocumentor-column -eight phpdocumentor-content">
  99. <ul class="phpdocumentor-breadcrumbs">
  100. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  101. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode.html">QRCode</a></li>
  102. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode-output.html">Output</a></li>
  103. </ul>
  104. <article class="phpdocumentor-element -class">
  105. <h2 class="phpdocumentor-content__title">
  106. QREps
  107. <span class="phpdocumentor-element__extends">
  108. extends <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html"><abbr title="\chillerlan\QRCode\Output\QROutputAbstract">QROutputAbstract</abbr></a>
  109. </span>
  110. <div class="phpdocumentor-element__package">
  111. in package
  112. <ul class="phpdocumentor-breadcrumbs">
  113. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  114. </ul>
  115. </div>
  116. </h2>
  117. <aside class="phpdocumentor-element-found-in">
  118. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QREps.php"><a href="files/src-output-qreps.html"><abbr title="src/Output/QREps.php">QREps.php</abbr></a></abbr>
  119. :
  120. <span class="phpdocumentor-element-found-in__line">23</span>
  121. </aside>
  122. <p class="phpdocumentor-summary">Encapsulated Postscript (EPS) output</p>
  123. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  124. Tags
  125. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  126. </h5>
  127. <dl class="phpdocumentor-tag-list">
  128. <dt class="phpdocumentor-tag-list__entry">
  129. <span class="phpdocumentor-tag__name">see</span>
  130. </dt>
  131. <dd class="phpdocumentor-tag-list__definition">
  132. <span class="phpdocumentor-tag-link"><a href="https://github.com/t0k4rt/phpqrcode/blob/bb29e6eb77e0a2a85bb0eb62725e0adc11ff5a90/qrvect.php#L52-L137"><abbr title="https://github.com/t0k4rt/phpqrcode/blob/bb29e6eb77e0a2a85bb0eb62725e0adc11ff5a90/qrvect.php#L52-L137">https://github.com/t0k4rt/phpqrcode/blob/bb29e6eb77e0a2a85bb0eb62725e0adc11ff5a90/qrvect.php#L52-L137</abbr></a></span>
  133. </dd>
  134. <dt class="phpdocumentor-tag-list__entry">
  135. <span class="phpdocumentor-tag__name">see</span>
  136. </dt>
  137. <dd class="phpdocumentor-tag-list__definition">
  138. <span class="phpdocumentor-tag-link"><a href="https://web.archive.org/web/20170818010030/http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/postscript/pdfs/5002.EPSF_Spec.pdf"><abbr title="https://web.archive.org/web/20170818010030/http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/postscript/pdfs/5002.EPSF_Spec.pdf">https://web.archive.org/web/20170818010030/http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/postscript/pdfs/5002.EPSF_Spec.pdf</abbr></a></span>
  139. </dd>
  140. <dt class="phpdocumentor-tag-list__entry">
  141. <span class="phpdocumentor-tag__name">see</span>
  142. </dt>
  143. <dd class="phpdocumentor-tag-list__definition">
  144. <span class="phpdocumentor-tag-link"><a href="https://web.archive.org/web/20210419003859/https://www.adobe.com/content/dam/acom/en/devnet/actionscript/articles/PLRM.pdf"><abbr title="https://web.archive.org/web/20210419003859/https://www.adobe.com/content/dam/acom/en/devnet/actionscript/articles/PLRM.pdf">https://web.archive.org/web/20210419003859/https://www.adobe.com/content/dam/acom/en/devnet/actionscript/articles/PLRM.pdf</abbr></a></span>
  145. </dd>
  146. <dt class="phpdocumentor-tag-list__entry">
  147. <span class="phpdocumentor-tag__name">see</span>
  148. </dt>
  149. <dd class="phpdocumentor-tag-list__definition">
  150. <span class="phpdocumentor-tag-link"><a href="https://github.com/chillerlan/php-qrcode/discussions/148"><abbr title="https://github.com/chillerlan/php-qrcode/discussions/148">https://github.com/chillerlan/php-qrcode/discussions/148</abbr></a></span>
  151. </dd>
  152. </dl>
  153. <h3 id="toc">
  154. Table of Contents
  155. <a href="#toc" class="headerlink"><i class="fas fa-link"></i></a>
  156. </h3>
  157. <dl class="phpdocumentor-table-of-contents">
  158. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  159. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_length">$length</a>
  160. <span>
  161. &nbsp;: int </span>
  162. </dt>
  163. <dd>the side length of the QR image (modules * scale)</dd>
  164. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  165. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_matrix">$matrix</a>
  166. <span>
  167. &nbsp;: <a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a> </span>
  168. </dt>
  169. <dd>the (filled) data matrix object</dd>
  170. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  171. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_moduleCount">$moduleCount</a>
  172. <span>
  173. &nbsp;: int </span>
  174. </dt>
  175. <dd>the current size of the QR matrix</dd>
  176. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  177. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_moduleValues">$moduleValues</a>
  178. <span>
  179. &nbsp;: array&lt;string|int, mixed&gt; </span>
  180. </dt>
  181. <dd>an (optional) array of color values for the several QR matrix parts</dd>
  182. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  183. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_options">$options</a>
  184. <span>
  185. &nbsp;: <abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr> </span>
  186. </dt>
  187. <dd></dd>
  188. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  189. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_scale">$scale</a>
  190. <span>
  191. &nbsp;: int </span>
  192. </dt>
  193. <dd>the current scaling for a QR pixel</dd>
  194. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  195. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method___construct">__construct()</a>
  196. <span>
  197. &nbsp;: mixed </span>
  198. </dt>
  199. <dd>QROutputAbstract constructor.</dd>
  200. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  201. <a href="classes/chillerlan-QRCode-Output-QREps.html#method_dump">dump()</a>
  202. <span>
  203. &nbsp;: string </span>
  204. </dt>
  205. <dd></dd>
  206. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  207. <a href="classes/chillerlan-QRCode-Output-QREps.html#method_moduleValueIsValid">moduleValueIsValid()</a>
  208. <span>
  209. &nbsp;: bool </span>
  210. </dt>
  211. <dd></dd>
  212. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  213. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_collectModules">collectModules()</a>
  214. <span>
  215. &nbsp;: array&lt;string|int, mixed&gt; </span>
  216. </dt>
  217. <dd>collects the modules per QRMatrix::M_* type and runs a $transform function on each module and
  218. returns an array with the transformed modules</dd>
  219. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  220. <a href="classes/chillerlan-QRCode-Output-QREps.html#method_getDefaultModuleValue">getDefaultModuleValue()</a>
  221. <span>
  222. &nbsp;: mixed|null </span>
  223. </dt>
  224. <dd>Returns a default value for either dark or light modules</dd>
  225. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  226. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_getModuleValue">getModuleValue()</a>
  227. <span>
  228. &nbsp;: mixed|null </span>
  229. </dt>
  230. <dd>Returns the prepared value for the given $M_TYPE</dd>
  231. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  232. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_getModuleValueAt">getModuleValueAt()</a>
  233. <span>
  234. &nbsp;: mixed|null </span>
  235. </dt>
  236. <dd>Returns the prepared module value at the given coordinate [$x, $y] (convenience)</dd>
  237. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  238. <a href="classes/chillerlan-QRCode-Output-QREps.html#method_module">module()</a>
  239. <span>
  240. &nbsp;: string </span>
  241. </dt>
  242. <dd>returns a path segment for a single module</dd>
  243. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  244. <a href="classes/chillerlan-QRCode-Output-QREps.html#method_prepareModuleValue">prepareModuleValue()</a>
  245. <span>
  246. &nbsp;: mixed|null </span>
  247. </dt>
  248. <dd>Prepares the value for the given input ()</dd>
  249. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  250. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_saveToFile">saveToFile()</a>
  251. <span>
  252. &nbsp;: void </span>
  253. </dt>
  254. <dd>Saves the qr $data to a $file. If $file is null, nothing happens.</dd>
  255. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  256. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_setMatrixDimensions">setMatrixDimensions()</a>
  257. <span>
  258. &nbsp;: void </span>
  259. </dt>
  260. <dd>Sets/updates the matrix dimensions</dd>
  261. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  262. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_setModuleValues">setModuleValues()</a>
  263. <span>
  264. &nbsp;: void </span>
  265. </dt>
  266. <dd>Sets the initial module values</dd>
  267. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  268. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_toBase64DataURI">toBase64DataURI()</a>
  269. <span>
  270. &nbsp;: string </span>
  271. </dt>
  272. <dd>Returns a base64 data URI for the given string and mime type</dd>
  273. </dl>
  274. <section class="phpdocumentor-properties">
  275. <h3 class="phpdocumentor-elements__header" id="properties">
  276. Properties
  277. <a href="classes/chillerlan-QRCode-Output-QREps.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  278. </h3>
  279. <article
  280. class="
  281. phpdocumentor-element
  282. -property
  283. -protected
  284. "
  285. >
  286. <h4 class="phpdocumentor-element__name" id="property_length">
  287. $length
  288. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_length" class="headerlink"><i class="fas fa-link"></i></a>
  289. <span class="phpdocumentor-element__modifiers">
  290. </span>
  291. </h4>
  292. <aside class="phpdocumentor-element-found-in">
  293. <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>
  294. :
  295. <span class="phpdocumentor-element-found-in__line">40</span>
  296. </aside>
  297. <p class="phpdocumentor-summary">the side length of the QR image (modules * scale)</p>
  298. <code class="phpdocumentor-code phpdocumentor-signature ">
  299. <span class="phpdocumentor-signature__visibility">protected</span>
  300. <span class="phpdocumentor-signature__type">int</span>
  301. <span class="phpdocumentor-signature__name">$length</span>
  302. </code>
  303. <section class="phpdocumentor-description"></section>
  304. </article>
  305. <article
  306. class="
  307. phpdocumentor-element
  308. -property
  309. -protected
  310. "
  311. >
  312. <h4 class="phpdocumentor-element__name" id="property_matrix">
  313. $matrix
  314. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_matrix" class="headerlink"><i class="fas fa-link"></i></a>
  315. <span class="phpdocumentor-element__modifiers">
  316. </span>
  317. </h4>
  318. <aside class="phpdocumentor-element-found-in">
  319. <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>
  320. :
  321. <span class="phpdocumentor-element-found-in__line">50</span>
  322. </aside>
  323. <p class="phpdocumentor-summary">the (filled) data matrix object</p>
  324. <code class="phpdocumentor-code phpdocumentor-signature ">
  325. <span class="phpdocumentor-signature__visibility">protected</span>
  326. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a></span>
  327. <span class="phpdocumentor-signature__name">$matrix</span>
  328. </code>
  329. <section class="phpdocumentor-description"></section>
  330. </article>
  331. <article
  332. class="
  333. phpdocumentor-element
  334. -property
  335. -protected
  336. "
  337. >
  338. <h4 class="phpdocumentor-element__name" id="property_moduleCount">
  339. $moduleCount
  340. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_moduleCount" class="headerlink"><i class="fas fa-link"></i></a>
  341. <span class="phpdocumentor-element__modifiers">
  342. </span>
  343. </h4>
  344. <aside class="phpdocumentor-element-found-in">
  345. <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>
  346. :
  347. <span class="phpdocumentor-element-found-in__line">28</span>
  348. </aside>
  349. <p class="phpdocumentor-summary">the current size of the QR matrix</p>
  350. <code class="phpdocumentor-code phpdocumentor-signature ">
  351. <span class="phpdocumentor-signature__visibility">protected</span>
  352. <span class="phpdocumentor-signature__type">int</span>
  353. <span class="phpdocumentor-signature__name">$moduleCount</span>
  354. </code>
  355. <section class="phpdocumentor-description"></section>
  356. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  357. Tags
  358. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  359. </h5>
  360. <dl class="phpdocumentor-tag-list">
  361. <dt class="phpdocumentor-tag-list__entry">
  362. <span class="phpdocumentor-tag__name">see</span>
  363. </dt>
  364. <dd class="phpdocumentor-tag-list__definition">
  365. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_getSize"><abbr title="\chillerlan\QRCode\Data\QRMatrix::getSize()">QRMatrix::getSize()</abbr></a></span>
  366. </dd>
  367. </dl>
  368. </article>
  369. <article
  370. class="
  371. phpdocumentor-element
  372. -property
  373. -protected
  374. "
  375. >
  376. <h4 class="phpdocumentor-element__name" id="property_moduleValues">
  377. $moduleValues
  378. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_moduleValues" class="headerlink"><i class="fas fa-link"></i></a>
  379. <span class="phpdocumentor-element__modifiers">
  380. </span>
  381. </h4>
  382. <aside class="phpdocumentor-element-found-in">
  383. <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>
  384. :
  385. <span class="phpdocumentor-element-found-in__line">45</span>
  386. </aside>
  387. <p class="phpdocumentor-summary">an (optional) array of color values for the several QR matrix parts</p>
  388. <code class="phpdocumentor-code phpdocumentor-signature ">
  389. <span class="phpdocumentor-signature__visibility">protected</span>
  390. <span class="phpdocumentor-signature__type">array&lt;string|int, mixed&gt;</span>
  391. <span class="phpdocumentor-signature__name">$moduleValues</span>
  392. </code>
  393. <section class="phpdocumentor-description"></section>
  394. </article>
  395. <article
  396. class="
  397. phpdocumentor-element
  398. -property
  399. -protected
  400. "
  401. >
  402. <h4 class="phpdocumentor-element__name" id="property_options">
  403. $options
  404. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_options" class="headerlink"><i class="fas fa-link"></i></a>
  405. <span class="phpdocumentor-element__modifiers">
  406. </span>
  407. </h4>
  408. <aside class="phpdocumentor-element-found-in">
  409. <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>
  410. :
  411. <span class="phpdocumentor-element-found-in__line">55</span>
  412. </aside>
  413. <code class="phpdocumentor-code phpdocumentor-signature ">
  414. <span class="phpdocumentor-signature__visibility">protected</span>
  415. <span class="phpdocumentor-signature__type"><abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr></span>
  416. <span class="phpdocumentor-signature__name">$options</span>
  417. </code>
  418. </article>
  419. <article
  420. class="
  421. phpdocumentor-element
  422. -property
  423. -protected
  424. "
  425. >
  426. <h4 class="phpdocumentor-element__name" id="property_scale">
  427. $scale
  428. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_scale" class="headerlink"><i class="fas fa-link"></i></a>
  429. <span class="phpdocumentor-element__modifiers">
  430. </span>
  431. </h4>
  432. <aside class="phpdocumentor-element-found-in">
  433. <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>
  434. :
  435. <span class="phpdocumentor-element-found-in__line">35</span>
  436. </aside>
  437. <p class="phpdocumentor-summary">the current scaling for a QR pixel</p>
  438. <code class="phpdocumentor-code phpdocumentor-signature ">
  439. <span class="phpdocumentor-signature__visibility">protected</span>
  440. <span class="phpdocumentor-signature__type">int</span>
  441. <span class="phpdocumentor-signature__name">$scale</span>
  442. </code>
  443. <section class="phpdocumentor-description"></section>
  444. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  445. Tags
  446. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  447. </h5>
  448. <dl class="phpdocumentor-tag-list">
  449. <dt class="phpdocumentor-tag-list__entry">
  450. <span class="phpdocumentor-tag__name">see</span>
  451. </dt>
  452. <dd class="phpdocumentor-tag-list__definition">
  453. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\QROptions::$scale">QROptions::$scale</abbr></span>
  454. </dd>
  455. </dl>
  456. </article>
  457. </section>
  458. <section class="phpdocumentor-methods">
  459. <h3 class="phpdocumentor-elements__header" id="methods">
  460. Methods
  461. <a href="classes/chillerlan-QRCode-Output-QREps.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  462. </h3>
  463. <article
  464. class="phpdocumentor-element
  465. -method
  466. -public
  467. "
  468. >
  469. <h4 class="phpdocumentor-element__name" id="method___construct">
  470. __construct()
  471. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method___construct" class="headerlink"><i class="fas fa-link"></i></a>
  472. </h4>
  473. <aside class="phpdocumentor-element-found-in">
  474. <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>
  475. :
  476. <span class="phpdocumentor-element-found-in__line">60</span>
  477. </aside>
  478. <p class="phpdocumentor-summary">QROutputAbstract constructor.</p>
  479. <code class="phpdocumentor-code phpdocumentor-signature ">
  480. <span class="phpdocumentor-signature__visibility">public</span>
  481. <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>
  482. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  483. <dl class="phpdocumentor-argument-list">
  484. <dt class="phpdocumentor-argument-list__entry">
  485. <span class="phpdocumentor-signature__argument__name">$options</span>
  486. : <span class="phpdocumentor-signature__argument__return-type"><abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr></span>
  487. </dt>
  488. <dd class="phpdocumentor-argument-list__definition">
  489. <section class="phpdocumentor-description"></section>
  490. </dd>
  491. <dt class="phpdocumentor-argument-list__entry">
  492. <span class="phpdocumentor-signature__argument__name">$matrix</span>
  493. : <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>
  494. </dt>
  495. <dd class="phpdocumentor-argument-list__definition">
  496. <section class="phpdocumentor-description"></section>
  497. </dd>
  498. </dl>
  499. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  500. <span class="phpdocumentor-signature__response_type">mixed</span>
  501. &mdash;
  502. </article>
  503. <article
  504. class="phpdocumentor-element
  505. -method
  506. -public
  507. "
  508. >
  509. <h4 class="phpdocumentor-element__name" id="method_dump">
  510. dump()
  511. <a href="classes/chillerlan-QRCode-Output-QREps.html#method_dump" class="headerlink"><i class="fas fa-link"></i></a>
  512. </h4>
  513. <aside class="phpdocumentor-element-found-in">
  514. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QREps.php"><a href="files/src-output-qreps.html"><abbr title="src/Output/QREps.php">QREps.php</abbr></a></abbr>
  515. :
  516. <span class="phpdocumentor-element-found-in__line">81</span>
  517. </aside>
  518. <code class="phpdocumentor-code phpdocumentor-signature ">
  519. <span class="phpdocumentor-signature__visibility">public</span>
  520. <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</span></code>
  521. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  522. <dl class="phpdocumentor-argument-list">
  523. <dt class="phpdocumentor-argument-list__entry">
  524. <span class="phpdocumentor-signature__argument__name">$file</span>
  525. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  526. = <span class="phpdocumentor-signature__argument__default-value">null</span> </dt>
  527. <dd class="phpdocumentor-argument-list__definition">
  528. <section class="phpdocumentor-description"></section>
  529. </dd>
  530. </dl>
  531. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  532. Tags
  533. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  534. </h5>
  535. <dl class="phpdocumentor-tag-list">
  536. <dt class="phpdocumentor-tag-list__entry">
  537. <span class="phpdocumentor-tag__name">inheritDoc</span>
  538. </dt>
  539. <dd class="phpdocumentor-tag-list__definition">
  540. </dd>
  541. </dl>
  542. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  543. <span class="phpdocumentor-signature__response_type">string</span>
  544. &mdash;
  545. </article>
  546. <article
  547. class="phpdocumentor-element
  548. -method
  549. -public
  550. -static "
  551. >
  552. <h4 class="phpdocumentor-element__name" id="method_moduleValueIsValid">
  553. moduleValueIsValid()
  554. <a href="classes/chillerlan-QRCode-Output-QREps.html#method_moduleValueIsValid" class="headerlink"><i class="fas fa-link"></i></a>
  555. </h4>
  556. <aside class="phpdocumentor-element-found-in">
  557. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QREps.php"><a href="files/src-output-qreps.html"><abbr title="src/Output/QREps.php">QREps.php</abbr></a></abbr>
  558. :
  559. <span class="phpdocumentor-element-found-in__line">28</span>
  560. </aside>
  561. <code class="phpdocumentor-code phpdocumentor-signature ">
  562. <span class="phpdocumentor-signature__visibility">public</span>
  563. <span class="phpdocumentor-signature__static">static</span> <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>
  564. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  565. <dl class="phpdocumentor-argument-list">
  566. <dt class="phpdocumentor-argument-list__entry">
  567. <span class="phpdocumentor-signature__argument__name">$value</span>
  568. : <span class="phpdocumentor-signature__argument__return-type">mixed</span>
  569. </dt>
  570. <dd class="phpdocumentor-argument-list__definition">
  571. <section class="phpdocumentor-description"></section>
  572. </dd>
  573. </dl>
  574. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  575. Tags
  576. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  577. </h5>
  578. <dl class="phpdocumentor-tag-list">
  579. <dt class="phpdocumentor-tag-list__entry">
  580. <span class="phpdocumentor-tag__name">inheritDoc</span>
  581. </dt>
  582. <dd class="phpdocumentor-tag-list__definition">
  583. </dd>
  584. </dl>
  585. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  586. <span class="phpdocumentor-signature__response_type">bool</span>
  587. &mdash;
  588. </article>
  589. <article
  590. class="phpdocumentor-element
  591. -method
  592. -protected
  593. "
  594. >
  595. <h4 class="phpdocumentor-element__name" id="method_collectModules">
  596. collectModules()
  597. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_collectModules" class="headerlink"><i class="fas fa-link"></i></a>
  598. </h4>
  599. <aside class="phpdocumentor-element-found-in">
  600. <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>
  601. :
  602. <span class="phpdocumentor-element-found-in__line">176</span>
  603. </aside>
  604. <p class="phpdocumentor-summary">collects the modules per QRMatrix::M_* type and runs a $transform function on each module and
  605. returns an array with the transformed modules</p>
  606. <code class="phpdocumentor-code phpdocumentor-signature ">
  607. <span class="phpdocumentor-signature__visibility">protected</span>
  608. <span class="phpdocumentor-signature__name">collectModules</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><abbr title="\Closure">Closure</abbr>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$transform</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
  609. <section class="phpdocumentor-description"><p>The transform callback is called with the following parameters:</p>
  610. <p>$x - current column
  611. $y - current row
  612. $M_TYPE - field value
  613. $M_TYPE_LAYER - (possibly modified) field value that acts as layer id</p>
  614. </section>
  615. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  616. <dl class="phpdocumentor-argument-list">
  617. <dt class="phpdocumentor-argument-list__entry">
  618. <span class="phpdocumentor-signature__argument__name">$transform</span>
  619. : <span class="phpdocumentor-signature__argument__return-type"><abbr title="\Closure">Closure</abbr></span>
  620. </dt>
  621. <dd class="phpdocumentor-argument-list__definition">
  622. <section class="phpdocumentor-description"></section>
  623. </dd>
  624. </dl>
  625. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  626. <span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
  627. &mdash;
  628. </article>
  629. <article
  630. class="phpdocumentor-element
  631. -method
  632. -protected
  633. "
  634. >
  635. <h4 class="phpdocumentor-element__name" id="method_getDefaultModuleValue">
  636. getDefaultModuleValue()
  637. <a href="classes/chillerlan-QRCode-Output-QREps.html#method_getDefaultModuleValue" class="headerlink"><i class="fas fa-link"></i></a>
  638. </h4>
  639. <aside class="phpdocumentor-element-found-in">
  640. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QREps.php"><a href="files/src-output-qreps.html"><abbr title="src/Output/QREps.php">QREps.php</abbr></a></abbr>
  641. :
  642. <span class="phpdocumentor-element-found-in__line">74</span>
  643. </aside>
  644. <p class="phpdocumentor-summary">Returns a default value for either dark or light modules</p>
  645. <code class="phpdocumentor-code phpdocumentor-signature ">
  646. <span class="phpdocumentor-signature__visibility">protected</span>
  647. <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|null</span></code>
  648. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  649. <dl class="phpdocumentor-argument-list">
  650. <dt class="phpdocumentor-argument-list__entry">
  651. <span class="phpdocumentor-signature__argument__name">$isDark</span>
  652. : <span class="phpdocumentor-signature__argument__return-type">bool</span>
  653. </dt>
  654. <dd class="phpdocumentor-argument-list__definition">
  655. <section class="phpdocumentor-description"></section>
  656. </dd>
  657. </dl>
  658. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  659. Tags
  660. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  661. </h5>
  662. <dl class="phpdocumentor-tag-list">
  663. <dt class="phpdocumentor-tag-list__entry">
  664. <span class="phpdocumentor-tag__name">inheritDoc</span>
  665. </dt>
  666. <dd class="phpdocumentor-tag-list__definition">
  667. </dd>
  668. </dl>
  669. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  670. <span class="phpdocumentor-signature__response_type">mixed|null</span>
  671. &mdash;
  672. <section class="phpdocumentor-description"><p>return value depends on the output class</p>
  673. </section>
  674. </article>
  675. <article
  676. class="phpdocumentor-element
  677. -method
  678. -protected
  679. "
  680. >
  681. <h4 class="phpdocumentor-element__name" id="method_getModuleValue">
  682. getModuleValue()
  683. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_getModuleValue" class="headerlink"><i class="fas fa-link"></i></a>
  684. </h4>
  685. <aside class="phpdocumentor-element-found-in">
  686. <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>
  687. :
  688. <span class="phpdocumentor-element-found-in__line">100</span>
  689. </aside>
  690. <p class="phpdocumentor-summary">Returns the prepared value for the given $M_TYPE</p>
  691. <code class="phpdocumentor-code phpdocumentor-signature ">
  692. <span class="phpdocumentor-signature__visibility">protected</span>
  693. <span class="phpdocumentor-signature__name">getModuleValue</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$M_TYPE</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed|null</span></code>
  694. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  695. <dl class="phpdocumentor-argument-list">
  696. <dt class="phpdocumentor-argument-list__entry">
  697. <span class="phpdocumentor-signature__argument__name">$M_TYPE</span>
  698. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  699. </dt>
  700. <dd class="phpdocumentor-argument-list__definition">
  701. <section class="phpdocumentor-description"></section>
  702. </dd>
  703. </dl>
  704. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  705. Tags
  706. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  707. </h5>
  708. <dl class="phpdocumentor-tag-list">
  709. <dt class="phpdocumentor-tag-list__entry">
  710. <span class="phpdocumentor-tag__name">throws</span>
  711. </dt>
  712. <dd class="phpdocumentor-tag-list__definition">
  713. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Output-QRCodeOutputException.html"><abbr title="\chillerlan\QRCode\Output\QRCodeOutputException">QRCodeOutputException</abbr></a></span>
  714. </dd>
  715. </dl>
  716. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  717. <span class="phpdocumentor-signature__response_type">mixed|null</span>
  718. &mdash;
  719. <section class="phpdocumentor-description"><p>return value depends on the output class, null if $moduleValues[$M_TYPE] doesn't exist</p>
  720. </section>
  721. </article>
  722. <article
  723. class="phpdocumentor-element
  724. -method
  725. -protected
  726. "
  727. >
  728. <h4 class="phpdocumentor-element__name" id="method_getModuleValueAt">
  729. getModuleValueAt()
  730. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_getModuleValueAt" class="headerlink"><i class="fas fa-link"></i></a>
  731. </h4>
  732. <aside class="phpdocumentor-element-found-in">
  733. <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>
  734. :
  735. <span class="phpdocumentor-element-found-in__line">115</span>
  736. </aside>
  737. <p class="phpdocumentor-summary">Returns the prepared module value at the given coordinate [$x, $y] (convenience)</p>
  738. <code class="phpdocumentor-code phpdocumentor-signature ">
  739. <span class="phpdocumentor-signature__visibility">protected</span>
  740. <span class="phpdocumentor-signature__name">getModuleValueAt</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$x</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$y</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed|null</span></code>
  741. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  742. <dl class="phpdocumentor-argument-list">
  743. <dt class="phpdocumentor-argument-list__entry">
  744. <span class="phpdocumentor-signature__argument__name">$x</span>
  745. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  746. </dt>
  747. <dd class="phpdocumentor-argument-list__definition">
  748. <section class="phpdocumentor-description"></section>
  749. </dd>
  750. <dt class="phpdocumentor-argument-list__entry">
  751. <span class="phpdocumentor-signature__argument__name">$y</span>
  752. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  753. </dt>
  754. <dd class="phpdocumentor-argument-list__definition">
  755. <section class="phpdocumentor-description"></section>
  756. </dd>
  757. </dl>
  758. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  759. <span class="phpdocumentor-signature__response_type">mixed|null</span>
  760. &mdash;
  761. </article>
  762. <article
  763. class="phpdocumentor-element
  764. -method
  765. -protected
  766. "
  767. >
  768. <h4 class="phpdocumentor-element__name" id="method_module">
  769. module()
  770. <a href="classes/chillerlan-QRCode-Output-QREps.html#method_module" class="headerlink"><i class="fas fa-link"></i></a>
  771. </h4>
  772. <aside class="phpdocumentor-element-found-in">
  773. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QREps.php"><a href="files/src-output-qreps.html"><abbr title="src/Output/QREps.php">QREps.php</abbr></a></abbr>
  774. :
  775. <span class="phpdocumentor-element-found-in__line">130</span>
  776. </aside>
  777. <p class="phpdocumentor-summary">returns a path segment for a single module</p>
  778. <code class="phpdocumentor-code phpdocumentor-signature ">
  779. <span class="phpdocumentor-signature__visibility">protected</span>
  780. <span class="phpdocumentor-signature__name">module</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$x</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$y</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
  781. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  782. <dl class="phpdocumentor-argument-list">
  783. <dt class="phpdocumentor-argument-list__entry">
  784. <span class="phpdocumentor-signature__argument__name">$x</span>
  785. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  786. </dt>
  787. <dd class="phpdocumentor-argument-list__definition">
  788. <section class="phpdocumentor-description"></section>
  789. </dd>
  790. <dt class="phpdocumentor-argument-list__entry">
  791. <span class="phpdocumentor-signature__argument__name">$y</span>
  792. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  793. </dt>
  794. <dd class="phpdocumentor-argument-list__definition">
  795. <section class="phpdocumentor-description"></section>
  796. </dd>
  797. </dl>
  798. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  799. <span class="phpdocumentor-signature__response_type">string</span>
  800. &mdash;
  801. </article>
  802. <article
  803. class="phpdocumentor-element
  804. -method
  805. -protected
  806. "
  807. >
  808. <h4 class="phpdocumentor-element__name" id="method_prepareModuleValue">
  809. prepareModuleValue()
  810. <a href="classes/chillerlan-QRCode-Output-QREps.html#method_prepareModuleValue" class="headerlink"><i class="fas fa-link"></i></a>
  811. </h4>
  812. <aside class="phpdocumentor-element-found-in">
  813. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QREps.php"><a href="files/src-output-qreps.html"><abbr title="src/Output/QREps.php">QREps.php</abbr></a></abbr>
  814. :
  815. <span class="phpdocumentor-element-found-in__line">55</span>
  816. </aside>
  817. <p class="phpdocumentor-summary">Prepares the value for the given input ()</p>
  818. <code class="phpdocumentor-code phpdocumentor-signature ">
  819. <span class="phpdocumentor-signature__visibility">protected</span>
  820. <span class="phpdocumentor-signature__name">prepareModuleValue</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$value</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed|null</span></code>
  821. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  822. <dl class="phpdocumentor-argument-list">
  823. <dt class="phpdocumentor-argument-list__entry">
  824. <span class="phpdocumentor-signature__argument__name">$value</span>
  825. : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
  826. </dt>
  827. <dd class="phpdocumentor-argument-list__definition">
  828. </dd>
  829. </dl>
  830. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  831. Tags
  832. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  833. </h5>
  834. <dl class="phpdocumentor-tag-list">
  835. <dt class="phpdocumentor-tag-list__entry">
  836. <span class="phpdocumentor-tag__name">inheritDoc</span>
  837. </dt>
  838. <dd class="phpdocumentor-tag-list__definition">
  839. </dd>
  840. </dl>
  841. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  842. <span class="phpdocumentor-signature__response_type">mixed|null</span>
  843. &mdash;
  844. <section class="phpdocumentor-description"><p>return value depends on the output class</p>
  845. </section>
  846. </article>
  847. <article
  848. class="phpdocumentor-element
  849. -method
  850. -protected
  851. "
  852. >
  853. <h4 class="phpdocumentor-element__name" id="method_saveToFile">
  854. saveToFile()
  855. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_saveToFile" class="headerlink"><i class="fas fa-link"></i></a>
  856. </h4>
  857. <aside class="phpdocumentor-element-found-in">
  858. <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>
  859. :
  860. <span class="phpdocumentor-element-found-in__line">150</span>
  861. </aside>
  862. <p class="phpdocumentor-summary">Saves the qr $data to a $file. If $file is null, nothing happens.</p>
  863. <code class="phpdocumentor-code phpdocumentor-signature ">
  864. <span class="phpdocumentor-signature__visibility">protected</span>
  865. <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>, </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">void</span></code>
  866. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  867. <dl class="phpdocumentor-argument-list">
  868. <dt class="phpdocumentor-argument-list__entry">
  869. <span class="phpdocumentor-signature__argument__name">$data</span>
  870. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  871. </dt>
  872. <dd class="phpdocumentor-argument-list__definition">
  873. <section class="phpdocumentor-description"></section>
  874. </dd>
  875. <dt class="phpdocumentor-argument-list__entry">
  876. <span class="phpdocumentor-signature__argument__name">$file</span>
  877. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  878. = <span class="phpdocumentor-signature__argument__default-value">null</span> </dt>
  879. <dd class="phpdocumentor-argument-list__definition">
  880. <section class="phpdocumentor-description"></section>
  881. </dd>
  882. </dl>
  883. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  884. Tags
  885. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  886. </h5>
  887. <dl class="phpdocumentor-tag-list">
  888. <dt class="phpdocumentor-tag-list__entry">
  889. <span class="phpdocumentor-tag__name">see</span>
  890. </dt>
  891. <dd class="phpdocumentor-tag-list__definition">
  892. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\Output\file_put_contents()">file_put_contents()</abbr></span>
  893. </dd>
  894. <dt class="phpdocumentor-tag-list__entry">
  895. <span class="phpdocumentor-tag__name">see</span>
  896. </dt>
  897. <dd class="phpdocumentor-tag-list__definition">
  898. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\QROptions::$cachefile">QROptions::$cachefile</abbr></span>
  899. </dd>
  900. <dt class="phpdocumentor-tag-list__entry">
  901. <span class="phpdocumentor-tag__name">throws</span>
  902. </dt>
  903. <dd class="phpdocumentor-tag-list__definition">
  904. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Output-QRCodeOutputException.html"><abbr title="\chillerlan\QRCode\Output\QRCodeOutputException">QRCodeOutputException</abbr></a></span>
  905. </dd>
  906. </dl>
  907. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  908. <span class="phpdocumentor-signature__response_type">void</span>
  909. &mdash;
  910. </article>
  911. <article
  912. class="phpdocumentor-element
  913. -method
  914. -protected
  915. "
  916. >
  917. <h4 class="phpdocumentor-element__name" id="method_setMatrixDimensions">
  918. setMatrixDimensions()
  919. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_setMatrixDimensions" class="headerlink"><i class="fas fa-link"></i></a>
  920. </h4>
  921. <aside class="phpdocumentor-element-found-in">
  922. <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>
  923. :
  924. <span class="phpdocumentor-element-found-in__line">73</span>
  925. </aside>
  926. <p class="phpdocumentor-summary">Sets/updates the matrix dimensions</p>
  927. <code class="phpdocumentor-code phpdocumentor-signature ">
  928. <span class="phpdocumentor-signature__visibility">protected</span>
  929. <span class="phpdocumentor-signature__name">setMatrixDimensions</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  930. <section class="phpdocumentor-description"><p>Call this method if you modify the matrix from within your custom module in case the dimensions have been changed</p>
  931. </section>
  932. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  933. <span class="phpdocumentor-signature__response_type">void</span>
  934. &mdash;
  935. </article>
  936. <article
  937. class="phpdocumentor-element
  938. -method
  939. -protected
  940. "
  941. >
  942. <h4 class="phpdocumentor-element__name" id="method_setModuleValues">
  943. setModuleValues()
  944. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_setModuleValues" class="headerlink"><i class="fas fa-link"></i></a>
  945. </h4>
  946. <aside class="phpdocumentor-element-found-in">
  947. <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>
  948. :
  949. <span class="phpdocumentor-element-found-in__line">82</span>
  950. </aside>
  951. <p class="phpdocumentor-summary">Sets the initial module values</p>
  952. <code class="phpdocumentor-code phpdocumentor-signature ">
  953. <span class="phpdocumentor-signature__visibility">protected</span>
  954. <span class="phpdocumentor-signature__name">setModuleValues</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  955. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  956. <span class="phpdocumentor-signature__response_type">void</span>
  957. &mdash;
  958. </article>
  959. <article
  960. class="phpdocumentor-element
  961. -method
  962. -protected
  963. "
  964. >
  965. <h4 class="phpdocumentor-element__name" id="method_toBase64DataURI">
  966. toBase64DataURI()
  967. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_toBase64DataURI" class="headerlink"><i class="fas fa-link"></i></a>
  968. </h4>
  969. <aside class="phpdocumentor-element-found-in">
  970. <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>
  971. :
  972. <span class="phpdocumentor-element-found-in__line">138</span>
  973. </aside>
  974. <p class="phpdocumentor-summary">Returns a base64 data URI for the given string and mime type</p>
  975. <code class="phpdocumentor-code phpdocumentor-signature ">
  976. <span class="phpdocumentor-signature__visibility">protected</span>
  977. <span class="phpdocumentor-signature__name">toBase64DataURI</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>
  978. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  979. <dl class="phpdocumentor-argument-list">
  980. <dt class="phpdocumentor-argument-list__entry">
  981. <span class="phpdocumentor-signature__argument__name">$data</span>
  982. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  983. </dt>
  984. <dd class="phpdocumentor-argument-list__definition">
  985. <section class="phpdocumentor-description"></section>
  986. </dd>
  987. <dt class="phpdocumentor-argument-list__entry">
  988. <span class="phpdocumentor-signature__argument__name">$mime</span>
  989. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  990. </dt>
  991. <dd class="phpdocumentor-argument-list__definition">
  992. <section class="phpdocumentor-description"></section>
  993. </dd>
  994. </dl>
  995. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  996. <span class="phpdocumentor-signature__response_type">string</span>
  997. &mdash;
  998. </article>
  999. </section>
  1000. <script type="text/javascript">
  1001. function loadExternalCodeSnippets(line) {
  1002. Array.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach((pre) => {
  1003. var src = pre.getAttribute('data-src').replace( /\\/g, '/');
  1004. var extension = (src.match(/\.(\w+)$/) || [, ''])[1];
  1005. var language = 'php';
  1006. var code = document.createElement('code');
  1007. code.className = 'language-' + language;
  1008. pre.textContent = '';
  1009. pre.setAttribute('data-line', line)
  1010. code.textContent = 'Loading…';
  1011. pre.appendChild(code);
  1012. var xhr = new XMLHttpRequest();
  1013. xhr.open('GET', src, true);
  1014. xhr.onreadystatechange = function () {
  1015. if (xhr.readyState == 4) {
  1016. if (xhr.status < 400 && xhr.responseText) {
  1017. code.textContent = xhr.responseText;
  1018. Prism.highlightElement(code);
  1019. }
  1020. else if (xhr.status >= 400) {
  1021. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  1022. }
  1023. else {
  1024. code.textContent = '✖ Error: File does not exist, is empty or trying to view from localhost';
  1025. }
  1026. }
  1027. };
  1028. xhr.send(null);
  1029. });
  1030. }
  1031. var modals = document.querySelectorAll("[data-modal]");
  1032. modals.forEach(function (trigger) {
  1033. trigger.addEventListener("click", function (event) {
  1034. //event.preventDefault();
  1035. const modal = document.getElementById(trigger.dataset.modal);
  1036. modal.classList.add("phpdocumentor-modal__open");
  1037. loadExternalCodeSnippets(trigger.dataset.line)
  1038. const exits = modal.querySelectorAll("[data-exit-button]");
  1039. exits.forEach(function (exit) {
  1040. exit.addEventListener("click", function (event) {
  1041. event.preventDefault();
  1042. modal.classList.remove("phpdocumentor-modal__open");
  1043. });
  1044. });
  1045. });
  1046. });
  1047. </script>
  1048. </article>
  1049. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  1050. <section class="phpdocumentor-search-results__dialog">
  1051. <header class="phpdocumentor-search-results__header">
  1052. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  1053. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  1054. </header>
  1055. <section class="phpdocumentor-search-results__body">
  1056. <ul class="phpdocumentor-search-results__entries"></ul>
  1057. </section>
  1058. </section>
  1059. </section>
  1060. </div>
  1061. </div>
  1062. <a href="classes/chillerlan-QRCode-Output-QREps.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  1063. </main>
  1064. <script>
  1065. cssVars({});
  1066. </script>
  1067. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  1068. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  1069. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  1070. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  1071. </body>
  1072. </html>