chillerlan-QRCode-Output-QROutputAbstract.html 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936
  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"><a href="namespaces/chillerlan.html">chillerlan</a></h4>
  56. <ul class="phpdocumentor-list">
  57. <li>
  58. <a href="namespaces/chillerlan-qrcode.html">QRCode</a>
  59. </li>
  60. <li>
  61. <a href="namespaces/chillerlan-qrcodetest.html">QRCodeTest</a>
  62. </li>
  63. </ul>
  64. </section>
  65. <section class="phpdocumentor-sidebar__category">
  66. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  67. <h4 class="phpdocumentor-sidebar__root-namespace"><a href="packages/Application.html">Application</a></h4>
  68. </section>
  69. <section class="phpdocumentor-sidebar__category">
  70. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  71. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  72. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  73. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  74. </section>
  75. <section class="phpdocumentor-sidebar__category">
  76. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  77. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  78. </section>
  79. </aside>
  80. <div class="phpdocumentor-column -eight phpdocumentor-content">
  81. <ul class="phpdocumentor-breadcrumbs">
  82. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  83. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode.html">QRCode</a></li>
  84. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode-output.html">Output</a></li>
  85. </ul>
  86. <article class="phpdocumentor-element -class">
  87. <h2 class="phpdocumentor-content__title">
  88. QROutputAbstract
  89. <div class="phpdocumentor-element__package">
  90. in package
  91. <ul class="phpdocumentor-breadcrumbs">
  92. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  93. </ul>
  94. </div>
  95. <span class="phpdocumentor-element__implements">
  96. implements
  97. <a href="classes/chillerlan-QRCode-Output-QROutputInterface.html"><abbr title="\chillerlan\QRCode\Output\QROutputInterface">QROutputInterface</abbr></a> </span>
  98. </h2>
  99. <aside class="phpdocumentor-element-found-in">
  100. <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>
  101. :
  102. <span class="phpdocumentor-element-found-in__line">20</span>
  103. </aside>
  104. <p class="phpdocumentor-summary">common output abstract</p>
  105. <h3 id="interfaces_class_traits">
  106. Interfaces, Classes and Traits
  107. <a href="#interfaces_class_traits" class="headerlink"><i class="fas fa-link"></i></a>
  108. </h3>
  109. <dl class="phpdocumentor-table-of-contents">
  110. <dt class="phpdocumentor-table-of-contents__entry -interface"><a href="classes/chillerlan-QRCode-Output-QROutputInterface.html"><abbr title="\chillerlan\QRCode\Output\QROutputInterface">QROutputInterface</abbr></a></dt>
  111. <dd>Converts the data matrix into readable output</dd>
  112. </dl>
  113. <h3 id="toc">
  114. Table of Contents
  115. <a href="#toc" class="headerlink"><i class="fas fa-link"></i></a>
  116. </h3>
  117. <dl class="phpdocumentor-table-of-contents">
  118. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  119. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_defaultMode">$defaultMode</a>
  120. <span>
  121. &nbsp;: string </span>
  122. </dt>
  123. <dd>the default output mode of the current output module</dd>
  124. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  125. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_length">$length</a>
  126. <span>
  127. &nbsp;: int </span>
  128. </dt>
  129. <dd>the side length of the QR image (modules * scale)</dd>
  130. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  131. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_matrix">$matrix</a>
  132. <span>
  133. &nbsp;: <a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a> </span>
  134. </dt>
  135. <dd>the (filled) data matrix object</dd>
  136. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  137. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_moduleCount">$moduleCount</a>
  138. <span>
  139. &nbsp;: int </span>
  140. </dt>
  141. <dd>the current size of the QR matrix</dd>
  142. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  143. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_moduleValues">$moduleValues</a>
  144. <span>
  145. &nbsp;: array&lt;string|int, mixed&gt; </span>
  146. </dt>
  147. <dd>an (optional) array of color values for the several QR matrix parts</dd>
  148. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  149. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_options">$options</a>
  150. <span>
  151. &nbsp;: <abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr> </span>
  152. </dt>
  153. <dd></dd>
  154. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  155. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_outputMode">$outputMode</a>
  156. <span>
  157. &nbsp;: string </span>
  158. </dt>
  159. <dd>the current output mode</dd>
  160. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  161. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_scale">$scale</a>
  162. <span>
  163. &nbsp;: int </span>
  164. </dt>
  165. <dd>the current scaling for a QR pixel</dd>
  166. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  167. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method___construct">__construct()</a>
  168. <span>
  169. &nbsp;: mixed </span>
  170. </dt>
  171. <dd>QROutputAbstract constructor.</dd>
  172. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  173. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_dump">dump()</a>
  174. <span>
  175. &nbsp;: mixed </span>
  176. </dt>
  177. <dd>generates the output, optionally dumps it to a file, and returns it</dd>
  178. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  179. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_base64encode">base64encode()</a>
  180. <span>
  181. &nbsp;: string </span>
  182. </dt>
  183. <dd>Returns a base64 data URI for the given string and mime type</dd>
  184. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  185. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_saveToFile">saveToFile()</a>
  186. <span>
  187. &nbsp;: bool </span>
  188. </dt>
  189. <dd>saves the qr data to a file</dd>
  190. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  191. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_setModuleValues">setModuleValues()</a>
  192. <span>
  193. &nbsp;: void </span>
  194. </dt>
  195. <dd>Sets the initial module values (clean-up &amp; defaults)</dd>
  196. </dl>
  197. <section class="phpdocumentor-properties">
  198. <h3 class="phpdocumentor-elements__header" id="properties">
  199. Properties
  200. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  201. </h3>
  202. <article
  203. class="
  204. phpdocumentor-element
  205. -property
  206. -protected
  207. "
  208. >
  209. <h4 class="phpdocumentor-element__name" id="property_defaultMode">
  210. $defaultMode
  211. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_defaultMode" class="headerlink"><i class="fas fa-link"></i></a>
  212. <span class="phpdocumentor-element__modifiers">
  213. </span>
  214. </h4>
  215. <aside class="phpdocumentor-element-found-in">
  216. <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>
  217. :
  218. <span class="phpdocumentor-element-found-in__line">39</span>
  219. </aside>
  220. <p class="phpdocumentor-summary">the default output mode of the current output module</p>
  221. <code class="phpdocumentor-code phpdocumentor-signature ">
  222. <span class="phpdocumentor-signature__visibility">protected</span>
  223. <span class="phpdocumentor-signature__type">string</span>
  224. <span class="phpdocumentor-signature__name">$defaultMode</span>
  225. </code>
  226. <section class="phpdocumentor-description"></section>
  227. </article>
  228. <article
  229. class="
  230. phpdocumentor-element
  231. -property
  232. -protected
  233. "
  234. >
  235. <h4 class="phpdocumentor-element__name" id="property_length">
  236. $length
  237. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_length" class="headerlink"><i class="fas fa-link"></i></a>
  238. <span class="phpdocumentor-element__modifiers">
  239. </span>
  240. </h4>
  241. <aside class="phpdocumentor-element-found-in">
  242. <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>
  243. :
  244. <span class="phpdocumentor-element-found-in__line">51</span>
  245. </aside>
  246. <p class="phpdocumentor-summary">the side length of the QR image (modules * scale)</p>
  247. <code class="phpdocumentor-code phpdocumentor-signature ">
  248. <span class="phpdocumentor-signature__visibility">protected</span>
  249. <span class="phpdocumentor-signature__type">int</span>
  250. <span class="phpdocumentor-signature__name">$length</span>
  251. </code>
  252. <section class="phpdocumentor-description"></section>
  253. </article>
  254. <article
  255. class="
  256. phpdocumentor-element
  257. -property
  258. -protected
  259. "
  260. >
  261. <h4 class="phpdocumentor-element__name" id="property_matrix">
  262. $matrix
  263. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_matrix" class="headerlink"><i class="fas fa-link"></i></a>
  264. <span class="phpdocumentor-element__modifiers">
  265. </span>
  266. </h4>
  267. <aside class="phpdocumentor-element-found-in">
  268. <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>
  269. :
  270. <span class="phpdocumentor-element-found-in__line">61</span>
  271. </aside>
  272. <p class="phpdocumentor-summary">the (filled) data matrix object</p>
  273. <code class="phpdocumentor-code phpdocumentor-signature ">
  274. <span class="phpdocumentor-signature__visibility">protected</span>
  275. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a></span>
  276. <span class="phpdocumentor-signature__name">$matrix</span>
  277. </code>
  278. <section class="phpdocumentor-description"></section>
  279. </article>
  280. <article
  281. class="
  282. phpdocumentor-element
  283. -property
  284. -protected
  285. "
  286. >
  287. <h4 class="phpdocumentor-element__name" id="property_moduleCount">
  288. $moduleCount
  289. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_moduleCount" class="headerlink"><i class="fas fa-link"></i></a>
  290. <span class="phpdocumentor-element__modifiers">
  291. </span>
  292. </h4>
  293. <aside class="phpdocumentor-element-found-in">
  294. <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>
  295. :
  296. <span class="phpdocumentor-element-found-in__line">27</span>
  297. </aside>
  298. <p class="phpdocumentor-summary">the current size of the QR matrix</p>
  299. <code class="phpdocumentor-code phpdocumentor-signature ">
  300. <span class="phpdocumentor-signature__visibility">protected</span>
  301. <span class="phpdocumentor-signature__type">int</span>
  302. <span class="phpdocumentor-signature__name">$moduleCount</span>
  303. </code>
  304. <section class="phpdocumentor-description"></section>
  305. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  306. Tags
  307. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  308. </h5>
  309. <dl class="phpdocumentor-tag-list">
  310. <dt class="phpdocumentor-tag-list__entry">
  311. <span class="phpdocumentor-tag__name">see</span>
  312. </dt>
  313. <dd class="phpdocumentor-tag-list__definition">
  314. <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>
  315. </dd>
  316. </dl>
  317. </article>
  318. <article
  319. class="
  320. phpdocumentor-element
  321. -property
  322. -protected
  323. "
  324. >
  325. <h4 class="phpdocumentor-element__name" id="property_moduleValues">
  326. $moduleValues
  327. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_moduleValues" class="headerlink"><i class="fas fa-link"></i></a>
  328. <span class="phpdocumentor-element__modifiers">
  329. </span>
  330. </h4>
  331. <aside class="phpdocumentor-element-found-in">
  332. <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>
  333. :
  334. <span class="phpdocumentor-element-found-in__line">56</span>
  335. </aside>
  336. <p class="phpdocumentor-summary">an (optional) array of color values for the several QR matrix parts</p>
  337. <code class="phpdocumentor-code phpdocumentor-signature ">
  338. <span class="phpdocumentor-signature__visibility">protected</span>
  339. <span class="phpdocumentor-signature__type">array&lt;string|int, mixed&gt;</span>
  340. <span class="phpdocumentor-signature__name">$moduleValues</span>
  341. </code>
  342. <section class="phpdocumentor-description"></section>
  343. </article>
  344. <article
  345. class="
  346. phpdocumentor-element
  347. -property
  348. -protected
  349. "
  350. >
  351. <h4 class="phpdocumentor-element__name" id="property_options">
  352. $options
  353. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_options" class="headerlink"><i class="fas fa-link"></i></a>
  354. <span class="phpdocumentor-element__modifiers">
  355. </span>
  356. </h4>
  357. <aside class="phpdocumentor-element-found-in">
  358. <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>
  359. :
  360. <span class="phpdocumentor-element-found-in__line">66</span>
  361. </aside>
  362. <code class="phpdocumentor-code phpdocumentor-signature ">
  363. <span class="phpdocumentor-signature__visibility">protected</span>
  364. <span class="phpdocumentor-signature__type"><abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr></span>
  365. <span class="phpdocumentor-signature__name">$options</span>
  366. </code>
  367. </article>
  368. <article
  369. class="
  370. phpdocumentor-element
  371. -property
  372. -protected
  373. "
  374. >
  375. <h4 class="phpdocumentor-element__name" id="property_outputMode">
  376. $outputMode
  377. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_outputMode" class="headerlink"><i class="fas fa-link"></i></a>
  378. <span class="phpdocumentor-element__modifiers">
  379. </span>
  380. </h4>
  381. <aside class="phpdocumentor-element-found-in">
  382. <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>
  383. :
  384. <span class="phpdocumentor-element-found-in__line">34</span>
  385. </aside>
  386. <p class="phpdocumentor-summary">the current output mode</p>
  387. <code class="phpdocumentor-code phpdocumentor-signature ">
  388. <span class="phpdocumentor-signature__visibility">protected</span>
  389. <span class="phpdocumentor-signature__type">string</span>
  390. <span class="phpdocumentor-signature__name">$outputMode</span>
  391. </code>
  392. <section class="phpdocumentor-description"></section>
  393. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  394. Tags
  395. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  396. </h5>
  397. <dl class="phpdocumentor-tag-list">
  398. <dt class="phpdocumentor-tag-list__entry">
  399. <span class="phpdocumentor-tag__name">see</span>
  400. </dt>
  401. <dd class="phpdocumentor-tag-list__definition">
  402. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\QROptions::$outputType">QROptions::$outputType</abbr></span>
  403. </dd>
  404. </dl>
  405. </article>
  406. <article
  407. class="
  408. phpdocumentor-element
  409. -property
  410. -protected
  411. "
  412. >
  413. <h4 class="phpdocumentor-element__name" id="property_scale">
  414. $scale
  415. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_scale" class="headerlink"><i class="fas fa-link"></i></a>
  416. <span class="phpdocumentor-element__modifiers">
  417. </span>
  418. </h4>
  419. <aside class="phpdocumentor-element-found-in">
  420. <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>
  421. :
  422. <span class="phpdocumentor-element-found-in__line">46</span>
  423. </aside>
  424. <p class="phpdocumentor-summary">the current scaling for a QR pixel</p>
  425. <code class="phpdocumentor-code phpdocumentor-signature ">
  426. <span class="phpdocumentor-signature__visibility">protected</span>
  427. <span class="phpdocumentor-signature__type">int</span>
  428. <span class="phpdocumentor-signature__name">$scale</span>
  429. </code>
  430. <section class="phpdocumentor-description"></section>
  431. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  432. Tags
  433. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  434. </h5>
  435. <dl class="phpdocumentor-tag-list">
  436. <dt class="phpdocumentor-tag-list__entry">
  437. <span class="phpdocumentor-tag__name">see</span>
  438. </dt>
  439. <dd class="phpdocumentor-tag-list__definition">
  440. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\QROptions::$scale">QROptions::$scale</abbr></span>
  441. </dd>
  442. </dl>
  443. </article>
  444. </section>
  445. <section class="phpdocumentor-methods">
  446. <h3 class="phpdocumentor-elements__header" id="methods">
  447. Methods
  448. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  449. </h3>
  450. <article
  451. class="phpdocumentor-element
  452. -method
  453. -public
  454. "
  455. >
  456. <h4 class="phpdocumentor-element__name" id="method___construct">
  457. __construct()
  458. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method___construct" class="headerlink"><i class="fas fa-link"></i></a>
  459. </h4>
  460. <aside class="phpdocumentor-element-found-in">
  461. <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>
  462. :
  463. <span class="phpdocumentor-element-found-in__line">71</span>
  464. </aside>
  465. <p class="phpdocumentor-summary">QROutputAbstract constructor.</p>
  466. <code class="phpdocumentor-code phpdocumentor-signature ">
  467. <span class="phpdocumentor-signature__visibility">public</span>
  468. <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>
  469. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  470. <dl class="phpdocumentor-argument-list">
  471. <dt class="phpdocumentor-argument-list__entry">
  472. <span class="phpdocumentor-signature__argument__name">$options</span>
  473. : <span class="phpdocumentor-signature__argument__return-type"><abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr></span>
  474. </dt>
  475. <dd class="phpdocumentor-argument-list__definition">
  476. <section class="phpdocumentor-description"></section>
  477. </dd>
  478. <dt class="phpdocumentor-argument-list__entry">
  479. <span class="phpdocumentor-signature__argument__name">$matrix</span>
  480. : <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>
  481. </dt>
  482. <dd class="phpdocumentor-argument-list__definition">
  483. <section class="phpdocumentor-description"></section>
  484. </dd>
  485. </dl>
  486. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  487. <span class="phpdocumentor-signature__response_type">mixed</span>
  488. &mdash;
  489. </article>
  490. <article
  491. class="phpdocumentor-element
  492. -method
  493. -public
  494. "
  495. >
  496. <h4 class="phpdocumentor-element__name" id="method_dump">
  497. dump()
  498. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_dump" class="headerlink"><i class="fas fa-link"></i></a>
  499. </h4>
  500. <aside class="phpdocumentor-element-found-in">
  501. <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>
  502. :
  503. <span class="phpdocumentor-element-found-in__line">119</span>
  504. </aside>
  505. <p class="phpdocumentor-summary">generates the output, optionally dumps it to a file, and returns it</p>
  506. <code class="phpdocumentor-code phpdocumentor-signature ">
  507. <span class="phpdocumentor-signature__visibility">public</span>
  508. <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>
  509. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  510. <dl class="phpdocumentor-argument-list">
  511. <dt class="phpdocumentor-argument-list__entry">
  512. <span class="phpdocumentor-signature__argument__name">$file</span>
  513. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  514. = <span class="phpdocumentor-signature__argument__default-value">null</span> </dt>
  515. <dd class="phpdocumentor-argument-list__definition">
  516. <section class="phpdocumentor-description"></section>
  517. </dd>
  518. </dl>
  519. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  520. Tags
  521. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  522. </h5>
  523. <dl class="phpdocumentor-tag-list">
  524. <dt class="phpdocumentor-tag-list__entry">
  525. <span class="phpdocumentor-tag__name">inheritDoc</span>
  526. </dt>
  527. <dd class="phpdocumentor-tag-list__definition">
  528. </dd>
  529. </dl>
  530. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  531. <span class="phpdocumentor-signature__response_type">mixed</span>
  532. &mdash;
  533. </article>
  534. <article
  535. class="phpdocumentor-element
  536. -method
  537. -protected
  538. "
  539. >
  540. <h4 class="phpdocumentor-element__name" id="method_base64encode">
  541. base64encode()
  542. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_base64encode" class="headerlink"><i class="fas fa-link"></i></a>
  543. </h4>
  544. <aside class="phpdocumentor-element-found-in">
  545. <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>
  546. :
  547. <span class="phpdocumentor-element-found-in__line">95</span>
  548. </aside>
  549. <p class="phpdocumentor-summary">Returns a base64 data URI for the given string and mime type</p>
  550. <code class="phpdocumentor-code phpdocumentor-signature ">
  551. <span class="phpdocumentor-signature__visibility">protected</span>
  552. <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>
  553. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  554. <dl class="phpdocumentor-argument-list">
  555. <dt class="phpdocumentor-argument-list__entry">
  556. <span class="phpdocumentor-signature__argument__name">$data</span>
  557. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  558. </dt>
  559. <dd class="phpdocumentor-argument-list__definition">
  560. <section class="phpdocumentor-description"></section>
  561. </dd>
  562. <dt class="phpdocumentor-argument-list__entry">
  563. <span class="phpdocumentor-signature__argument__name">$mime</span>
  564. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  565. </dt>
  566. <dd class="phpdocumentor-argument-list__definition">
  567. <section class="phpdocumentor-description"></section>
  568. </dd>
  569. </dl>
  570. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  571. <span class="phpdocumentor-signature__response_type">string</span>
  572. &mdash;
  573. </article>
  574. <article
  575. class="phpdocumentor-element
  576. -method
  577. -protected
  578. "
  579. >
  580. <h4 class="phpdocumentor-element__name" id="method_saveToFile">
  581. saveToFile()
  582. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_saveToFile" class="headerlink"><i class="fas fa-link"></i></a>
  583. </h4>
  584. <aside class="phpdocumentor-element-found-in">
  585. <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>
  586. :
  587. <span class="phpdocumentor-element-found-in__line">107</span>
  588. </aside>
  589. <p class="phpdocumentor-summary">saves the qr data to a file</p>
  590. <code class="phpdocumentor-code phpdocumentor-signature ">
  591. <span class="phpdocumentor-signature__visibility">protected</span>
  592. <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">bool</span></code>
  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">$data</span>
  597. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  598. </dt>
  599. <dd class="phpdocumentor-argument-list__definition">
  600. <section class="phpdocumentor-description"></section>
  601. </dd>
  602. <dt class="phpdocumentor-argument-list__entry">
  603. <span class="phpdocumentor-signature__argument__name">$file</span>
  604. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  605. </dt>
  606. <dd class="phpdocumentor-argument-list__definition">
  607. <section class="phpdocumentor-description"></section>
  608. </dd>
  609. </dl>
  610. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  611. Tags
  612. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  613. </h5>
  614. <dl class="phpdocumentor-tag-list">
  615. <dt class="phpdocumentor-tag-list__entry">
  616. <span class="phpdocumentor-tag__name">see</span>
  617. </dt>
  618. <dd class="phpdocumentor-tag-list__definition">
  619. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\Output\file_put_contents()">file_put_contents()</abbr></span>
  620. </dd>
  621. <dt class="phpdocumentor-tag-list__entry">
  622. <span class="phpdocumentor-tag__name">see</span>
  623. </dt>
  624. <dd class="phpdocumentor-tag-list__definition">
  625. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\QROptions::cachefile">QROptions::cachefile</abbr></span>
  626. </dd>
  627. <dt class="phpdocumentor-tag-list__entry">
  628. <span class="phpdocumentor-tag__name">throws</span>
  629. </dt>
  630. <dd class="phpdocumentor-tag-list__definition">
  631. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Output-QRCodeOutputException.html"><abbr title="\chillerlan\QRCode\Output\QRCodeOutputException">QRCodeOutputException</abbr></a></span>
  632. </dd>
  633. </dl>
  634. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  635. <span class="phpdocumentor-signature__response_type">bool</span>
  636. &mdash;
  637. </article>
  638. <article
  639. class="phpdocumentor-element
  640. -method
  641. -protected
  642. -abstract "
  643. >
  644. <h4 class="phpdocumentor-element__name" id="method_setModuleValues">
  645. setModuleValues()
  646. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_setModuleValues" class="headerlink"><i class="fas fa-link"></i></a>
  647. </h4>
  648. <aside class="phpdocumentor-element-found-in">
  649. <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>
  650. :
  651. <span class="phpdocumentor-element-found-in__line">90</span>
  652. </aside>
  653. <p class="phpdocumentor-summary">Sets the initial module values (clean-up &amp; defaults)</p>
  654. <code class="phpdocumentor-code phpdocumentor-signature ">
  655. <span class="phpdocumentor-signature__visibility">protected</span>
  656. <span class="phpdocumentor-signature__abstract">abstract</span> <span class="phpdocumentor-signature__name">setModuleValues</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  657. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  658. <span class="phpdocumentor-signature__response_type">void</span>
  659. &mdash;
  660. </article>
  661. </section>
  662. <script type="text/javascript">
  663. function loadExternalCodeSnippets(line) {
  664. Array.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach((pre) => {
  665. var src = pre.getAttribute('data-src').replace( /\\/g, '/');
  666. var extension = (src.match(/\.(\w+)$/) || [, ''])[1];
  667. var language = 'php';
  668. var code = document.createElement('code');
  669. code.className = 'language-' + language;
  670. pre.textContent = '';
  671. pre.setAttribute('data-line', line)
  672. code.textContent = 'Loading…';
  673. pre.appendChild(code);
  674. var xhr = new XMLHttpRequest();
  675. xhr.open('GET', src, true);
  676. xhr.onreadystatechange = function () {
  677. if (xhr.readyState == 4) {
  678. if (xhr.status < 400 && xhr.responseText) {
  679. code.textContent = xhr.responseText;
  680. Prism.highlightElement(code);
  681. }
  682. else if (xhr.status >= 400) {
  683. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  684. }
  685. else {
  686. code.textContent = '✖ Error: File does not exist, is empty or trying to view from localhost';
  687. }
  688. }
  689. };
  690. xhr.send(null);
  691. });
  692. }
  693. var modals = document.querySelectorAll("[data-modal]");
  694. modals.forEach(function (trigger) {
  695. trigger.addEventListener("click", function (event) {
  696. //event.preventDefault();
  697. const modal = document.getElementById(trigger.dataset.modal);
  698. modal.classList.add("phpdocumentor-modal__open");
  699. loadExternalCodeSnippets(trigger.dataset.line)
  700. const exits = modal.querySelectorAll("[data-exit-button]");
  701. exits.forEach(function (exit) {
  702. exit.addEventListener("click", function (event) {
  703. event.preventDefault();
  704. modal.classList.remove("phpdocumentor-modal__open");
  705. });
  706. });
  707. });
  708. });
  709. </script>
  710. </article>
  711. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  712. <section class="phpdocumentor-search-results__dialog">
  713. <header class="phpdocumentor-search-results__header">
  714. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  715. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  716. </header>
  717. <section class="phpdocumentor-search-results__body">
  718. <ul class="phpdocumentor-search-results__entries"></ul>
  719. </section>
  720. </section>
  721. </section>
  722. </div>
  723. </div>
  724. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  725. </main>
  726. <script>
  727. cssVars({});
  728. </script>
  729. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  730. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  731. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  732. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  733. </body>
  734. </html>