chillerlan-QRCode-Output-QRStringText.html 104 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Documentation</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <base href="../">
  8. <link rel="icon" href="images/favicon.ico"/>
  9. <link rel="stylesheet" href="css/normalize.css">
  10. <link rel="stylesheet" href="css/base.css">
  11. <link rel="preconnect" href="https://fonts.gstatic.com">
  12. <link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;600;700&display=swap" rel="stylesheet">
  13. <link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
  14. <link rel="stylesheet" href="css/template.css">
  15. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
  16. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
  17. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
  18. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
  19. <script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
  20. <script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
  21. <script src="js/template.js"></script>
  22. <script src="js/search.js"></script>
  23. <script defer src="js/searchIndex.js"></script>
  24. </head>
  25. <body id="top">
  26. <header class="phpdocumentor-header phpdocumentor-section">
  27. <h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
  28. <input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
  29. <label class="phpdocumentor-header__menu-icon" for="menu-button">
  30. <i class="fas fa-bars"></i>
  31. </label>
  32. <section data-search-form class="phpdocumentor-search">
  33. <label>
  34. <span class="visually-hidden">Search for</span>
  35. <svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  36. <circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
  37. <line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
  38. </svg>
  39. <input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
  40. </label>
  41. </section>
  42. <nav class="phpdocumentor-topnav">
  43. <ul class="phpdocumentor-topnav__menu">
  44. <li class="phpdocumentor-topnav__menu-item -menu">
  45. <a href="https://php-qrcode.readthedocs.io">
  46. <span>
  47. User Manual
  48. </span>
  49. </a>
  50. </li>
  51. <li class="phpdocumentor-topnav__menu-item -social">
  52. <a href="https://github.com/chillerlan/php-qrcode">
  53. <span>
  54. <i class="fab fa-github"></i>
  55. </span>
  56. </a>
  57. </li>
  58. <li class="phpdocumentor-topnav__menu-item -social">
  59. <a href="https://github.com/chillerlan/php-qrcode/discussions">
  60. <span>
  61. <i class="fas fa-envelope-open-text"></i>
  62. </span>
  63. </a>
  64. </li>
  65. </ul>
  66. </nav>
  67. </header>
  68. <main class="phpdocumentor">
  69. <div class="phpdocumentor-section">
  70. <input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
  71. <label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
  72. Menu
  73. </label>
  74. <aside class="phpdocumentor-column -three phpdocumentor-sidebar">
  75. <section class="phpdocumentor-sidebar__category -namespaces">
  76. <h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
  77. <h4 class="phpdocumentor-sidebar__root-namespace">
  78. <a href="namespaces/chillerlan.html" class="">chillerlan</a>
  79. </h4>
  80. <ul class="phpdocumentor-list">
  81. <li>
  82. <a href="namespaces/chillerlan-qrcode.html" class="">QRCode</a>
  83. </li>
  84. <li>
  85. <a href="namespaces/chillerlan-qrcodetest.html" class="">QRCodeTest</a>
  86. </li>
  87. </ul>
  88. </section>
  89. <section class="phpdocumentor-sidebar__category -packages">
  90. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  91. <h4 class="phpdocumentor-sidebar__root-namespace">
  92. <a href="packages/Application.html" class="">Application</a>
  93. </h4>
  94. </section>
  95. <section class="phpdocumentor-sidebar__category -reports">
  96. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  97. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  98. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  99. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  100. </section>
  101. <section class="phpdocumentor-sidebar__category -indices">
  102. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  103. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  104. </section>
  105. </aside>
  106. <div class="phpdocumentor-column -nine phpdocumentor-content">
  107. <section>
  108. <ul class="phpdocumentor-breadcrumbs">
  109. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  110. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode.html">QRCode</a></li>
  111. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode-output.html">Output</a></li>
  112. </ul>
  113. <article class="phpdocumentor-element -class">
  114. <h2 class="phpdocumentor-content__title">
  115. QRStringText
  116. <span class="phpdocumentor-element__extends">
  117. extends <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html"><abbr title="\chillerlan\QRCode\Output\QROutputAbstract">QROutputAbstract</abbr></a>
  118. </span>
  119. <div class="phpdocumentor-element__package">
  120. in package
  121. <ul class="phpdocumentor-breadcrumbs">
  122. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  123. </ul>
  124. </div>
  125. </h2>
  126. <div class="phpdocumentor-label-line">
  127. </div>
  128. <aside class="phpdocumentor-element-found-in">
  129. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QRStringText.php"><a href="files/src-output-qrstringtext.html"><abbr title="src/Output/QRStringText.php">QRStringText.php</abbr></a></abbr>
  130. :
  131. <span class="phpdocumentor-element-found-in__line">19</span>
  132. </aside>
  133. <p class="phpdocumentor-summary">String/plaintext output (for CLI etc.)</p>
  134. <h3 id="toc">
  135. Table of Contents
  136. <a href="classes/chillerlan-QRCode-Output-QRStringText.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
  137. </h3>
  138. <h4 id="toc-constants">
  139. Constants
  140. <a href="classes/chillerlan-QRCode-Output-QRStringText.html#toc-constants" class="headerlink"><i class="fas fa-link"></i></a>
  141. </h4>
  142. <dl class="phpdocumentor-table-of-contents">
  143. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  144. <a class="" href="classes/chillerlan-QRCode-Output-QRStringText.html#constant_MIME_TYPE">MIME_TYPE</a>
  145. <span>
  146. &nbsp;= &#039;text/plain&#039; </span>
  147. </dt>
  148. </dl>
  149. <h4 id="toc-properties">
  150. Properties
  151. <a href="classes/chillerlan-QRCode-Output-QRStringText.html#toc-properties" class="headerlink"><i class="fas fa-link"></i></a>
  152. </h4>
  153. <dl class="phpdocumentor-table-of-contents">
  154. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  155. <a class="" href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_circleDiameter">$circleDiameter</a>
  156. <span>
  157. &nbsp;: float </span>
  158. </dt>
  159. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  160. <a class="" href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_circleRadius">$circleRadius</a>
  161. <span>
  162. &nbsp;: float </span>
  163. </dt>
  164. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  165. <a class="" href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_connectPaths">$connectPaths</a>
  166. <span>
  167. &nbsp;: bool </span>
  168. </dt>
  169. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  170. <a class="" href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_drawCircularModules">$drawCircularModules</a>
  171. <span>
  172. &nbsp;: bool </span>
  173. </dt>
  174. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  175. <a class="" href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_drawLightModules">$drawLightModules</a>
  176. <span>
  177. &nbsp;: bool </span>
  178. </dt>
  179. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  180. <a class="" href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_eol">$eol</a>
  181. <span>
  182. &nbsp;: string </span>
  183. </dt>
  184. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  185. <a class="" href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_excludeFromConnect">$excludeFromConnect</a>
  186. <span>
  187. &nbsp;: array&lt;string|int, int&gt; </span>
  188. </dt>
  189. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  190. <a class="" href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_keepAsSquare">$keepAsSquare</a>
  191. <span>
  192. &nbsp;: array&lt;string|int, int&gt; </span>
  193. </dt>
  194. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  195. <a class="" href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_length">$length</a>
  196. <span>
  197. &nbsp;: int </span>
  198. </dt>
  199. <dd>the side length of the QR image (modules * scale)</dd>
  200. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  201. <a class="" href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_matrix">$matrix</a>
  202. <span>
  203. &nbsp;: <a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a> </span>
  204. </dt>
  205. <dd>the (filled) data matrix object</dd>
  206. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  207. <a class="" href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_moduleCount">$moduleCount</a>
  208. <span>
  209. &nbsp;: int </span>
  210. </dt>
  211. <dd>the current size of the QR matrix</dd>
  212. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  213. <a class="" href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_moduleValues">$moduleValues</a>
  214. <span>
  215. &nbsp;: array&lt;string|int, mixed&gt; </span>
  216. </dt>
  217. <dd>an (optional) array of color values for the several QR matrix parts</dd>
  218. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  219. <a class="" href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_options">$options</a>
  220. <span>
  221. &nbsp;: <abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr>|<a href="classes/chillerlan-QRCode-QROptions.html"><abbr title="\chillerlan\QRCode\QROptions">QROptions</abbr></a> </span>
  222. </dt>
  223. <dd>the options instance</dd>
  224. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  225. <a class="" href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_scale">$scale</a>
  226. <span>
  227. &nbsp;: int </span>
  228. </dt>
  229. </dl>
  230. <h4 id="toc-methods">
  231. Methods
  232. <a href="classes/chillerlan-QRCode-Output-QRStringText.html#toc-methods" class="headerlink"><i class="fas fa-link"></i></a>
  233. </h4>
  234. <dl class="phpdocumentor-table-of-contents">
  235. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  236. <a class="" href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method___construct">__construct()</a>
  237. <span>
  238. &nbsp;: mixed </span>
  239. </dt>
  240. <dd>QROutputAbstract constructor.</dd>
  241. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  242. <a class="" href="classes/chillerlan-QRCode-Output-QRStringText.html#method_ansi8">ansi8()</a>
  243. <span>
  244. &nbsp;: string </span>
  245. </dt>
  246. <dd>a little helper to create a proper ANSI 8-bit color escape sequence</dd>
  247. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  248. <a class="" href="classes/chillerlan-QRCode-Output-QRStringText.html#method_dump">dump()</a>
  249. <span>
  250. &nbsp;: string </span>
  251. </dt>
  252. <dd>Generates the output, optionally dumps it to a file, and returns it</dd>
  253. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  254. <a class="" href="classes/chillerlan-QRCode-Output-QRStringText.html#method_moduleValueIsValid">moduleValueIsValid()</a>
  255. <span>
  256. &nbsp;: bool </span>
  257. </dt>
  258. <dd>Determines whether the given value is valid</dd>
  259. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  260. <a class="" href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_collectModules">collectModules()</a>
  261. <span>
  262. &nbsp;: array&lt;int, mixed&gt; </span>
  263. </dt>
  264. <dd>collects the modules per QRMatrix::M_* type and runs a $transform function on each module and
  265. returns an array with the transformed modules</dd>
  266. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  267. <a class="" href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_copyVars">copyVars()</a>
  268. <span>
  269. &nbsp;: void </span>
  270. </dt>
  271. <dd>Creates copies of several QROptions values to avoid calling the magic getters
  272. in long loops for a significant performance increase.</dd>
  273. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  274. <a class="" href="classes/chillerlan-QRCode-Output-QRStringText.html#method_getDefaultModuleValue">getDefaultModuleValue()</a>
  275. <span>
  276. &nbsp;: string </span>
  277. </dt>
  278. <dd>Returns a default value for either dark or light modules (return value depends on the output class)</dd>
  279. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  280. <a class="" href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_getModuleValue">getModuleValue()</a>
  281. <span>
  282. &nbsp;: mixed </span>
  283. </dt>
  284. <dd>Returns the prepared value for the given $M_TYPE</dd>
  285. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  286. <a class="" href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_getModuleValueAt">getModuleValueAt()</a>
  287. <span>
  288. &nbsp;: mixed </span>
  289. </dt>
  290. <dd>Returns the prepared module value at the given coordinate [$x, $y] (convenience)</dd>
  291. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  292. <a class="" href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_getOutputDimensions">getOutputDimensions()</a>
  293. <span>
  294. &nbsp;: array&lt;string|int, int&gt; </span>
  295. </dt>
  296. <dd>Returns a 2 element array with the current output width and height</dd>
  297. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  298. <a class="" href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_guessMimeType">guessMimeType()</a>
  299. <span>
  300. &nbsp;: string </span>
  301. </dt>
  302. <dd>Guesses the mime type from the given $imageData</dd>
  303. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  304. <a class="" href="classes/chillerlan-QRCode-Output-QRStringText.html#method_prepareModuleValue">prepareModuleValue()</a>
  305. <span>
  306. &nbsp;: string </span>
  307. </dt>
  308. <dd>Prepares the value for the given input (return value depends on the output class)</dd>
  309. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  310. <a class="" href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_saveToFile">saveToFile()</a>
  311. <span>
  312. &nbsp;: void </span>
  313. </dt>
  314. <dd>Saves the qr $data to a $file. If $file is null, nothing happens.</dd>
  315. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  316. <a class="" href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_setMatrixDimensions">setMatrixDimensions()</a>
  317. <span>
  318. &nbsp;: void </span>
  319. </dt>
  320. <dd>Sets/updates the matrix dimensions</dd>
  321. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  322. <a class="" href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_setModuleValues">setModuleValues()</a>
  323. <span>
  324. &nbsp;: void </span>
  325. </dt>
  326. <dd>Sets the initial module values</dd>
  327. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  328. <a class="" href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_toBase64DataURI">toBase64DataURI()</a>
  329. <span>
  330. &nbsp;: string </span>
  331. </dt>
  332. <dd>Returns a base64 data URI for the given string and mime type</dd>
  333. </dl>
  334. <section class="phpdocumentor-constants">
  335. <h3 class="phpdocumentor-elements__header" id="constants">
  336. Constants
  337. <a href="classes/chillerlan-QRCode-Output-QRStringText.html#constants" class="headerlink"><i class="fas fa-link"></i></a>
  338. </h3>
  339. <article class="phpdocumentor-element -constant -public ">
  340. <h4 class="phpdocumentor-element__name" id="constant_MIME_TYPE">
  341. MIME_TYPE
  342. <a href="classes/chillerlan-QRCode-Output-QRStringText.html#constant_MIME_TYPE" class="headerlink"><i class="fas fa-link"></i></a>
  343. </h4>
  344. <aside class="phpdocumentor-element-found-in">
  345. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QRStringText.php"><a href="files/src-output-qrstringtext.html"><abbr title="src/Output/QRStringText.php">QRStringText.php</abbr></a></abbr>
  346. :
  347. <span class="phpdocumentor-element-found-in__line">21</span>
  348. </aside>
  349. <code class="phpdocumentor-signature phpdocumentor-code ">
  350. <span class="phpdocumentor-signature__visibility">public</span>
  351. <span class="phpdocumentor-signature__final">final</span> <span class="phpdocumentor-signature__type">mixed</span>
  352. <span class="phpdocumentor-signature__name">MIME_TYPE</span>
  353. = <span class="phpdocumentor-signature__default-value">&#039;text/plain&#039;</span>
  354. </code>
  355. </article>
  356. </section>
  357. <section class="phpdocumentor-properties">
  358. <h3 class="phpdocumentor-elements__header" id="properties">
  359. Properties
  360. <a href="classes/chillerlan-QRCode-Output-QRStringText.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  361. </h3>
  362. <article
  363. class="
  364. phpdocumentor-element
  365. -property
  366. -protected
  367. "
  368. >
  369. <h4 class="phpdocumentor-element__name" id="property_circleDiameter">
  370. $circleDiameter
  371. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_circleDiameter" class="headerlink"><i class="fas fa-link"></i></a>
  372. <span class="phpdocumentor-element__modifiers">
  373. </span>
  374. </h4>
  375. <aside class="phpdocumentor-element-found-in">
  376. <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>
  377. :
  378. <span class="phpdocumentor-element-found-in__line">79</span>
  379. </aside>
  380. <code class="phpdocumentor-code phpdocumentor-signature ">
  381. <span class="phpdocumentor-signature__visibility">protected</span>
  382. <span class="phpdocumentor-signature__type">float</span>
  383. <span class="phpdocumentor-signature__name">$circleDiameter</span>
  384. </code>
  385. </article>
  386. <article
  387. class="
  388. phpdocumentor-element
  389. -property
  390. -protected
  391. "
  392. >
  393. <h4 class="phpdocumentor-element__name" id="property_circleRadius">
  394. $circleRadius
  395. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_circleRadius" class="headerlink"><i class="fas fa-link"></i></a>
  396. <span class="phpdocumentor-element__modifiers">
  397. </span>
  398. </h4>
  399. <aside class="phpdocumentor-element-found-in">
  400. <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>
  401. :
  402. <span class="phpdocumentor-element-found-in__line">78</span>
  403. </aside>
  404. <code class="phpdocumentor-code phpdocumentor-signature ">
  405. <span class="phpdocumentor-signature__visibility">protected</span>
  406. <span class="phpdocumentor-signature__type">float</span>
  407. <span class="phpdocumentor-signature__name">$circleRadius</span>
  408. </code>
  409. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  410. Tags
  411. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_circleRadius#tags" class="headerlink"><i class="fas fa-link"></i></a>
  412. </h5>
  413. <dl class="phpdocumentor-tag-list">
  414. <dt class="phpdocumentor-tag-list__entry">
  415. <span class="phpdocumentor-tag__name">see</span>
  416. </dt>
  417. <dd class="phpdocumentor-tag-list__definition">
  418. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\QROptions::$circleRadius">QROptions::$circleRadius</abbr></span>
  419. </dd>
  420. </dl>
  421. </article>
  422. <article
  423. class="
  424. phpdocumentor-element
  425. -property
  426. -protected
  427. "
  428. >
  429. <h4 class="phpdocumentor-element__name" id="property_connectPaths">
  430. $connectPaths
  431. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_connectPaths" class="headerlink"><i class="fas fa-link"></i></a>
  432. <span class="phpdocumentor-element__modifiers">
  433. </span>
  434. </h4>
  435. <aside class="phpdocumentor-element-found-in">
  436. <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>
  437. :
  438. <span class="phpdocumentor-element-found-in__line">70</span>
  439. </aside>
  440. <code class="phpdocumentor-code phpdocumentor-signature ">
  441. <span class="phpdocumentor-signature__visibility">protected</span>
  442. <span class="phpdocumentor-signature__type">bool</span>
  443. <span class="phpdocumentor-signature__name">$connectPaths</span>
  444. </code>
  445. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  446. Tags
  447. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_connectPaths#tags" class="headerlink"><i class="fas fa-link"></i></a>
  448. </h5>
  449. <dl class="phpdocumentor-tag-list">
  450. <dt class="phpdocumentor-tag-list__entry">
  451. <span class="phpdocumentor-tag__name">see</span>
  452. </dt>
  453. <dd class="phpdocumentor-tag-list__definition">
  454. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\QROptions::$connectPaths">QROptions::$connectPaths</abbr></span>
  455. </dd>
  456. </dl>
  457. </article>
  458. <article
  459. class="
  460. phpdocumentor-element
  461. -property
  462. -protected
  463. "
  464. >
  465. <h4 class="phpdocumentor-element__name" id="property_drawCircularModules">
  466. $drawCircularModules
  467. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_drawCircularModules" class="headerlink"><i class="fas fa-link"></i></a>
  468. <span class="phpdocumentor-element__modifiers">
  469. </span>
  470. </h4>
  471. <aside class="phpdocumentor-element-found-in">
  472. <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>
  473. :
  474. <span class="phpdocumentor-element-found-in__line">76</span>
  475. </aside>
  476. <code class="phpdocumentor-code phpdocumentor-signature ">
  477. <span class="phpdocumentor-signature__visibility">protected</span>
  478. <span class="phpdocumentor-signature__type">bool</span>
  479. <span class="phpdocumentor-signature__name">$drawCircularModules</span>
  480. </code>
  481. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  482. Tags
  483. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_drawCircularModules#tags" class="headerlink"><i class="fas fa-link"></i></a>
  484. </h5>
  485. <dl class="phpdocumentor-tag-list">
  486. <dt class="phpdocumentor-tag-list__entry">
  487. <span class="phpdocumentor-tag__name">see</span>
  488. </dt>
  489. <dd class="phpdocumentor-tag-list__definition">
  490. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\QROptions::$drawCircularModules">QROptions::$drawCircularModules</abbr></span>
  491. </dd>
  492. </dl>
  493. </article>
  494. <article
  495. class="
  496. phpdocumentor-element
  497. -property
  498. -protected
  499. "
  500. >
  501. <h4 class="phpdocumentor-element__name" id="property_drawLightModules">
  502. $drawLightModules
  503. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_drawLightModules" class="headerlink"><i class="fas fa-link"></i></a>
  504. <span class="phpdocumentor-element__modifiers">
  505. </span>
  506. </h4>
  507. <aside class="phpdocumentor-element-found-in">
  508. <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>
  509. :
  510. <span class="phpdocumentor-element-found-in__line">74</span>
  511. </aside>
  512. <code class="phpdocumentor-code phpdocumentor-signature ">
  513. <span class="phpdocumentor-signature__visibility">protected</span>
  514. <span class="phpdocumentor-signature__type">bool</span>
  515. <span class="phpdocumentor-signature__name">$drawLightModules</span>
  516. </code>
  517. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  518. Tags
  519. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_drawLightModules#tags" class="headerlink"><i class="fas fa-link"></i></a>
  520. </h5>
  521. <dl class="phpdocumentor-tag-list">
  522. <dt class="phpdocumentor-tag-list__entry">
  523. <span class="phpdocumentor-tag__name">see</span>
  524. </dt>
  525. <dd class="phpdocumentor-tag-list__definition">
  526. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\QROptions::$drawLightModules">QROptions::$drawLightModules</abbr></span>
  527. </dd>
  528. </dl>
  529. </article>
  530. <article
  531. class="
  532. phpdocumentor-element
  533. -property
  534. -protected
  535. "
  536. >
  537. <h4 class="phpdocumentor-element__name" id="property_eol">
  538. $eol
  539. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_eol" class="headerlink"><i class="fas fa-link"></i></a>
  540. <span class="phpdocumentor-element__modifiers">
  541. </span>
  542. </h4>
  543. <aside class="phpdocumentor-element-found-in">
  544. <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>
  545. :
  546. <span class="phpdocumentor-element-found-in__line">72</span>
  547. </aside>
  548. <code class="phpdocumentor-code phpdocumentor-signature ">
  549. <span class="phpdocumentor-signature__visibility">protected</span>
  550. <span class="phpdocumentor-signature__type">string</span>
  551. <span class="phpdocumentor-signature__name">$eol</span>
  552. </code>
  553. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  554. Tags
  555. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_eol#tags" class="headerlink"><i class="fas fa-link"></i></a>
  556. </h5>
  557. <dl class="phpdocumentor-tag-list">
  558. <dt class="phpdocumentor-tag-list__entry">
  559. <span class="phpdocumentor-tag__name">see</span>
  560. </dt>
  561. <dd class="phpdocumentor-tag-list__definition">
  562. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\QROptions::$eol">QROptions::$eol</abbr></span>
  563. </dd>
  564. </dl>
  565. </article>
  566. <article
  567. class="
  568. phpdocumentor-element
  569. -property
  570. -protected
  571. "
  572. >
  573. <h4 class="phpdocumentor-element__name" id="property_excludeFromConnect">
  574. $excludeFromConnect
  575. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_excludeFromConnect" class="headerlink"><i class="fas fa-link"></i></a>
  576. <span class="phpdocumentor-element__modifiers">
  577. </span>
  578. </h4>
  579. <aside class="phpdocumentor-element-found-in">
  580. <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>
  581. :
  582. <span class="phpdocumentor-element-found-in__line">61</span>
  583. </aside>
  584. <code class="phpdocumentor-code phpdocumentor-signature ">
  585. <span class="phpdocumentor-signature__visibility">protected</span>
  586. <span class="phpdocumentor-signature__type">array&lt;string|int, int&gt;</span>
  587. <span class="phpdocumentor-signature__name">$excludeFromConnect</span>
  588. </code>
  589. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  590. Tags
  591. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_excludeFromConnect#tags" class="headerlink"><i class="fas fa-link"></i></a>
  592. </h5>
  593. <dl class="phpdocumentor-tag-list">
  594. <dt class="phpdocumentor-tag-list__entry">
  595. <span class="phpdocumentor-tag__name">see</span>
  596. </dt>
  597. <dd class="phpdocumentor-tag-list__definition">
  598. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\QROptions::$excludeFromConnect">QROptions::$excludeFromConnect</abbr></span>
  599. </dd>
  600. </dl>
  601. </article>
  602. <article
  603. class="
  604. phpdocumentor-element
  605. -property
  606. -protected
  607. "
  608. >
  609. <h4 class="phpdocumentor-element__name" id="property_keepAsSquare">
  610. $keepAsSquare
  611. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_keepAsSquare" class="headerlink"><i class="fas fa-link"></i></a>
  612. <span class="phpdocumentor-element__modifiers">
  613. </span>
  614. </h4>
  615. <aside class="phpdocumentor-element-found-in">
  616. <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>
  617. :
  618. <span class="phpdocumentor-element-found-in__line">66</span>
  619. </aside>
  620. <code class="phpdocumentor-code phpdocumentor-signature ">
  621. <span class="phpdocumentor-signature__visibility">protected</span>
  622. <span class="phpdocumentor-signature__type">array&lt;string|int, int&gt;</span>
  623. <span class="phpdocumentor-signature__name">$keepAsSquare</span>
  624. </code>
  625. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  626. Tags
  627. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_keepAsSquare#tags" class="headerlink"><i class="fas fa-link"></i></a>
  628. </h5>
  629. <dl class="phpdocumentor-tag-list">
  630. <dt class="phpdocumentor-tag-list__entry">
  631. <span class="phpdocumentor-tag__name">see</span>
  632. </dt>
  633. <dd class="phpdocumentor-tag-list__definition">
  634. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\QROptions::$keepAsSquare">QROptions::$keepAsSquare</abbr></span>
  635. </dd>
  636. </dl>
  637. </article>
  638. <article
  639. class="
  640. phpdocumentor-element
  641. -property
  642. -protected
  643. "
  644. >
  645. <h4 class="phpdocumentor-element__name" id="property_length">
  646. $length
  647. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_length" class="headerlink"><i class="fas fa-link"></i></a>
  648. <span class="phpdocumentor-element__modifiers">
  649. </span>
  650. </h4>
  651. <aside class="phpdocumentor-element-found-in">
  652. <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>
  653. :
  654. <span class="phpdocumentor-element-found-in__line">38</span>
  655. </aside>
  656. <p class="phpdocumentor-summary">the side length of the QR image (modules * scale)</p>
  657. <code class="phpdocumentor-code phpdocumentor-signature ">
  658. <span class="phpdocumentor-signature__visibility">protected</span>
  659. <span class="phpdocumentor-signature__type">int</span>
  660. <span class="phpdocumentor-signature__name">$length</span>
  661. </code>
  662. </article>
  663. <article
  664. class="
  665. phpdocumentor-element
  666. -property
  667. -protected
  668. "
  669. >
  670. <h4 class="phpdocumentor-element__name" id="property_matrix">
  671. $matrix
  672. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_matrix" class="headerlink"><i class="fas fa-link"></i></a>
  673. <span class="phpdocumentor-element__modifiers">
  674. </span>
  675. </h4>
  676. <aside class="phpdocumentor-element-found-in">
  677. <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>
  678. :
  679. <span class="phpdocumentor-element-found-in__line">50</span>
  680. </aside>
  681. <p class="phpdocumentor-summary">the (filled) data matrix object</p>
  682. <code class="phpdocumentor-code phpdocumentor-signature ">
  683. <span class="phpdocumentor-signature__visibility">protected</span>
  684. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a></span>
  685. <span class="phpdocumentor-signature__name">$matrix</span>
  686. </code>
  687. </article>
  688. <article
  689. class="
  690. phpdocumentor-element
  691. -property
  692. -protected
  693. "
  694. >
  695. <h4 class="phpdocumentor-element__name" id="property_moduleCount">
  696. $moduleCount
  697. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_moduleCount" class="headerlink"><i class="fas fa-link"></i></a>
  698. <span class="phpdocumentor-element__modifiers">
  699. </span>
  700. </h4>
  701. <aside class="phpdocumentor-element-found-in">
  702. <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>
  703. :
  704. <span class="phpdocumentor-element-found-in__line">33</span>
  705. </aside>
  706. <p class="phpdocumentor-summary">the current size of the QR matrix</p>
  707. <code class="phpdocumentor-code phpdocumentor-signature ">
  708. <span class="phpdocumentor-signature__visibility">protected</span>
  709. <span class="phpdocumentor-signature__type">int</span>
  710. <span class="phpdocumentor-signature__name">$moduleCount</span>
  711. </code>
  712. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  713. Tags
  714. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_moduleCount#tags" class="headerlink"><i class="fas fa-link"></i></a>
  715. </h5>
  716. <dl class="phpdocumentor-tag-list">
  717. <dt class="phpdocumentor-tag-list__entry">
  718. <span class="phpdocumentor-tag__name">see</span>
  719. </dt>
  720. <dd class="phpdocumentor-tag-list__definition">
  721. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_getSize"><abbr title="\chillerlan\QRCode\Data\QRMatrix::getSize()">QRMatrix::getSize()</abbr></a></span>
  722. </dd>
  723. </dl>
  724. </article>
  725. <article
  726. class="
  727. phpdocumentor-element
  728. -property
  729. -protected
  730. "
  731. >
  732. <h4 class="phpdocumentor-element__name" id="property_moduleValues">
  733. $moduleValues
  734. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_moduleValues" class="headerlink"><i class="fas fa-link"></i></a>
  735. <span class="phpdocumentor-element__modifiers">
  736. </span>
  737. </h4>
  738. <aside class="phpdocumentor-element-found-in">
  739. <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>
  740. :
  741. <span class="phpdocumentor-element-found-in__line">45</span>
  742. </aside>
  743. <p class="phpdocumentor-summary">an (optional) array of color values for the several QR matrix parts</p>
  744. <code class="phpdocumentor-code phpdocumentor-signature ">
  745. <span class="phpdocumentor-signature__visibility">protected</span>
  746. <span class="phpdocumentor-signature__type">array&lt;string|int, mixed&gt;</span>
  747. <span class="phpdocumentor-signature__name">$moduleValues</span>
  748. </code>
  749. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  750. Tags
  751. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_moduleValues#tags" class="headerlink"><i class="fas fa-link"></i></a>
  752. </h5>
  753. <dl class="phpdocumentor-tag-list">
  754. <dt class="phpdocumentor-tag-list__entry">
  755. <span class="phpdocumentor-tag__name">phpstan-var</span>
  756. </dt>
  757. <dd class="phpdocumentor-tag-list__definition">
  758. <section class="phpdocumentor-description"><p>array&lt;int, mixed&gt;</p>
  759. </section>
  760. </dd>
  761. </dl>
  762. </article>
  763. <article
  764. class="
  765. phpdocumentor-element
  766. -property
  767. -protected
  768. "
  769. >
  770. <h4 class="phpdocumentor-element__name" id="property_options">
  771. $options
  772. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_options" class="headerlink"><i class="fas fa-link"></i></a>
  773. <span class="phpdocumentor-element__modifiers">
  774. </span>
  775. </h4>
  776. <aside class="phpdocumentor-element-found-in">
  777. <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>
  778. :
  779. <span class="phpdocumentor-element-found-in__line">55</span>
  780. </aside>
  781. <p class="phpdocumentor-summary">the options instance</p>
  782. <code class="phpdocumentor-code phpdocumentor-signature ">
  783. <span class="phpdocumentor-signature__visibility">protected</span>
  784. <span class="phpdocumentor-signature__type"><abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr>|<a href="classes/chillerlan-QRCode-QROptions.html"><abbr title="\chillerlan\QRCode\QROptions">QROptions</abbr></a></span>
  785. <span class="phpdocumentor-signature__name">$options</span>
  786. </code>
  787. </article>
  788. <article
  789. class="
  790. phpdocumentor-element
  791. -property
  792. -protected
  793. "
  794. >
  795. <h4 class="phpdocumentor-element__name" id="property_scale">
  796. $scale
  797. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_scale" class="headerlink"><i class="fas fa-link"></i></a>
  798. <span class="phpdocumentor-element__modifiers">
  799. </span>
  800. </h4>
  801. <aside class="phpdocumentor-element-found-in">
  802. <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>
  803. :
  804. <span class="phpdocumentor-element-found-in__line">68</span>
  805. </aside>
  806. <code class="phpdocumentor-code phpdocumentor-signature ">
  807. <span class="phpdocumentor-signature__visibility">protected</span>
  808. <span class="phpdocumentor-signature__type">int</span>
  809. <span class="phpdocumentor-signature__name">$scale</span>
  810. </code>
  811. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  812. Tags
  813. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_scale#tags" class="headerlink"><i class="fas fa-link"></i></a>
  814. </h5>
  815. <dl class="phpdocumentor-tag-list">
  816. <dt class="phpdocumentor-tag-list__entry">
  817. <span class="phpdocumentor-tag__name">see</span>
  818. </dt>
  819. <dd class="phpdocumentor-tag-list__definition">
  820. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\QROptions::$scale">QROptions::$scale</abbr></span>
  821. </dd>
  822. </dl>
  823. </article>
  824. </section>
  825. <section class="phpdocumentor-methods">
  826. <h3 class="phpdocumentor-elements__header" id="methods">
  827. Methods
  828. <a href="classes/chillerlan-QRCode-Output-QRStringText.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  829. </h3>
  830. <article
  831. class="phpdocumentor-element
  832. -method
  833. -public
  834. "
  835. >
  836. <h4 class="phpdocumentor-element__name" id="method___construct">
  837. __construct()
  838. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method___construct" class="headerlink"><i class="fas fa-link"></i></a>
  839. </h4>
  840. <aside class="phpdocumentor-element-found-in">
  841. <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>
  842. :
  843. <span class="phpdocumentor-element-found-in__line">84</span>
  844. </aside>
  845. <p class="phpdocumentor-summary">QROutputAbstract constructor.</p>
  846. <code class="phpdocumentor-code phpdocumentor-signature ">
  847. <span class="phpdocumentor-signature__visibility">public</span>
  848. <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>|<a href="classes/chillerlan-QRCode-QROptions.html"><abbr title="\chillerlan\QRCode\QROptions">QROptions</abbr></a>&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>
  849. <div class="phpdocumentor-label-line">
  850. </div>
  851. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  852. <dl class="phpdocumentor-argument-list">
  853. <dt class="phpdocumentor-argument-list__entry">
  854. <span class="phpdocumentor-signature__argument__name">$options</span>
  855. : <span class="phpdocumentor-signature__argument__return-type"><abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr>|<a href="classes/chillerlan-QRCode-QROptions.html"><abbr title="\chillerlan\QRCode\QROptions">QROptions</abbr></a></span>
  856. </dt>
  857. <dd class="phpdocumentor-argument-list__definition">
  858. </dd>
  859. <dt class="phpdocumentor-argument-list__entry">
  860. <span class="phpdocumentor-signature__argument__name">$matrix</span>
  861. : <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>
  862. </dt>
  863. <dd class="phpdocumentor-argument-list__definition">
  864. </dd>
  865. </dl>
  866. </article>
  867. <article
  868. class="phpdocumentor-element
  869. -method
  870. -public
  871. -static "
  872. >
  873. <h4 class="phpdocumentor-element__name" id="method_ansi8">
  874. ansi8()
  875. <a href="classes/chillerlan-QRCode-Output-QRStringText.html#method_ansi8" class="headerlink"><i class="fas fa-link"></i></a>
  876. </h4>
  877. <aside class="phpdocumentor-element-found-in">
  878. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QRStringText.php"><a href="files/src-output-qrstringtext.html"><abbr title="src/Output/QRStringText.php">QRStringText.php</abbr></a></abbr>
  879. :
  880. <span class="phpdocumentor-element-found-in__line">68</span>
  881. </aside>
  882. <p class="phpdocumentor-summary">a little helper to create a proper ANSI 8-bit color escape sequence</p>
  883. <code class="phpdocumentor-code phpdocumentor-signature ">
  884. <span class="phpdocumentor-signature__visibility">public</span>
  885. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">ansi8</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$str</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">$color</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">bool|null&nbsp;</span><span class="phpdocumentor-signature__argument__name">$background</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">null</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
  886. <div class="phpdocumentor-label-line">
  887. </div>
  888. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  889. <dl class="phpdocumentor-argument-list">
  890. <dt class="phpdocumentor-argument-list__entry">
  891. <span class="phpdocumentor-signature__argument__name">$str</span>
  892. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  893. </dt>
  894. <dd class="phpdocumentor-argument-list__definition">
  895. </dd>
  896. <dt class="phpdocumentor-argument-list__entry">
  897. <span class="phpdocumentor-signature__argument__name">$color</span>
  898. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  899. </dt>
  900. <dd class="phpdocumentor-argument-list__definition">
  901. </dd>
  902. <dt class="phpdocumentor-argument-list__entry">
  903. <span class="phpdocumentor-signature__argument__name">$background</span>
  904. : <span class="phpdocumentor-signature__argument__return-type">bool|null</span>
  905. = <span class="phpdocumentor-signature__argument__default-value">null</span> </dt>
  906. <dd class="phpdocumentor-argument-list__definition">
  907. </dd>
  908. </dl>
  909. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  910. Tags
  911. <a href="classes/chillerlan-QRCode-Output-QRStringText.html#method_ansi8#tags" class="headerlink"><i class="fas fa-link"></i></a>
  912. </h5>
  913. <dl class="phpdocumentor-tag-list">
  914. <dt class="phpdocumentor-tag-list__entry">
  915. <span class="phpdocumentor-tag__name">see</span>
  916. </dt>
  917. <dd class="phpdocumentor-tag-list__definition">
  918. <span class="phpdocumentor-tag-link"><a href="https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit">https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit</a></span>
  919. </dd>
  920. <dt class="phpdocumentor-tag-list__entry">
  921. <span class="phpdocumentor-tag__name">see</span>
  922. </dt>
  923. <dd class="phpdocumentor-tag-list__definition">
  924. <span class="phpdocumentor-tag-link"><a href="https://en.wikipedia.org/wiki/Block_Elements">https://en.wikipedia.org/wiki/Block_Elements</a></span>
  925. </dd>
  926. <dt class="phpdocumentor-tag-list__entry">
  927. <span class="phpdocumentor-tag__name">codeCoverageIgnore</span>
  928. </dt>
  929. <dd class="phpdocumentor-tag-list__definition">
  930. </dd>
  931. </dl>
  932. <section>
  933. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  934. <span class="phpdocumentor-signature__response_type">string</span>
  935. </section>
  936. </article>
  937. <article
  938. class="phpdocumentor-element
  939. -method
  940. -public
  941. "
  942. >
  943. <h4 class="phpdocumentor-element__name" id="method_dump">
  944. dump()
  945. <a href="classes/chillerlan-QRCode-Output-QRStringText.html#method_dump" class="headerlink"><i class="fas fa-link"></i></a>
  946. </h4>
  947. <aside class="phpdocumentor-element-found-in">
  948. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QRStringText.php"><a href="files/src-output-qrstringtext.html"><abbr title="src/Output/QRStringText.php">QRStringText.php</abbr></a></abbr>
  949. :
  950. <span class="phpdocumentor-element-found-in__line">45</span>
  951. </aside>
  952. <p class="phpdocumentor-summary">Generates the output, optionally dumps it to a file, and returns it</p>
  953. <code class="phpdocumentor-code phpdocumentor-signature ">
  954. <span class="phpdocumentor-signature__visibility">public</span>
  955. <span class="phpdocumentor-signature__name">dump</span><span>(</span><span class="phpdocumentor-signature__argument"><span>[</span><span class="phpdocumentor-signature__argument__return-type">string|null&nbsp;</span><span class="phpdocumentor-signature__argument__name">$file</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">null</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
  956. <div class="phpdocumentor-label-line">
  957. </div>
  958. <section class="phpdocumentor-description"><p>please note that the value of QROptions::$cachefile is already evaluated at this point.
  959. if the output module is invoked manually, it has no effect at all.
  960. you need to supply the $file parameter here in that case (or handle the option value in your custom output module).</p>
  961. </section>
  962. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  963. <dl class="phpdocumentor-argument-list">
  964. <dt class="phpdocumentor-argument-list__entry">
  965. <span class="phpdocumentor-signature__argument__name">$file</span>
  966. : <span class="phpdocumentor-signature__argument__return-type">string|null</span>
  967. = <span class="phpdocumentor-signature__argument__default-value">null</span> </dt>
  968. <dd class="phpdocumentor-argument-list__definition">
  969. </dd>
  970. </dl>
  971. <section>
  972. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  973. <span class="phpdocumentor-signature__response_type">string</span>
  974. </section>
  975. </article>
  976. <article
  977. class="phpdocumentor-element
  978. -method
  979. -public
  980. -static "
  981. >
  982. <h4 class="phpdocumentor-element__name" id="method_moduleValueIsValid">
  983. moduleValueIsValid()
  984. <a href="classes/chillerlan-QRCode-Output-QRStringText.html#method_moduleValueIsValid" class="headerlink"><i class="fas fa-link"></i></a>
  985. </h4>
  986. <aside class="phpdocumentor-element-found-in">
  987. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QRStringText.php"><a href="files/src-output-qrstringtext.html"><abbr title="src/Output/QRStringText.php">QRStringText.php</abbr></a></abbr>
  988. :
  989. <span class="phpdocumentor-element-found-in__line">28</span>
  990. </aside>
  991. <p class="phpdocumentor-summary">Determines whether the given value is valid</p>
  992. <code class="phpdocumentor-code phpdocumentor-signature ">
  993. <span class="phpdocumentor-signature__visibility">public</span>
  994. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">moduleValueIsValid</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$value</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>
  995. <div class="phpdocumentor-label-line">
  996. </div>
  997. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  998. <dl class="phpdocumentor-argument-list">
  999. <dt class="phpdocumentor-argument-list__entry">
  1000. <span class="phpdocumentor-signature__argument__name">$value</span>
  1001. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  1002. </dt>
  1003. <dd class="phpdocumentor-argument-list__definition">
  1004. </dd>
  1005. </dl>
  1006. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  1007. Tags
  1008. <a href="classes/chillerlan-QRCode-Output-QRStringText.html#method_moduleValueIsValid#tags" class="headerlink"><i class="fas fa-link"></i></a>
  1009. </h5>
  1010. <dl class="phpdocumentor-tag-list">
  1011. <dt class="phpdocumentor-tag-list__entry">
  1012. <span class="phpdocumentor-tag__name">inheritDoc</span>
  1013. </dt>
  1014. <dd class="phpdocumentor-tag-list__definition">
  1015. </dd>
  1016. </dl>
  1017. <section>
  1018. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1019. <span class="phpdocumentor-signature__response_type">bool</span>
  1020. </section>
  1021. </article>
  1022. <article
  1023. class="phpdocumentor-element
  1024. -method
  1025. -protected
  1026. "
  1027. >
  1028. <h4 class="phpdocumentor-element__name" id="method_collectModules">
  1029. collectModules()
  1030. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_collectModules" class="headerlink"><i class="fas fa-link"></i></a>
  1031. </h4>
  1032. <aside class="phpdocumentor-element-found-in">
  1033. <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>
  1034. :
  1035. <span class="phpdocumentor-element-found-in__line">267</span>
  1036. </aside>
  1037. <p class="phpdocumentor-summary">collects the modules per QRMatrix::M_* type and runs a $transform function on each module and
  1038. returns an array with the transformed modules</p>
  1039. <code class="phpdocumentor-code phpdocumentor-signature ">
  1040. <span class="phpdocumentor-signature__visibility">protected</span>
  1041. <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;int, mixed&gt;</span></code>
  1042. <div class="phpdocumentor-label-line">
  1043. </div>
  1044. <section class="phpdocumentor-description"><p>The transform callback is called with the following parameters:</p>
  1045. <p>$x - current column
  1046. $y - current row
  1047. $M_TYPE - field value
  1048. $M_TYPE_LAYER - (possibly modified) field value that acts as layer id</p>
  1049. </section>
  1050. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1051. <dl class="phpdocumentor-argument-list">
  1052. <dt class="phpdocumentor-argument-list__entry">
  1053. <span class="phpdocumentor-signature__argument__name">$transform</span>
  1054. : <span class="phpdocumentor-signature__argument__return-type"><abbr title="\Closure">Closure</abbr></span>
  1055. </dt>
  1056. <dd class="phpdocumentor-argument-list__definition">
  1057. </dd>
  1058. </dl>
  1059. <section>
  1060. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1061. <span class="phpdocumentor-signature__response_type">array&lt;int, mixed&gt;</span>
  1062. </section>
  1063. </article>
  1064. <article
  1065. class="phpdocumentor-element
  1066. -method
  1067. -protected
  1068. "
  1069. >
  1070. <h4 class="phpdocumentor-element__name" id="method_copyVars">
  1071. copyVars()
  1072. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_copyVars" class="headerlink"><i class="fas fa-link"></i></a>
  1073. </h4>
  1074. <aside class="phpdocumentor-element-found-in">
  1075. <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>
  1076. :
  1077. <span class="phpdocumentor-element-found-in__line">103</span>
  1078. </aside>
  1079. <p class="phpdocumentor-summary">Creates copies of several QROptions values to avoid calling the magic getters
  1080. in long loops for a significant performance increase.</p>
  1081. <code class="phpdocumentor-code phpdocumentor-signature ">
  1082. <span class="phpdocumentor-signature__visibility">protected</span>
  1083. <span class="phpdocumentor-signature__name">copyVars</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  1084. <div class="phpdocumentor-label-line">
  1085. </div>
  1086. <section class="phpdocumentor-description"><p>These variables are usually used in the &quot;module&quot; methods and are called up to 31329 times (at version 40).</p>
  1087. </section>
  1088. </article>
  1089. <article
  1090. class="phpdocumentor-element
  1091. -method
  1092. -protected
  1093. "
  1094. >
  1095. <h4 class="phpdocumentor-element__name" id="method_getDefaultModuleValue">
  1096. getDefaultModuleValue()
  1097. <a href="classes/chillerlan-QRCode-Output-QRStringText.html#method_getDefaultModuleValue" class="headerlink"><i class="fas fa-link"></i></a>
  1098. </h4>
  1099. <aside class="phpdocumentor-element-found-in">
  1100. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QRStringText.php"><a href="files/src-output-qrstringtext.html"><abbr title="src/Output/QRStringText.php">QRStringText.php</abbr></a></abbr>
  1101. :
  1102. <span class="phpdocumentor-element-found-in__line">41</span>
  1103. </aside>
  1104. <p class="phpdocumentor-summary">Returns a default value for either dark or light modules (return value depends on the output class)</p>
  1105. <code class="phpdocumentor-code phpdocumentor-signature ">
  1106. <span class="phpdocumentor-signature__visibility">protected</span>
  1107. <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">string</span></code>
  1108. <div class="phpdocumentor-label-line">
  1109. </div>
  1110. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1111. <dl class="phpdocumentor-argument-list">
  1112. <dt class="phpdocumentor-argument-list__entry">
  1113. <span class="phpdocumentor-signature__argument__name">$isDark</span>
  1114. : <span class="phpdocumentor-signature__argument__return-type">bool</span>
  1115. </dt>
  1116. <dd class="phpdocumentor-argument-list__definition">
  1117. </dd>
  1118. </dl>
  1119. <section>
  1120. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1121. <span class="phpdocumentor-signature__response_type">string</span>
  1122. </section>
  1123. </article>
  1124. <article
  1125. class="phpdocumentor-element
  1126. -method
  1127. -protected
  1128. "
  1129. >
  1130. <h4 class="phpdocumentor-element__name" id="method_getModuleValue">
  1131. getModuleValue()
  1132. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_getModuleValue" class="headerlink"><i class="fas fa-link"></i></a>
  1133. </h4>
  1134. <aside class="phpdocumentor-element-found-in">
  1135. <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>
  1136. :
  1137. <span class="phpdocumentor-element-found-in__line">179</span>
  1138. </aside>
  1139. <p class="phpdocumentor-summary">Returns the prepared value for the given $M_TYPE</p>
  1140. <code class="phpdocumentor-code phpdocumentor-signature ">
  1141. <span class="phpdocumentor-signature__visibility">protected</span>
  1142. <span class="phpdocumentor-signature__name">getModuleValue</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$M_TYPE</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
  1143. <div class="phpdocumentor-label-line">
  1144. </div>
  1145. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1146. <dl class="phpdocumentor-argument-list">
  1147. <dt class="phpdocumentor-argument-list__entry">
  1148. <span class="phpdocumentor-signature__argument__name">$M_TYPE</span>
  1149. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1150. </dt>
  1151. <dd class="phpdocumentor-argument-list__definition">
  1152. </dd>
  1153. </dl>
  1154. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  1155. Tags
  1156. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_getModuleValue#tags" class="headerlink"><i class="fas fa-link"></i></a>
  1157. </h5>
  1158. <dl class="phpdocumentor-tag-list">
  1159. <dt class="phpdocumentor-tag-list__entry">
  1160. <span class="phpdocumentor-tag__name">throws</span>
  1161. </dt>
  1162. <dd class="phpdocumentor-tag-list__definition">
  1163. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Output-QRCodeOutputException.html"><abbr title="\chillerlan\QRCode\Output\QRCodeOutputException">QRCodeOutputException</abbr></a></span>
  1164. <section class="phpdocumentor-description"><p>if $moduleValues[$M_TYPE] doesn't exist</p>
  1165. </section>
  1166. </dd>
  1167. </dl>
  1168. </article>
  1169. <article
  1170. class="phpdocumentor-element
  1171. -method
  1172. -protected
  1173. "
  1174. >
  1175. <h4 class="phpdocumentor-element__name" id="method_getModuleValueAt">
  1176. getModuleValueAt()
  1177. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_getModuleValueAt" class="headerlink"><i class="fas fa-link"></i></a>
  1178. </h4>
  1179. <aside class="phpdocumentor-element-found-in">
  1180. <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>
  1181. :
  1182. <span class="phpdocumentor-element-found-in__line">191</span>
  1183. </aside>
  1184. <p class="phpdocumentor-summary">Returns the prepared module value at the given coordinate [$x, $y] (convenience)</p>
  1185. <code class="phpdocumentor-code phpdocumentor-signature ">
  1186. <span class="phpdocumentor-signature__visibility">protected</span>
  1187. <span class="phpdocumentor-signature__name">getModuleValueAt</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$x</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$y</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
  1188. <div class="phpdocumentor-label-line">
  1189. </div>
  1190. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1191. <dl class="phpdocumentor-argument-list">
  1192. <dt class="phpdocumentor-argument-list__entry">
  1193. <span class="phpdocumentor-signature__argument__name">$x</span>
  1194. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1195. </dt>
  1196. <dd class="phpdocumentor-argument-list__definition">
  1197. </dd>
  1198. <dt class="phpdocumentor-argument-list__entry">
  1199. <span class="phpdocumentor-signature__argument__name">$y</span>
  1200. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1201. </dt>
  1202. <dd class="phpdocumentor-argument-list__definition">
  1203. </dd>
  1204. </dl>
  1205. </article>
  1206. <article
  1207. class="phpdocumentor-element
  1208. -method
  1209. -protected
  1210. "
  1211. >
  1212. <h4 class="phpdocumentor-element__name" id="method_getOutputDimensions">
  1213. getOutputDimensions()
  1214. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_getOutputDimensions" class="headerlink"><i class="fas fa-link"></i></a>
  1215. </h4>
  1216. <aside class="phpdocumentor-element-found-in">
  1217. <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>
  1218. :
  1219. <span class="phpdocumentor-element-found-in__line">140</span>
  1220. </aside>
  1221. <p class="phpdocumentor-summary">Returns a 2 element array with the current output width and height</p>
  1222. <code class="phpdocumentor-code phpdocumentor-signature ">
  1223. <span class="phpdocumentor-signature__visibility">protected</span>
  1224. <span class="phpdocumentor-signature__name">getOutputDimensions</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, int&gt;</span></code>
  1225. <div class="phpdocumentor-label-line">
  1226. </div>
  1227. <section class="phpdocumentor-description"><p>The type and units of the values depend on the output class. The default value is the current module count * scale.</p>
  1228. </section>
  1229. <section>
  1230. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1231. <span class="phpdocumentor-signature__response_type">array&lt;string|int, int&gt;</span>
  1232. </section>
  1233. </article>
  1234. <article
  1235. class="phpdocumentor-element
  1236. -method
  1237. -protected
  1238. "
  1239. >
  1240. <h4 class="phpdocumentor-element__name" id="method_guessMimeType">
  1241. guessMimeType()
  1242. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_guessMimeType" class="headerlink"><i class="fas fa-link"></i></a>
  1243. </h4>
  1244. <aside class="phpdocumentor-element-found-in">
  1245. <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>
  1246. :
  1247. <span class="phpdocumentor-element-found-in__line">216</span>
  1248. </aside>
  1249. <p class="phpdocumentor-summary">Guesses the mime type from the given $imageData</p>
  1250. <code class="phpdocumentor-code phpdocumentor-signature ">
  1251. <span class="phpdocumentor-signature__visibility">protected</span>
  1252. <span class="phpdocumentor-signature__name">guessMimeType</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$imageData</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
  1253. <div class="phpdocumentor-label-line">
  1254. </div>
  1255. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1256. <dl class="phpdocumentor-argument-list">
  1257. <dt class="phpdocumentor-argument-list__entry">
  1258. <span class="phpdocumentor-signature__argument__name">$imageData</span>
  1259. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  1260. </dt>
  1261. <dd class="phpdocumentor-argument-list__definition">
  1262. </dd>
  1263. </dl>
  1264. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  1265. Tags
  1266. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_guessMimeType#tags" class="headerlink"><i class="fas fa-link"></i></a>
  1267. </h5>
  1268. <dl class="phpdocumentor-tag-list">
  1269. <dt class="phpdocumentor-tag-list__entry">
  1270. <span class="phpdocumentor-tag__name">throws</span>
  1271. </dt>
  1272. <dd class="phpdocumentor-tag-list__definition">
  1273. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Output-QRCodeOutputException.html"><abbr title="\chillerlan\QRCode\Output\QRCodeOutputException">QRCodeOutputException</abbr></a></span>
  1274. </dd>
  1275. </dl>
  1276. <section>
  1277. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1278. <span class="phpdocumentor-signature__response_type">string</span>
  1279. </section>
  1280. </article>
  1281. <article
  1282. class="phpdocumentor-element
  1283. -method
  1284. -protected
  1285. "
  1286. >
  1287. <h4 class="phpdocumentor-element__name" id="method_prepareModuleValue">
  1288. prepareModuleValue()
  1289. <a href="classes/chillerlan-QRCode-Output-QRStringText.html#method_prepareModuleValue" class="headerlink"><i class="fas fa-link"></i></a>
  1290. </h4>
  1291. <aside class="phpdocumentor-element-found-in">
  1292. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QRStringText.php"><a href="files/src-output-qrstringtext.html"><abbr title="src/Output/QRStringText.php">QRStringText.php</abbr></a></abbr>
  1293. :
  1294. <span class="phpdocumentor-element-found-in__line">37</span>
  1295. </aside>
  1296. <p class="phpdocumentor-summary">Prepares the value for the given input (return value depends on the output class)</p>
  1297. <code class="phpdocumentor-code phpdocumentor-signature ">
  1298. <span class="phpdocumentor-signature__visibility">protected</span>
  1299. <span class="phpdocumentor-signature__name">prepareModuleValue</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$value</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
  1300. <div class="phpdocumentor-label-line">
  1301. </div>
  1302. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1303. <dl class="phpdocumentor-argument-list">
  1304. <dt class="phpdocumentor-argument-list__entry">
  1305. <span class="phpdocumentor-signature__argument__name">$value</span>
  1306. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  1307. </dt>
  1308. <dd class="phpdocumentor-argument-list__definition">
  1309. </dd>
  1310. </dl>
  1311. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  1312. Tags
  1313. <a href="classes/chillerlan-QRCode-Output-QRStringText.html#method_prepareModuleValue#tags" class="headerlink"><i class="fas fa-link"></i></a>
  1314. </h5>
  1315. <dl class="phpdocumentor-tag-list">
  1316. <dt class="phpdocumentor-tag-list__entry">
  1317. <span class="phpdocumentor-tag__name">inheritDoc</span>
  1318. </dt>
  1319. <dd class="phpdocumentor-tag-list__definition">
  1320. </dd>
  1321. </dl>
  1322. <section>
  1323. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1324. <span class="phpdocumentor-signature__response_type">string</span>
  1325. </section>
  1326. </article>
  1327. <article
  1328. class="phpdocumentor-element
  1329. -method
  1330. -protected
  1331. "
  1332. >
  1333. <h4 class="phpdocumentor-element__name" id="method_saveToFile">
  1334. saveToFile()
  1335. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_saveToFile" class="headerlink"><i class="fas fa-link"></i></a>
  1336. </h4>
  1337. <aside class="phpdocumentor-element-found-in">
  1338. <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>
  1339. :
  1340. <span class="phpdocumentor-element-found-in__line">239</span>
  1341. </aside>
  1342. <p class="phpdocumentor-summary">Saves the qr $data to a $file. If $file is null, nothing happens.</p>
  1343. <code class="phpdocumentor-code phpdocumentor-signature ">
  1344. <span class="phpdocumentor-signature__visibility">protected</span>
  1345. <span class="phpdocumentor-signature__name">saveToFile</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$data</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string|null&nbsp;</span><span class="phpdocumentor-signature__argument__name">$file</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">null</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  1346. <div class="phpdocumentor-label-line">
  1347. </div>
  1348. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1349. <dl class="phpdocumentor-argument-list">
  1350. <dt class="phpdocumentor-argument-list__entry">
  1351. <span class="phpdocumentor-signature__argument__name">$data</span>
  1352. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  1353. </dt>
  1354. <dd class="phpdocumentor-argument-list__definition">
  1355. </dd>
  1356. <dt class="phpdocumentor-argument-list__entry">
  1357. <span class="phpdocumentor-signature__argument__name">$file</span>
  1358. : <span class="phpdocumentor-signature__argument__return-type">string|null</span>
  1359. = <span class="phpdocumentor-signature__argument__default-value">null</span> </dt>
  1360. <dd class="phpdocumentor-argument-list__definition">
  1361. </dd>
  1362. </dl>
  1363. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  1364. Tags
  1365. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_saveToFile#tags" class="headerlink"><i class="fas fa-link"></i></a>
  1366. </h5>
  1367. <dl class="phpdocumentor-tag-list">
  1368. <dt class="phpdocumentor-tag-list__entry">
  1369. <span class="phpdocumentor-tag__name">see</span>
  1370. </dt>
  1371. <dd class="phpdocumentor-tag-list__definition">
  1372. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\Output\file_put_contents()">file_put_contents()</abbr></span>
  1373. </dd>
  1374. <dt class="phpdocumentor-tag-list__entry">
  1375. <span class="phpdocumentor-tag__name">see</span>
  1376. </dt>
  1377. <dd class="phpdocumentor-tag-list__definition">
  1378. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\QROptions::$cachefile">QROptions::$cachefile</abbr></span>
  1379. </dd>
  1380. <dt class="phpdocumentor-tag-list__entry">
  1381. <span class="phpdocumentor-tag__name">throws</span>
  1382. </dt>
  1383. <dd class="phpdocumentor-tag-list__definition">
  1384. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Output-QRCodeOutputException.html"><abbr title="\chillerlan\QRCode\Output\QRCodeOutputException">QRCodeOutputException</abbr></a></span>
  1385. </dd>
  1386. </dl>
  1387. </article>
  1388. <article
  1389. class="phpdocumentor-element
  1390. -method
  1391. -protected
  1392. "
  1393. >
  1394. <h4 class="phpdocumentor-element__name" id="method_setMatrixDimensions">
  1395. setMatrixDimensions()
  1396. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_setMatrixDimensions" class="headerlink"><i class="fas fa-link"></i></a>
  1397. </h4>
  1398. <aside class="phpdocumentor-element-found-in">
  1399. <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>
  1400. :
  1401. <span class="phpdocumentor-element-found-in__line">127</span>
  1402. </aside>
  1403. <p class="phpdocumentor-summary">Sets/updates the matrix dimensions</p>
  1404. <code class="phpdocumentor-code phpdocumentor-signature ">
  1405. <span class="phpdocumentor-signature__visibility">protected</span>
  1406. <span class="phpdocumentor-signature__name">setMatrixDimensions</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  1407. <div class="phpdocumentor-label-line">
  1408. </div>
  1409. <section class="phpdocumentor-description"><p>Call this method if you modify the matrix from within your custom module in case the dimensions have been changed</p>
  1410. </section>
  1411. </article>
  1412. <article
  1413. class="phpdocumentor-element
  1414. -method
  1415. -protected
  1416. "
  1417. >
  1418. <h4 class="phpdocumentor-element__name" id="method_setModuleValues">
  1419. setModuleValues()
  1420. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_setModuleValues" class="headerlink"><i class="fas fa-link"></i></a>
  1421. </h4>
  1422. <aside class="phpdocumentor-element-found-in">
  1423. <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>
  1424. :
  1425. <span class="phpdocumentor-element-found-in__line">147</span>
  1426. </aside>
  1427. <p class="phpdocumentor-summary">Sets the initial module values</p>
  1428. <code class="phpdocumentor-code phpdocumentor-signature ">
  1429. <span class="phpdocumentor-signature__visibility">protected</span>
  1430. <span class="phpdocumentor-signature__name">setModuleValues</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  1431. <div class="phpdocumentor-label-line">
  1432. </div>
  1433. </article>
  1434. <article
  1435. class="phpdocumentor-element
  1436. -method
  1437. -protected
  1438. "
  1439. >
  1440. <h4 class="phpdocumentor-element__name" id="method_toBase64DataURI">
  1441. toBase64DataURI()
  1442. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_toBase64DataURI" class="headerlink"><i class="fas fa-link"></i></a>
  1443. </h4>
  1444. <aside class="phpdocumentor-element-found-in">
  1445. <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>
  1446. :
  1447. <span class="phpdocumentor-element-found-in__line">201</span>
  1448. </aside>
  1449. <p class="phpdocumentor-summary">Returns a base64 data URI for the given string and mime type</p>
  1450. <code class="phpdocumentor-code phpdocumentor-signature ">
  1451. <span class="phpdocumentor-signature__visibility">protected</span>
  1452. <span class="phpdocumentor-signature__name">toBase64DataURI</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$data</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string|null&nbsp;</span><span class="phpdocumentor-signature__argument__name">$mime</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">null</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
  1453. <div class="phpdocumentor-label-line">
  1454. </div>
  1455. <section class="phpdocumentor-description"><p>The mime type can be set via class constant MIME_TYPE in child classes,
  1456. or given via $mime, otherwise it is guessed from the image $data.</p>
  1457. </section>
  1458. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1459. <dl class="phpdocumentor-argument-list">
  1460. <dt class="phpdocumentor-argument-list__entry">
  1461. <span class="phpdocumentor-signature__argument__name">$data</span>
  1462. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  1463. </dt>
  1464. <dd class="phpdocumentor-argument-list__definition">
  1465. </dd>
  1466. <dt class="phpdocumentor-argument-list__entry">
  1467. <span class="phpdocumentor-signature__argument__name">$mime</span>
  1468. : <span class="phpdocumentor-signature__argument__return-type">string|null</span>
  1469. = <span class="phpdocumentor-signature__argument__default-value">null</span> </dt>
  1470. <dd class="phpdocumentor-argument-list__definition">
  1471. </dd>
  1472. </dl>
  1473. <section>
  1474. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1475. <span class="phpdocumentor-signature__response_type">string</span>
  1476. </section>
  1477. </article>
  1478. </section>
  1479. <div class="phpdocumentor-modal" id="source-view">
  1480. <div class="phpdocumentor-modal-bg" data-exit-button></div>
  1481. <div class="phpdocumentor-modal-container">
  1482. <div class="phpdocumentor-modal-content">
  1483. <pre style="max-height: 500px; overflow-y: scroll" data-src="files/src/Output/QRStringText.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
  1484. </div>
  1485. <button data-exit-button class="phpdocumentor-modal__close">&times;</button>
  1486. </div>
  1487. </div>
  1488. <script type="text/javascript">
  1489. (function () {
  1490. function loadExternalCodeSnippet(el, url, line) {
  1491. Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
  1492. const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
  1493. const language = 'php';
  1494. const code = document.createElement('code');
  1495. code.className = 'language-' + language;
  1496. pre.textContent = '';
  1497. pre.setAttribute('data-line', line)
  1498. code.textContent = 'Loading…';
  1499. pre.appendChild(code);
  1500. var xhr = new XMLHttpRequest();
  1501. xhr.open('GET', src, true);
  1502. xhr.onreadystatechange = function () {
  1503. if (xhr.readyState !== 4) {
  1504. return;
  1505. }
  1506. if (xhr.status < 400 && xhr.responseText) {
  1507. code.textContent = xhr.responseText;
  1508. Prism.highlightElement(code);
  1509. return;
  1510. }
  1511. if (xhr.status === 404) {
  1512. code.textContent = '✖ Error: File could not be found';
  1513. return;
  1514. }
  1515. if (xhr.status >= 400) {
  1516. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  1517. return;
  1518. }
  1519. code.textContent = '✖ Error: An unknown error occurred';
  1520. };
  1521. xhr.send(null);
  1522. });
  1523. }
  1524. const modalButtons = document.querySelectorAll("[data-modal]");
  1525. const openedAsLocalFile = window.location.protocol === 'file:';
  1526. if (modalButtons.length > 0 && openedAsLocalFile) {
  1527. console.warn(
  1528. 'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
  1529. 'browsers block XHR requests when a page is opened this way'
  1530. );
  1531. }
  1532. modalButtons.forEach(function (trigger) {
  1533. if (openedAsLocalFile) {
  1534. trigger.setAttribute("hidden", "hidden");
  1535. }
  1536. trigger.addEventListener("click", function (event) {
  1537. event.preventDefault();
  1538. const modal = document.getElementById(trigger.dataset.modal);
  1539. if (!modal) {
  1540. console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
  1541. return;
  1542. }
  1543. modal.classList.add("phpdocumentor-modal__open");
  1544. loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
  1545. const exits = modal.querySelectorAll("[data-exit-button]");
  1546. exits.forEach(function (exit) {
  1547. exit.addEventListener("click", function (event) {
  1548. event.preventDefault();
  1549. modal.classList.remove("phpdocumentor-modal__open");
  1550. });
  1551. });
  1552. });
  1553. });
  1554. })();
  1555. </script>
  1556. </article>
  1557. </section>
  1558. <section class="phpdocumentor-on-this-page__sidebar">
  1559. <section class="phpdocumentor-on-this-page__content">
  1560. <strong class="phpdocumentor-on-this-page__title">On this page</strong>
  1561. <ul class="phpdocumentor-list -clean">
  1562. <li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
  1563. <li>
  1564. <ul class="phpdocumentor-list -clean">
  1565. <li><a href="classes/chillerlan-QRCode-Output-QRStringText.html#toc-constants">Constants</a></li>
  1566. <li><a href="classes/chillerlan-QRCode-Output-QRStringText.html#toc-properties">Properties</a></li>
  1567. <li><a href="classes/chillerlan-QRCode-Output-QRStringText.html#toc-methods">Methods</a></li>
  1568. </ul>
  1569. </li>
  1570. <li class="phpdocumentor-on-this-page-section__title">Constants</li>
  1571. <li>
  1572. <ul class="phpdocumentor-list -clean">
  1573. <li class=""><a href="classes/chillerlan-QRCode-Output-QRStringText.html#constant_MIME_TYPE">MIME_TYPE</a></li>
  1574. </ul>
  1575. </li>
  1576. <li class="phpdocumentor-on-this-page-section__title">Properties</li>
  1577. <li>
  1578. <ul class="phpdocumentor-list -clean">
  1579. <li class=""><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_circleDiameter">$circleDiameter</a></li>
  1580. <li class=""><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_circleRadius">$circleRadius</a></li>
  1581. <li class=""><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_connectPaths">$connectPaths</a></li>
  1582. <li class=""><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_drawCircularModules">$drawCircularModules</a></li>
  1583. <li class=""><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_drawLightModules">$drawLightModules</a></li>
  1584. <li class=""><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_eol">$eol</a></li>
  1585. <li class=""><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_excludeFromConnect">$excludeFromConnect</a></li>
  1586. <li class=""><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_keepAsSquare">$keepAsSquare</a></li>
  1587. <li class=""><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_length">$length</a></li>
  1588. <li class=""><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_matrix">$matrix</a></li>
  1589. <li class=""><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_moduleCount">$moduleCount</a></li>
  1590. <li class=""><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_moduleValues">$moduleValues</a></li>
  1591. <li class=""><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_options">$options</a></li>
  1592. <li class=""><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_scale">$scale</a></li>
  1593. </ul>
  1594. </li>
  1595. <li class="phpdocumentor-on-this-page-section__title">Methods</li>
  1596. <li>
  1597. <ul class="phpdocumentor-list -clean">
  1598. <li class=""><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method___construct">__construct()</a></li>
  1599. <li class=""><a href="classes/chillerlan-QRCode-Output-QRStringText.html#method_ansi8">ansi8()</a></li>
  1600. <li class=""><a href="classes/chillerlan-QRCode-Output-QRStringText.html#method_dump">dump()</a></li>
  1601. <li class=""><a href="classes/chillerlan-QRCode-Output-QRStringText.html#method_moduleValueIsValid">moduleValueIsValid()</a></li>
  1602. <li class=""><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_collectModules">collectModules()</a></li>
  1603. <li class=""><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_copyVars">copyVars()</a></li>
  1604. <li class=""><a href="classes/chillerlan-QRCode-Output-QRStringText.html#method_getDefaultModuleValue">getDefaultModuleValue()</a></li>
  1605. <li class=""><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_getModuleValue">getModuleValue()</a></li>
  1606. <li class=""><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_getModuleValueAt">getModuleValueAt()</a></li>
  1607. <li class=""><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_getOutputDimensions">getOutputDimensions()</a></li>
  1608. <li class=""><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_guessMimeType">guessMimeType()</a></li>
  1609. <li class=""><a href="classes/chillerlan-QRCode-Output-QRStringText.html#method_prepareModuleValue">prepareModuleValue()</a></li>
  1610. <li class=""><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_saveToFile">saveToFile()</a></li>
  1611. <li class=""><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_setMatrixDimensions">setMatrixDimensions()</a></li>
  1612. <li class=""><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_setModuleValues">setModuleValues()</a></li>
  1613. <li class=""><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_toBase64DataURI">toBase64DataURI()</a></li>
  1614. </ul>
  1615. </li>
  1616. </ul>
  1617. </section>
  1618. </section>
  1619. </div>
  1620. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  1621. <section class="phpdocumentor-search-results__dialog">
  1622. <header class="phpdocumentor-search-results__header">
  1623. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  1624. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  1625. </header>
  1626. <section class="phpdocumentor-search-results__body">
  1627. <ul class="phpdocumentor-search-results__entries"></ul>
  1628. </section>
  1629. </section>
  1630. </section>
  1631. </div>
  1632. <a href="classes/chillerlan-QRCode-Output-QRStringText.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  1633. </main>
  1634. <script>
  1635. cssVars({});
  1636. </script>
  1637. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  1638. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  1639. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  1640. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  1641. </body>
  1642. </html>