chillerlan-QRCode-Output-QRMarkupHTML.html 66 KB

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