chillerlan-QRCode-Output-QREps.html 66 KB

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