chillerlan-QRCode-Output-QROutputInterface.html 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749
  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=Open+Sans:wght@100;200;300;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/template.js"></script>
  22. <script src="js/search.js"></script>
  23. <script defer src="js/searchIndex.js"></script>
  24. </head>
  25. <body id="top">
  26. <header class="phpdocumentor-header phpdocumentor-section">
  27. <h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
  28. <input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
  29. <label class="phpdocumentor-header__menu-icon" for="menu-button">
  30. <i class="fas fa-bars"></i>
  31. </label>
  32. <section data-search-form class="phpdocumentor-search">
  33. <label>
  34. <span class="visually-hidden">Search for</span>
  35. <svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  36. <circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
  37. <line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
  38. </svg>
  39. <input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
  40. </label>
  41. </section>
  42. <nav class="phpdocumentor-topnav">
  43. <ul class="phpdocumentor-topnav__menu">
  44. <li class="phpdocumentor-topnav__menu-item -menu">
  45. <a href="https://php-qrcode.readthedocs.io">
  46. <span>
  47. User Manual
  48. </span>
  49. </a>
  50. </li>
  51. <li class="phpdocumentor-topnav__menu-item -social">
  52. <a href="https://github.com/chillerlan/php-qrcode">
  53. <span>
  54. <i class="fab fa-github"></i>
  55. </span>
  56. </a>
  57. </li>
  58. </ul>
  59. </nav>
  60. </header>
  61. <main class="phpdocumentor">
  62. <div class="phpdocumentor-section">
  63. <input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
  64. <label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
  65. Menu
  66. </label>
  67. <aside class="phpdocumentor-column -three phpdocumentor-sidebar">
  68. <section class="phpdocumentor-sidebar__category">
  69. <h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
  70. <h4 class="phpdocumentor-sidebar__root-namespace">
  71. <a href="namespaces/chillerlan.html" class="">chillerlan</a>
  72. </h4>
  73. <ul class="phpdocumentor-list">
  74. <li>
  75. <a href="namespaces/chillerlan-qrcode.html" class="">QRCode</a>
  76. </li>
  77. <li>
  78. <a href="namespaces/chillerlan-qrcodetest.html" class="">QRCodeTest</a>
  79. </li>
  80. </ul>
  81. <h4 class="phpdocumentor-sidebar__root-namespace">
  82. <a href="namespaces/output.html" class="">Output</a>
  83. </h4>
  84. </section>
  85. <section class="phpdocumentor-sidebar__category">
  86. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  87. <h4 class="phpdocumentor-sidebar__root-namespace">
  88. <a href="packages/Application.html" class="">Application</a>
  89. </h4>
  90. </section>
  91. <section class="phpdocumentor-sidebar__category">
  92. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  93. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  94. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  95. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  96. </section>
  97. <section class="phpdocumentor-sidebar__category">
  98. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  99. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  100. </section>
  101. </aside>
  102. <div class="phpdocumentor-column -nine phpdocumentor-content">
  103. <section>
  104. <ul class="phpdocumentor-breadcrumbs">
  105. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  106. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode.html">QRCode</a></li>
  107. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode-output.html">Output</a></li>
  108. </ul>
  109. <article class="phpdocumentor-element -interface">
  110. <h2 class="phpdocumentor-content__title">
  111. QROutputInterface
  112. <div class="phpdocumentor-element__package">
  113. in
  114. <ul class="phpdocumentor-breadcrumbs">
  115. <li><a href="packages/Application.html">Application</a></li>
  116. </ul>
  117. </div>
  118. </h2>
  119. <aside class="phpdocumentor-element-found-in">
  120. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QROutputInterface.php"><a href="files/src-output-qroutputinterface.html"><abbr title="src/Output/QROutputInterface.php">QROutputInterface.php</abbr></a></abbr>
  121. :
  122. <span class="phpdocumentor-element-found-in__line">18</span>
  123. </aside>
  124. <p class="phpdocumentor-summary">Converts the data matrix into readable output</p>
  125. <h3 id="toc">
  126. Table of Contents
  127. <a href="classes/chillerlan-QRCode-Output-QROutputInterface.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
  128. </h3>
  129. <h4 id="toc-constants">
  130. Constants
  131. <a href="classes/chillerlan-QRCode-Output-QROutputInterface.html#toc-constants" class="headerlink"><i class="fas fa-link"></i></a>
  132. </h4>
  133. <dl class="phpdocumentor-table-of-contents">
  134. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  135. <a href="classes/chillerlan-QRCode-Output-QROutputInterface.html#constant_DEFAULT_MODULE_VALUES">DEFAULT_MODULE_VALUES</a>
  136. <span>
  137. &nbsp;= [
  138. // light
  139. \chillerlan\QRCode\Data\QRMatrix::M_NULL =&gt; false,
  140. \chillerlan\QRCode\Data\QRMatrix::M_DARKMODULE_LIGHT =&gt; false,
  141. \chillerlan\QRCode\Data\QRMatrix::M_DATA =&gt; false,
  142. \chillerlan\QRCode\Data\QRMatrix::M_FINDER =&gt; false,
  143. \chillerlan\QRCode\Data\QRMatrix::M_SEPARATOR =&gt; false,
  144. \chillerlan\QRCode\Data\QRMatrix::M_ALIGNMENT =&gt; false,
  145. \chillerlan\QRCode\Data\QRMatrix::M_TIMING =&gt; false,
  146. \chillerlan\QRCode\Data\QRMatrix::M_FORMAT =&gt; false,
  147. \chillerlan\QRCode\Data\QRMatrix::M_VERSION =&gt; false,
  148. \chillerlan\QRCode\Data\QRMatrix::M_QUIETZONE =&gt; false,
  149. \chillerlan\QRCode\Data\QRMatrix::M_LOGO =&gt; false,
  150. \chillerlan\QRCode\Data\QRMatrix::M_FINDER_DOT_LIGHT =&gt; false,
  151. // dark
  152. \chillerlan\QRCode\Data\QRMatrix::M_DARKMODULE =&gt; true,
  153. \chillerlan\QRCode\Data\QRMatrix::M_DATA_DARK =&gt; true,
  154. \chillerlan\QRCode\Data\QRMatrix::M_FINDER_DARK =&gt; true,
  155. \chillerlan\QRCode\Data\QRMatrix::M_SEPARATOR_DARK =&gt; true,
  156. \chillerlan\QRCode\Data\QRMatrix::M_ALIGNMENT_DARK =&gt; true,
  157. \chillerlan\QRCode\Data\QRMatrix::M_TIMING_DARK =&gt; true,
  158. \chillerlan\QRCode\Data\QRMatrix::M_FORMAT_DARK =&gt; true,
  159. \chillerlan\QRCode\Data\QRMatrix::M_VERSION_DARK =&gt; true,
  160. \chillerlan\QRCode\Data\QRMatrix::M_QUIETZONE_DARK =&gt; true,
  161. \chillerlan\QRCode\Data\QRMatrix::M_LOGO_DARK =&gt; true,
  162. \chillerlan\QRCode\Data\QRMatrix::M_FINDER_DOT =&gt; true,
  163. ] </span>
  164. </dt>
  165. <dd>Map of module type =&gt; default value</dd>
  166. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  167. <a href="classes/chillerlan-QRCode-Output-QROutputInterface.html#constant_LAYERNAMES">LAYERNAMES</a>
  168. <span>
  169. &nbsp;= [
  170. // light
  171. \chillerlan\QRCode\Data\QRMatrix::M_NULL =&gt; &#039;null&#039;,
  172. \chillerlan\QRCode\Data\QRMatrix::M_DARKMODULE_LIGHT =&gt; &#039;darkmodule-light&#039;,
  173. \chillerlan\QRCode\Data\QRMatrix::M_DATA =&gt; &#039;data&#039;,
  174. \chillerlan\QRCode\Data\QRMatrix::M_FINDER =&gt; &#039;finder&#039;,
  175. \chillerlan\QRCode\Data\QRMatrix::M_SEPARATOR =&gt; &#039;separator&#039;,
  176. \chillerlan\QRCode\Data\QRMatrix::M_ALIGNMENT =&gt; &#039;alignment&#039;,
  177. \chillerlan\QRCode\Data\QRMatrix::M_TIMING =&gt; &#039;timing&#039;,
  178. \chillerlan\QRCode\Data\QRMatrix::M_FORMAT =&gt; &#039;format&#039;,
  179. \chillerlan\QRCode\Data\QRMatrix::M_VERSION =&gt; &#039;version&#039;,
  180. \chillerlan\QRCode\Data\QRMatrix::M_QUIETZONE =&gt; &#039;quietzone&#039;,
  181. \chillerlan\QRCode\Data\QRMatrix::M_LOGO =&gt; &#039;logo&#039;,
  182. \chillerlan\QRCode\Data\QRMatrix::M_FINDER_DOT_LIGHT =&gt; &#039;finder-dot-light&#039;,
  183. // dark
  184. \chillerlan\QRCode\Data\QRMatrix::M_DARKMODULE =&gt; &#039;darkmodule&#039;,
  185. \chillerlan\QRCode\Data\QRMatrix::M_DATA_DARK =&gt; &#039;data-dark&#039;,
  186. \chillerlan\QRCode\Data\QRMatrix::M_FINDER_DARK =&gt; &#039;finder-dark&#039;,
  187. \chillerlan\QRCode\Data\QRMatrix::M_SEPARATOR_DARK =&gt; &#039;separator-dark&#039;,
  188. \chillerlan\QRCode\Data\QRMatrix::M_ALIGNMENT_DARK =&gt; &#039;alignment-dark&#039;,
  189. \chillerlan\QRCode\Data\QRMatrix::M_TIMING_DARK =&gt; &#039;timing-dark&#039;,
  190. \chillerlan\QRCode\Data\QRMatrix::M_FORMAT_DARK =&gt; &#039;format-dark&#039;,
  191. \chillerlan\QRCode\Data\QRMatrix::M_VERSION_DARK =&gt; &#039;version-dark&#039;,
  192. \chillerlan\QRCode\Data\QRMatrix::M_QUIETZONE_DARK =&gt; &#039;quietzone-dark&#039;,
  193. \chillerlan\QRCode\Data\QRMatrix::M_LOGO_DARK =&gt; &#039;logo-dark&#039;,
  194. \chillerlan\QRCode\Data\QRMatrix::M_FINDER_DOT =&gt; &#039;finder-dot&#039;,
  195. ] </span>
  196. </dt>
  197. <dd>Map of module type =&gt; readable name (for CSS etc.)</dd>
  198. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  199. <a href="classes/chillerlan-QRCode-Output-QROutputInterface.html#constant_MIME_TYPE">MIME_TYPE</a>
  200. <span>
  201. &nbsp;= &#039;&#039; </span>
  202. </dt>
  203. <dd>Note: do not call this constant from the interface, but rather from one of the child classes</dd>
  204. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  205. <a href="classes/chillerlan-QRCode-Output-QROutputInterface.html#constant_MODES">MODES</a>
  206. <span>
  207. &nbsp;= [\chillerlan\QRCode\Output\QREps::class, \chillerlan\QRCode\Output\QRFpdf::class, \chillerlan\QRCode\Output\QRGdImageAVIF::class, \chillerlan\QRCode\Output\QRGdImageBMP::class, \chillerlan\QRCode\Output\QRGdImageGIF::class, \chillerlan\QRCode\Output\QRGdImageJPEG::class, \chillerlan\QRCode\Output\QRGdImagePNG::class, \chillerlan\QRCode\Output\QRGdImageWEBP::class, \chillerlan\QRCode\Output\QRImagick::class, \chillerlan\QRCode\Output\QRMarkupHTML::class, \chillerlan\QRCode\Output\QRMarkupSVG::class, \chillerlan\QRCode\Output\QRMarkupXML::class, \chillerlan\QRCode\Output\QRStringJSON::class, \chillerlan\QRCode\Output\QRStringText::class] </span>
  208. </dt>
  209. <dd>Map of built-in output class FQN</dd>
  210. </dl>
  211. <h4 id="toc-methods">
  212. Methods
  213. <a href="classes/chillerlan-QRCode-Output-QROutputInterface.html#toc-methods" class="headerlink"><i class="fas fa-link"></i></a>
  214. </h4>
  215. <dl class="phpdocumentor-table-of-contents">
  216. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  217. <a href="classes/chillerlan-QRCode-Output-QROutputInterface.html#method_dump">dump()</a>
  218. <span>
  219. &nbsp;: mixed </span>
  220. </dt>
  221. <dd>Generates the output, optionally dumps it to a file, and returns it</dd>
  222. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  223. <a href="classes/chillerlan-QRCode-Output-QROutputInterface.html#method_moduleValueIsValid">moduleValueIsValid()</a>
  224. <span>
  225. &nbsp;: bool </span>
  226. </dt>
  227. <dd>Determines whether the given value is valid</dd>
  228. </dl>
  229. <section class="phpdocumentor-constants">
  230. <h3 class="phpdocumentor-elements__header" id="constants">
  231. Constants
  232. <a href="classes/chillerlan-QRCode-Output-QROutputInterface.html#constants" class="headerlink"><i class="fas fa-link"></i></a>
  233. </h3>
  234. <article class="phpdocumentor-element -constant -public ">
  235. <h4 class="phpdocumentor-element__name" id="constant_DEFAULT_MODULE_VALUES">
  236. DEFAULT_MODULE_VALUES
  237. <a href="classes/chillerlan-QRCode-Output-QROutputInterface.html#constant_DEFAULT_MODULE_VALUES" class="headerlink"><i class="fas fa-link"></i></a>
  238. </h4>
  239. <aside class="phpdocumentor-element-found-in">
  240. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QROutputInterface.php"><a href="files/src-output-qroutputinterface.html"><abbr title="src/Output/QROutputInterface.php">QROutputInterface.php</abbr></a></abbr>
  241. :
  242. <span class="phpdocumentor-element-found-in__line">48</span>
  243. </aside>
  244. <p class="phpdocumentor-summary">Map of module type =&gt; default value</p>
  245. <code class="phpdocumentor-signature phpdocumentor-code ">
  246. <span class="phpdocumentor-signature__visibility">public</span>
  247. <span class="phpdocumentor-signature__type">array&lt;string|int, bool&gt;</span>
  248. <span class="phpdocumentor-signature__name">DEFAULT_MODULE_VALUES</span>
  249. = <span class="phpdocumentor-signature__default-value">[
  250. // light
  251. \chillerlan\QRCode\Data\QRMatrix::M_NULL =&gt; false,
  252. \chillerlan\QRCode\Data\QRMatrix::M_DARKMODULE_LIGHT =&gt; false,
  253. \chillerlan\QRCode\Data\QRMatrix::M_DATA =&gt; false,
  254. \chillerlan\QRCode\Data\QRMatrix::M_FINDER =&gt; false,
  255. \chillerlan\QRCode\Data\QRMatrix::M_SEPARATOR =&gt; false,
  256. \chillerlan\QRCode\Data\QRMatrix::M_ALIGNMENT =&gt; false,
  257. \chillerlan\QRCode\Data\QRMatrix::M_TIMING =&gt; false,
  258. \chillerlan\QRCode\Data\QRMatrix::M_FORMAT =&gt; false,
  259. \chillerlan\QRCode\Data\QRMatrix::M_VERSION =&gt; false,
  260. \chillerlan\QRCode\Data\QRMatrix::M_QUIETZONE =&gt; false,
  261. \chillerlan\QRCode\Data\QRMatrix::M_LOGO =&gt; false,
  262. \chillerlan\QRCode\Data\QRMatrix::M_FINDER_DOT_LIGHT =&gt; false,
  263. // dark
  264. \chillerlan\QRCode\Data\QRMatrix::M_DARKMODULE =&gt; true,
  265. \chillerlan\QRCode\Data\QRMatrix::M_DATA_DARK =&gt; true,
  266. \chillerlan\QRCode\Data\QRMatrix::M_FINDER_DARK =&gt; true,
  267. \chillerlan\QRCode\Data\QRMatrix::M_SEPARATOR_DARK =&gt; true,
  268. \chillerlan\QRCode\Data\QRMatrix::M_ALIGNMENT_DARK =&gt; true,
  269. \chillerlan\QRCode\Data\QRMatrix::M_TIMING_DARK =&gt; true,
  270. \chillerlan\QRCode\Data\QRMatrix::M_FORMAT_DARK =&gt; true,
  271. \chillerlan\QRCode\Data\QRMatrix::M_VERSION_DARK =&gt; true,
  272. \chillerlan\QRCode\Data\QRMatrix::M_QUIETZONE_DARK =&gt; true,
  273. \chillerlan\QRCode\Data\QRMatrix::M_LOGO_DARK =&gt; true,
  274. \chillerlan\QRCode\Data\QRMatrix::M_FINDER_DOT =&gt; true,
  275. ]</span>
  276. </code>
  277. </article>
  278. <article class="phpdocumentor-element -constant -public ">
  279. <h4 class="phpdocumentor-element__name" id="constant_LAYERNAMES">
  280. LAYERNAMES
  281. <a href="classes/chillerlan-QRCode-Output-QROutputInterface.html#constant_LAYERNAMES" class="headerlink"><i class="fas fa-link"></i></a>
  282. </h4>
  283. <aside class="phpdocumentor-element-found-in">
  284. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QROutputInterface.php"><a href="files/src-output-qroutputinterface.html"><abbr title="src/Output/QROutputInterface.php">QROutputInterface.php</abbr></a></abbr>
  285. :
  286. <span class="phpdocumentor-element-found-in__line">81</span>
  287. </aside>
  288. <p class="phpdocumentor-summary">Map of module type =&gt; readable name (for CSS etc.)</p>
  289. <code class="phpdocumentor-signature phpdocumentor-code ">
  290. <span class="phpdocumentor-signature__visibility">public</span>
  291. <span class="phpdocumentor-signature__type">array&lt;string|int, string&gt;</span>
  292. <span class="phpdocumentor-signature__name">LAYERNAMES</span>
  293. = <span class="phpdocumentor-signature__default-value">[
  294. // light
  295. \chillerlan\QRCode\Data\QRMatrix::M_NULL =&gt; &#039;null&#039;,
  296. \chillerlan\QRCode\Data\QRMatrix::M_DARKMODULE_LIGHT =&gt; &#039;darkmodule-light&#039;,
  297. \chillerlan\QRCode\Data\QRMatrix::M_DATA =&gt; &#039;data&#039;,
  298. \chillerlan\QRCode\Data\QRMatrix::M_FINDER =&gt; &#039;finder&#039;,
  299. \chillerlan\QRCode\Data\QRMatrix::M_SEPARATOR =&gt; &#039;separator&#039;,
  300. \chillerlan\QRCode\Data\QRMatrix::M_ALIGNMENT =&gt; &#039;alignment&#039;,
  301. \chillerlan\QRCode\Data\QRMatrix::M_TIMING =&gt; &#039;timing&#039;,
  302. \chillerlan\QRCode\Data\QRMatrix::M_FORMAT =&gt; &#039;format&#039;,
  303. \chillerlan\QRCode\Data\QRMatrix::M_VERSION =&gt; &#039;version&#039;,
  304. \chillerlan\QRCode\Data\QRMatrix::M_QUIETZONE =&gt; &#039;quietzone&#039;,
  305. \chillerlan\QRCode\Data\QRMatrix::M_LOGO =&gt; &#039;logo&#039;,
  306. \chillerlan\QRCode\Data\QRMatrix::M_FINDER_DOT_LIGHT =&gt; &#039;finder-dot-light&#039;,
  307. // dark
  308. \chillerlan\QRCode\Data\QRMatrix::M_DARKMODULE =&gt; &#039;darkmodule&#039;,
  309. \chillerlan\QRCode\Data\QRMatrix::M_DATA_DARK =&gt; &#039;data-dark&#039;,
  310. \chillerlan\QRCode\Data\QRMatrix::M_FINDER_DARK =&gt; &#039;finder-dark&#039;,
  311. \chillerlan\QRCode\Data\QRMatrix::M_SEPARATOR_DARK =&gt; &#039;separator-dark&#039;,
  312. \chillerlan\QRCode\Data\QRMatrix::M_ALIGNMENT_DARK =&gt; &#039;alignment-dark&#039;,
  313. \chillerlan\QRCode\Data\QRMatrix::M_TIMING_DARK =&gt; &#039;timing-dark&#039;,
  314. \chillerlan\QRCode\Data\QRMatrix::M_FORMAT_DARK =&gt; &#039;format-dark&#039;,
  315. \chillerlan\QRCode\Data\QRMatrix::M_VERSION_DARK =&gt; &#039;version-dark&#039;,
  316. \chillerlan\QRCode\Data\QRMatrix::M_QUIETZONE_DARK =&gt; &#039;quietzone-dark&#039;,
  317. \chillerlan\QRCode\Data\QRMatrix::M_LOGO_DARK =&gt; &#039;logo-dark&#039;,
  318. \chillerlan\QRCode\Data\QRMatrix::M_FINDER_DOT =&gt; &#039;finder-dot&#039;,
  319. ]</span>
  320. </code>
  321. </article>
  322. <article class="phpdocumentor-element -constant -public ">
  323. <h4 class="phpdocumentor-element__name" id="constant_MIME_TYPE">
  324. MIME_TYPE
  325. <a href="classes/chillerlan-QRCode-Output-QROutputInterface.html#constant_MIME_TYPE" class="headerlink"><i class="fas fa-link"></i></a>
  326. </h4>
  327. <aside class="phpdocumentor-element-found-in">
  328. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QROutputInterface.php"><a href="files/src-output-qroutputinterface.html"><abbr title="src/Output/QROutputInterface.php">QROutputInterface.php</abbr></a></abbr>
  329. :
  330. <span class="phpdocumentor-element-found-in__line">115</span>
  331. </aside>
  332. <p class="phpdocumentor-summary">Note: do not call this constant from the interface, but rather from one of the child classes</p>
  333. <code class="phpdocumentor-signature phpdocumentor-code ">
  334. <span class="phpdocumentor-signature__visibility">public</span>
  335. <span class="phpdocumentor-signature__type">string</span>
  336. <span class="phpdocumentor-signature__name">MIME_TYPE</span>
  337. = <span class="phpdocumentor-signature__default-value">&#039;&#039;</span>
  338. </code>
  339. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  340. Tags
  341. <a href="classes/chillerlan-QRCode-Output-QROutputInterface.html#constant_MIME_TYPE#tags" class="headerlink"><i class="fas fa-link"></i></a>
  342. </h5>
  343. <dl class="phpdocumentor-tag-list">
  344. <dt class="phpdocumentor-tag-list__entry">
  345. <span class="phpdocumentor-tag__name">see</span>
  346. </dt>
  347. <dd class="phpdocumentor-tag-list__definition">
  348. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_toBase64DataURI"><abbr title="\chillerlan\QRCode\Output\QROutputAbstract::toBase64DataURI()">QROutputAbstract::toBase64DataURI()</abbr></a></span>
  349. </dd>
  350. </dl>
  351. </article>
  352. <article class="phpdocumentor-element -constant -public ">
  353. <h4 class="phpdocumentor-element__name" id="constant_MODES">
  354. MODES
  355. <a href="classes/chillerlan-QRCode-Output-QROutputInterface.html#constant_MODES" class="headerlink"><i class="fas fa-link"></i></a>
  356. </h4>
  357. <aside class="phpdocumentor-element-found-in">
  358. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QROutputInterface.php"><a href="files/src-output-qroutputinterface.html"><abbr title="src/Output/QROutputInterface.php">QROutputInterface.php</abbr></a></abbr>
  359. :
  360. <span class="phpdocumentor-element-found-in__line">26</span>
  361. </aside>
  362. <p class="phpdocumentor-summary">Map of built-in output class FQN</p>
  363. <code class="phpdocumentor-signature phpdocumentor-code ">
  364. <span class="phpdocumentor-signature__visibility">public</span>
  365. <span class="phpdocumentor-signature__type">array&lt;string|int, string&gt;</span>
  366. <span class="phpdocumentor-signature__name">MODES</span>
  367. = <span class="phpdocumentor-signature__default-value">[\chillerlan\QRCode\Output\QREps::class, \chillerlan\QRCode\Output\QRFpdf::class, \chillerlan\QRCode\Output\QRGdImageAVIF::class, \chillerlan\QRCode\Output\QRGdImageBMP::class, \chillerlan\QRCode\Output\QRGdImageGIF::class, \chillerlan\QRCode\Output\QRGdImageJPEG::class, \chillerlan\QRCode\Output\QRGdImagePNG::class, \chillerlan\QRCode\Output\QRGdImageWEBP::class, \chillerlan\QRCode\Output\QRImagick::class, \chillerlan\QRCode\Output\QRMarkupHTML::class, \chillerlan\QRCode\Output\QRMarkupSVG::class, \chillerlan\QRCode\Output\QRMarkupXML::class, \chillerlan\QRCode\Output\QRStringJSON::class, \chillerlan\QRCode\Output\QRStringText::class]</span>
  368. </code>
  369. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  370. Tags
  371. <a href="classes/chillerlan-QRCode-Output-QROutputInterface.html#constant_MODES#tags" class="headerlink"><i class="fas fa-link"></i></a>
  372. </h5>
  373. <dl class="phpdocumentor-tag-list">
  374. <dt class="phpdocumentor-tag-list__entry">
  375. <span class="phpdocumentor-tag__name">see</span>
  376. </dt>
  377. <dd class="phpdocumentor-tag-list__definition">
  378. <span class="phpdocumentor-tag-link"><a href="https://github.com/chillerlan/php-qrcode/issues/223">https://github.com/chillerlan/php-qrcode/issues/223</a></span>
  379. </dd>
  380. </dl>
  381. </article>
  382. </section>
  383. <section class="phpdocumentor-methods">
  384. <h3 class="phpdocumentor-elements__header" id="methods">
  385. Methods
  386. <a href="classes/chillerlan-QRCode-Output-QROutputInterface.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  387. </h3>
  388. <article
  389. class="phpdocumentor-element
  390. -method
  391. -public
  392. "
  393. >
  394. <h4 class="phpdocumentor-element__name" id="method_dump">
  395. dump()
  396. <a href="classes/chillerlan-QRCode-Output-QROutputInterface.html#method_dump" class="headerlink"><i class="fas fa-link"></i></a>
  397. </h4>
  398. <aside class="phpdocumentor-element-found-in">
  399. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QROutputInterface.php"><a href="files/src-output-qroutputinterface.html"><abbr title="src/Output/QROutputInterface.php">QROutputInterface.php</abbr></a></abbr>
  400. :
  401. <span class="phpdocumentor-element-found-in__line">131</span>
  402. </aside>
  403. <p class="phpdocumentor-summary">Generates the output, optionally dumps it to a file, and returns it</p>
  404. <code class="phpdocumentor-code phpdocumentor-signature ">
  405. <span class="phpdocumentor-signature__visibility">public</span>
  406. <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">mixed</span></code>
  407. <div class="phpdocumentor-label-line">
  408. </div>
  409. <section class="phpdocumentor-description"><p>please note that the value of QROptions::$cachefile is already evaluated at this point.
  410. if the output module is invoked manually, it has no effect at all.
  411. you need to supply the $file parameter here in that case (or handle the option value in your custom output module).</p>
  412. </section>
  413. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  414. <dl class="phpdocumentor-argument-list">
  415. <dt class="phpdocumentor-argument-list__entry">
  416. <span class="phpdocumentor-signature__argument__name">$file</span>
  417. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  418. = <span class="phpdocumentor-signature__argument__default-value">null</span> </dt>
  419. <dd class="phpdocumentor-argument-list__definition">
  420. </dd>
  421. </dl>
  422. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  423. Tags
  424. <a href="classes/chillerlan-QRCode-Output-QROutputInterface.html#method_dump#tags" class="headerlink"><i class="fas fa-link"></i></a>
  425. </h5>
  426. <dl class="phpdocumentor-tag-list">
  427. <dt class="phpdocumentor-tag-list__entry">
  428. <span class="phpdocumentor-tag__name">see</span>
  429. </dt>
  430. <dd class="phpdocumentor-tag-list__definition">
  431. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-QRCode.html#method_renderMatrix"><abbr title="\chillerlan\QRCode\QRCode::renderMatrix()">QRCode::renderMatrix()</abbr></a></span>
  432. </dd>
  433. </dl>
  434. </article>
  435. <article
  436. class="phpdocumentor-element
  437. -method
  438. -public
  439. -static "
  440. >
  441. <h4 class="phpdocumentor-element__name" id="method_moduleValueIsValid">
  442. moduleValueIsValid()
  443. <a href="classes/chillerlan-QRCode-Output-QROutputInterface.html#method_moduleValueIsValid" class="headerlink"><i class="fas fa-link"></i></a>
  444. </h4>
  445. <aside class="phpdocumentor-element-found-in">
  446. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QROutputInterface.php"><a href="files/src-output-qroutputinterface.html"><abbr title="src/Output/QROutputInterface.php">QROutputInterface.php</abbr></a></abbr>
  447. :
  448. <span class="phpdocumentor-element-found-in__line">120</span>
  449. </aside>
  450. <p class="phpdocumentor-summary">Determines whether the given value is valid</p>
  451. <code class="phpdocumentor-code phpdocumentor-signature ">
  452. <span class="phpdocumentor-signature__visibility">public</span>
  453. <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>
  454. <div class="phpdocumentor-label-line">
  455. </div>
  456. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  457. <dl class="phpdocumentor-argument-list">
  458. <dt class="phpdocumentor-argument-list__entry">
  459. <span class="phpdocumentor-signature__argument__name">$value</span>
  460. : <span class="phpdocumentor-signature__argument__return-type">mixed</span>
  461. </dt>
  462. <dd class="phpdocumentor-argument-list__definition">
  463. </dd>
  464. </dl>
  465. <section>
  466. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  467. <span class="phpdocumentor-signature__response_type">bool</span>
  468. </section>
  469. </article>
  470. </section>
  471. <div class="phpdocumentor-modal" id="source-view">
  472. <div class="phpdocumentor-modal-bg" data-exit-button></div>
  473. <div class="phpdocumentor-modal-container">
  474. <div class="phpdocumentor-modal-content">
  475. <pre style="max-height: 500px; overflow-y: scroll" data-src="files/src/Output/QROutputInterface.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
  476. </div>
  477. <button data-exit-button class="phpdocumentor-modal__close">&times;</button>
  478. </div>
  479. </div>
  480. <script type="text/javascript">
  481. (function () {
  482. function loadExternalCodeSnippet(el, url, line) {
  483. Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
  484. const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
  485. const language = 'php';
  486. const code = document.createElement('code');
  487. code.className = 'language-' + language;
  488. pre.textContent = '';
  489. pre.setAttribute('data-line', line)
  490. code.textContent = 'Loading…';
  491. pre.appendChild(code);
  492. var xhr = new XMLHttpRequest();
  493. xhr.open('GET', src, true);
  494. xhr.onreadystatechange = function () {
  495. if (xhr.readyState !== 4) {
  496. return;
  497. }
  498. if (xhr.status < 400 && xhr.responseText) {
  499. code.textContent = xhr.responseText;
  500. Prism.highlightElement(code);
  501. return;
  502. }
  503. if (xhr.status === 404) {
  504. code.textContent = '✖ Error: File could not be found';
  505. return;
  506. }
  507. if (xhr.status >= 400) {
  508. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  509. return;
  510. }
  511. code.textContent = '✖ Error: An unknown error occurred';
  512. };
  513. xhr.send(null);
  514. });
  515. }
  516. const modalButtons = document.querySelectorAll("[data-modal]");
  517. const openedAsLocalFile = window.location.protocol === 'file:';
  518. if (modalButtons.length > 0 && openedAsLocalFile) {
  519. console.warn(
  520. 'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
  521. 'browsers block XHR requests when a page is opened this way'
  522. );
  523. }
  524. modalButtons.forEach(function (trigger) {
  525. if (openedAsLocalFile) {
  526. trigger.setAttribute("hidden", "hidden");
  527. }
  528. trigger.addEventListener("click", function (event) {
  529. event.preventDefault();
  530. const modal = document.getElementById(trigger.dataset.modal);
  531. if (!modal) {
  532. console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
  533. return;
  534. }
  535. modal.classList.add("phpdocumentor-modal__open");
  536. loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
  537. const exits = modal.querySelectorAll("[data-exit-button]");
  538. exits.forEach(function (exit) {
  539. exit.addEventListener("click", function (event) {
  540. event.preventDefault();
  541. modal.classList.remove("phpdocumentor-modal__open");
  542. });
  543. });
  544. });
  545. });
  546. })();
  547. </script>
  548. </article>
  549. </section>
  550. <section class="phpdocumentor-on-this-page__sidebar">
  551. <section class="phpdocumentor-on-this-page__content">
  552. <strong class="phpdocumentor-on-this-page__title">On this page</strong>
  553. <ul class="phpdocumentor-list -clean">
  554. <li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
  555. <li>
  556. <ul class="phpdocumentor-list -clean">
  557. <li><a href="classes/chillerlan-QRCode-Output-QROutputInterface.html#toc-constants">Constants</a></li>
  558. <li><a href="classes/chillerlan-QRCode-Output-QROutputInterface.html#toc-methods">Methods</a></li>
  559. </ul>
  560. </li>
  561. <li class="phpdocumentor-on-this-page-section__title">Methods</li>
  562. <li>
  563. <ul class="phpdocumentor-list -clean">
  564. <li><a href="classes/chillerlan-QRCode-Output-QROutputInterface.html#method_dump">dump()</a></li>
  565. <li><a href="classes/chillerlan-QRCode-Output-QROutputInterface.html#method_moduleValueIsValid">moduleValueIsValid()</a></li>
  566. </ul>
  567. </li>
  568. <li class="phpdocumentor-on-this-page-section__title">Constants</li>
  569. <li>
  570. <ul class="phpdocumentor-list -clean">
  571. <li><a href="classes/chillerlan-QRCode-Output-QROutputInterface.html#constant_DEFAULT_MODULE_VALUES">DEFAULT_MODULE_VALUES</a></li>
  572. <li><a href="classes/chillerlan-QRCode-Output-QROutputInterface.html#constant_LAYERNAMES">LAYERNAMES</a></li>
  573. <li><a href="classes/chillerlan-QRCode-Output-QROutputInterface.html#constant_MIME_TYPE">MIME_TYPE</a></li>
  574. <li><a href="classes/chillerlan-QRCode-Output-QROutputInterface.html#constant_MODES">MODES</a></li>
  575. </ul>
  576. </li>
  577. </ul>
  578. </section>
  579. </section>
  580. </div>
  581. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  582. <section class="phpdocumentor-search-results__dialog">
  583. <header class="phpdocumentor-search-results__header">
  584. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  585. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  586. </header>
  587. <section class="phpdocumentor-search-results__body">
  588. <ul class="phpdocumentor-search-results__entries"></ul>
  589. </section>
  590. </section>
  591. </section>
  592. </div>
  593. <a href="classes/chillerlan-QRCode-Output-QROutputInterface.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  594. </main>
  595. <script>
  596. cssVars({});
  597. </script>
  598. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  599. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  600. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  601. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  602. </body>
  603. </html>