chillerlan-QRCode-Output-QRMarkup.html 66 KB

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