chillerlan-QRCode-Output-QRString.html 56 KB

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