chillerlan-QRCode-Output-QRMarkupHTML.html 66 KB

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