chillerlan-QRCode-Output-QRMarkupSVG.html 127 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675
  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. QRMarkupSVG
  116. <span class="phpdocumentor-element__extends">
  117. extends <a href="classes/chillerlan-QRCode-Output-QRMarkup.html"><abbr title="\chillerlan\QRCode\Output\QRMarkup">QRMarkup</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/QRMarkupSVG.php"><a href="files/src-output-qrmarkupsvg.html"><abbr title="src/Output/QRMarkupSVG.php">QRMarkupSVG.php</abbr></a></abbr>
  130. :
  131. <span class="phpdocumentor-element-found-in__line">27</span>
  132. </aside>
  133. <p class="phpdocumentor-summary">SVG output</p>
  134. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  135. Tags
  136. <a href="classes/chillerlan-QRCode-Output-QRMarkupSVG.html#tags" class="headerlink"><i class="fas fa-link"></i></a>
  137. </h5>
  138. <dl class="phpdocumentor-tag-list">
  139. <dt class="phpdocumentor-tag-list__entry">
  140. <span class="phpdocumentor-tag__name">see</span>
  141. </dt>
  142. <dd class="phpdocumentor-tag-list__definition">
  143. <span class="phpdocumentor-tag-link"><a href="https://github.com/codemasher/php-qrcode/pull/5">https://github.com/codemasher/php-qrcode/pull/5</a></span>
  144. </dd>
  145. <dt class="phpdocumentor-tag-list__entry">
  146. <span class="phpdocumentor-tag__name">see</span>
  147. </dt>
  148. <dd class="phpdocumentor-tag-list__definition">
  149. <span class="phpdocumentor-tag-link"><a href="https://developer.mozilla.org/en-US/docs/Web/SVG">https://developer.mozilla.org/en-US/docs/Web/SVG</a></span>
  150. </dd>
  151. <dt class="phpdocumentor-tag-list__entry">
  152. <span class="phpdocumentor-tag__name">see</span>
  153. </dt>
  154. <dd class="phpdocumentor-tag-list__definition">
  155. <span class="phpdocumentor-tag-link"><a href="https://www.sarasoueidan.com/demos/interactive-svg-coordinate-system/">https://www.sarasoueidan.com/demos/interactive-svg-coordinate-system/</a></span>
  156. </dd>
  157. <dt class="phpdocumentor-tag-list__entry">
  158. <span class="phpdocumentor-tag__name">see</span>
  159. </dt>
  160. <dd class="phpdocumentor-tag-list__definition">
  161. <span class="phpdocumentor-tag-link"><a href="https://lea.verou.me/blog/2019/05/utility-convert-svg-path-to-all-relative-or-all-absolute-commands/">https://lea.verou.me/blog/2019/05/utility-convert-svg-path-to-all-relative-or-all-absolute-commands/</a></span>
  162. </dd>
  163. <dt class="phpdocumentor-tag-list__entry">
  164. <span class="phpdocumentor-tag__name">see</span>
  165. </dt>
  166. <dd class="phpdocumentor-tag-list__definition">
  167. <span class="phpdocumentor-tag-link"><a href="https://codepen.io/leaverou/full/RmwzKv">https://codepen.io/leaverou/full/RmwzKv</a></span>
  168. </dd>
  169. <dt class="phpdocumentor-tag-list__entry">
  170. <span class="phpdocumentor-tag__name">see</span>
  171. </dt>
  172. <dd class="phpdocumentor-tag-list__definition">
  173. <span class="phpdocumentor-tag-link"><a href="https://jakearchibald.github.io/svgomg/">https://jakearchibald.github.io/svgomg/</a></span>
  174. </dd>
  175. <dt class="phpdocumentor-tag-list__entry">
  176. <span class="phpdocumentor-tag__name">see</span>
  177. </dt>
  178. <dd class="phpdocumentor-tag-list__definition">
  179. <span class="phpdocumentor-tag-link"><a href="https://web.archive.org/web/20200220211445/http://apex.infogridpacific.com/SVG/svg-tutorial-contents.html">https://web.archive.org/web/20200220211445/http://apex.infogridpacific.com/SVG/svg-tutorial-contents.html</a></span>
  180. </dd>
  181. </dl>
  182. <h3 id="toc">
  183. Table of Contents
  184. <a href="classes/chillerlan-QRCode-Output-QRMarkupSVG.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
  185. </h3>
  186. <h4 id="toc-constants">
  187. Constants
  188. <a href="classes/chillerlan-QRCode-Output-QRMarkupSVG.html#toc-constants" class="headerlink"><i class="fas fa-link"></i></a>
  189. </h4>
  190. <dl class="phpdocumentor-table-of-contents">
  191. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  192. <a class="" href="classes/chillerlan-QRCode-Output-QRMarkupSVG.html#constant_MIME_TYPE">MIME_TYPE</a>
  193. <span>
  194. &nbsp;= &#039;image/svg+xml&#039; </span>
  195. </dt>
  196. </dl>
  197. <h4 id="toc-properties">
  198. Properties
  199. <a href="classes/chillerlan-QRCode-Output-QRMarkupSVG.html#toc-properties" class="headerlink"><i class="fas fa-link"></i></a>
  200. </h4>
  201. <dl class="phpdocumentor-table-of-contents">
  202. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  203. <a class="" href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_circleDiameter">$circleDiameter</a>
  204. <span>
  205. &nbsp;: float </span>
  206. </dt>
  207. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  208. <a class="" href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_circleRadius">$circleRadius</a>
  209. <span>
  210. &nbsp;: float </span>
  211. </dt>
  212. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  213. <a class="" href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_connectPaths">$connectPaths</a>
  214. <span>
  215. &nbsp;: bool </span>
  216. </dt>
  217. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  218. <a class="" href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_drawCircularModules">$drawCircularModules</a>
  219. <span>
  220. &nbsp;: bool </span>
  221. </dt>
  222. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  223. <a class="" href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_drawLightModules">$drawLightModules</a>
  224. <span>
  225. &nbsp;: bool </span>
  226. </dt>
  227. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  228. <a class="" href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_eol">$eol</a>
  229. <span>
  230. &nbsp;: string </span>
  231. </dt>
  232. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  233. <a class="" href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_excludeFromConnect">$excludeFromConnect</a>
  234. <span>
  235. &nbsp;: array&lt;string|int, int&gt; </span>
  236. </dt>
  237. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  238. <a class="" href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_keepAsSquare">$keepAsSquare</a>
  239. <span>
  240. &nbsp;: array&lt;string|int, int&gt; </span>
  241. </dt>
  242. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  243. <a class="" href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_length">$length</a>
  244. <span>
  245. &nbsp;: int </span>
  246. </dt>
  247. <dd>the side length of the QR image (modules * scale)</dd>
  248. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  249. <a class="" href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_matrix">$matrix</a>
  250. <span>
  251. &nbsp;: <a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a> </span>
  252. </dt>
  253. <dd>the (filled) data matrix object</dd>
  254. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  255. <a class="" href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_moduleCount">$moduleCount</a>
  256. <span>
  257. &nbsp;: int </span>
  258. </dt>
  259. <dd>the current size of the QR matrix</dd>
  260. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  261. <a class="" href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_moduleValues">$moduleValues</a>
  262. <span>
  263. &nbsp;: array&lt;string|int, mixed&gt; </span>
  264. </dt>
  265. <dd>an (optional) array of color values for the several QR matrix parts</dd>
  266. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  267. <a class="" href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_options">$options</a>
  268. <span>
  269. &nbsp;: <abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr>|<a href="classes/chillerlan-QRCode-QROptions.html"><abbr title="\chillerlan\QRCode\QROptions">QROptions</abbr></a> </span>
  270. </dt>
  271. <dd>the options instance</dd>
  272. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  273. <a class="" href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_scale">$scale</a>
  274. <span>
  275. &nbsp;: int </span>
  276. </dt>
  277. </dl>
  278. <h4 id="toc-methods">
  279. Methods
  280. <a href="classes/chillerlan-QRCode-Output-QRMarkupSVG.html#toc-methods" class="headerlink"><i class="fas fa-link"></i></a>
  281. </h4>
  282. <dl class="phpdocumentor-table-of-contents">
  283. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  284. <a class="" href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method___construct">__construct()</a>
  285. <span>
  286. &nbsp;: mixed </span>
  287. </dt>
  288. <dd>QROutputAbstract constructor.</dd>
  289. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  290. <a class="" href="classes/chillerlan-QRCode-Output-QRMarkup.html#method_dump">dump()</a>
  291. <span>
  292. &nbsp;: string </span>
  293. </dt>
  294. <dd>Generates the output, optionally dumps it to a file, and returns it</dd>
  295. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  296. <a class="" href="classes/chillerlan-QRCode-Output-QRMarkupSVG.html#method_moduleValueIsValid">moduleValueIsValid()</a>
  297. <span>
  298. &nbsp;: bool </span>
  299. </dt>
  300. <dd>Determines whether the given value is valid</dd>
  301. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  302. <a class="" href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_collectModules">collectModules()</a>
  303. <span>
  304. &nbsp;: array&lt;int, mixed&gt; </span>
  305. </dt>
  306. <dd>collects the modules per QRMatrix::M_* type, runs a transform method on each module and
  307. returns an array with the transformed modules.</dd>
  308. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  309. <a class="" href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_copyVars">copyVars()</a>
  310. <span>
  311. &nbsp;: void </span>
  312. </dt>
  313. <dd>Creates copies of several QROptions values to avoid calling the magic getters/property hooks
  314. in long loops for a significant performance increase.</dd>
  315. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  316. <a class="" href="classes/chillerlan-QRCode-Output-QRMarkupSVG.html#method_createMarkup">createMarkup()</a>
  317. <span>
  318. &nbsp;: string </span>
  319. </dt>
  320. <dd>returns the fully parsed and rendered markup string for the given input</dd>
  321. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  322. <a class="" href="classes/chillerlan-QRCode-Output-QRMarkupSVG.html#method_getCssClass">getCssClass()</a>
  323. <span>
  324. &nbsp;: string </span>
  325. </dt>
  326. <dd>returns a string with all css classes for the current element</dd>
  327. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  328. <a class="" href="classes/chillerlan-QRCode-Output-CssColorModuleValueTrait.html#method_getDefaultModuleValue">getDefaultModuleValue()</a>
  329. <span>
  330. &nbsp;: string </span>
  331. </dt>
  332. <dd>implements \chillerlan\QRCode\Output\QROutputAbstract::getDefaultModuleValue()</dd>
  333. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  334. <a class="" href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_getModuleValue">getModuleValue()</a>
  335. <span>
  336. &nbsp;: mixed </span>
  337. </dt>
  338. <dd>Returns the prepared value for the given $M_TYPE</dd>
  339. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  340. <a class="" href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_getModuleValueAt">getModuleValueAt()</a>
  341. <span>
  342. &nbsp;: mixed </span>
  343. </dt>
  344. <dd>Returns the prepared module value at the given coordinate [$x, $y] (convenience)</dd>
  345. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  346. <a class="" href="classes/chillerlan-QRCode-Output-QRMarkupSVG.html#method_getOutputDimensions">getOutputDimensions()</a>
  347. <span>
  348. &nbsp;: array&lt;string|int, int&gt; </span>
  349. </dt>
  350. <dd>Returns a 2 element array with the current output width and height</dd>
  351. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  352. <a class="" href="classes/chillerlan-QRCode-Output-QRMarkupSVG.html#method_getViewBox">getViewBox()</a>
  353. <span>
  354. &nbsp;: string </span>
  355. </dt>
  356. <dd>returns the value for the SVG viewBox attribute</dd>
  357. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  358. <a class="" href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_guessMimeType">guessMimeType()</a>
  359. <span>
  360. &nbsp;: string </span>
  361. </dt>
  362. <dd>Guesses the mime type from the given $imageData</dd>
  363. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  364. <a class="" href="classes/chillerlan-QRCode-Output-QRMarkupSVG.html#method_header">header()</a>
  365. <span>
  366. &nbsp;: string </span>
  367. </dt>
  368. <dd>returns the &lt;svg&gt; header with the given options parsed</dd>
  369. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  370. <a class="" href="classes/chillerlan-QRCode-Output-QRMarkupSVG.html#method_moduleTransform">moduleTransform()</a>
  371. <span>
  372. &nbsp;: string|null </span>
  373. </dt>
  374. <dd>returns a path segment for a single module</dd>
  375. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  376. <a class="" href="classes/chillerlan-QRCode-Output-QRMarkupSVG.html#method_path">path()</a>
  377. <span>
  378. &nbsp;: string </span>
  379. </dt>
  380. <dd>renders and returns a single &lt;path&gt; element</dd>
  381. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  382. <a class="" href="classes/chillerlan-QRCode-Output-QRMarkupSVG.html#method_paths">paths()</a>
  383. <span>
  384. &nbsp;: string </span>
  385. </dt>
  386. <dd>returns one or more SVG &lt;path&gt; elements</dd>
  387. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  388. <a class="" href="classes/chillerlan-QRCode-Output-CssColorModuleValueTrait.html#method_prepareModuleValue">prepareModuleValue()</a>
  389. <span>
  390. &nbsp;: string </span>
  391. </dt>
  392. <dd>implements \chillerlan\QRCode\Output\QROutputAbstract::prepareModuleValue()</dd>
  393. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  394. <a class="" href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_saveToFile">saveToFile()</a>
  395. <span>
  396. &nbsp;: void </span>
  397. </dt>
  398. <dd>Saves the qr $data to a $file. If $file is null, nothing happens.</dd>
  399. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  400. <a class="" href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_setMatrixDimensions">setMatrixDimensions()</a>
  401. <span>
  402. &nbsp;: void </span>
  403. </dt>
  404. <dd>Sets/updates the matrix dimensions</dd>
  405. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  406. <a class="" href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_setModuleValues">setModuleValues()</a>
  407. <span>
  408. &nbsp;: void </span>
  409. </dt>
  410. <dd>Sets the initial module values</dd>
  411. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  412. <a class="" href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_toBase64DataURI">toBase64DataURI()</a>
  413. <span>
  414. &nbsp;: string </span>
  415. </dt>
  416. <dd>Returns a base64 data URI for the given string and mime type</dd>
  417. </dl>
  418. <section class="phpdocumentor-constants">
  419. <h3 class="phpdocumentor-elements__header" id="constants">
  420. Constants
  421. <a href="classes/chillerlan-QRCode-Output-QRMarkupSVG.html#constants" class="headerlink"><i class="fas fa-link"></i></a>
  422. </h3>
  423. <article class="phpdocumentor-element -constant -public ">
  424. <h4 class="phpdocumentor-element__name" id="constant_MIME_TYPE">
  425. MIME_TYPE
  426. <a href="classes/chillerlan-QRCode-Output-QRMarkupSVG.html#constant_MIME_TYPE" class="headerlink"><i class="fas fa-link"></i></a>
  427. </h4>
  428. <aside class="phpdocumentor-element-found-in">
  429. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QRMarkupSVG.php"><a href="files/src-output-qrmarkupsvg.html"><abbr title="src/Output/QRMarkupSVG.php">QRMarkupSVG.php</abbr></a></abbr>
  430. :
  431. <span class="phpdocumentor-element-found-in__line">29</span>
  432. </aside>
  433. <code class="phpdocumentor-signature phpdocumentor-code ">
  434. <span class="phpdocumentor-signature__visibility">public</span>
  435. <span class="phpdocumentor-signature__final">final</span> <span class="phpdocumentor-signature__type">mixed</span>
  436. <span class="phpdocumentor-signature__name">MIME_TYPE</span>
  437. = <span class="phpdocumentor-signature__default-value">&#039;image/svg+xml&#039;</span>
  438. </code>
  439. </article>
  440. </section>
  441. <section class="phpdocumentor-properties">
  442. <h3 class="phpdocumentor-elements__header" id="properties">
  443. Properties
  444. <a href="classes/chillerlan-QRCode-Output-QRMarkupSVG.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  445. </h3>
  446. <article
  447. class="
  448. phpdocumentor-element
  449. -property
  450. -protected
  451. "
  452. >
  453. <h4 class="phpdocumentor-element__name" id="property_circleDiameter">
  454. $circleDiameter
  455. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_circleDiameter" class="headerlink"><i class="fas fa-link"></i></a>
  456. <span class="phpdocumentor-element__modifiers">
  457. </span>
  458. </h4>
  459. <aside class="phpdocumentor-element-found-in">
  460. <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>
  461. :
  462. <span class="phpdocumentor-element-found-in__line">79</span>
  463. </aside>
  464. <code class="phpdocumentor-code phpdocumentor-signature ">
  465. <span class="phpdocumentor-signature__visibility">protected</span>
  466. <span class="phpdocumentor-signature__type">float</span>
  467. <span class="phpdocumentor-signature__name">$circleDiameter</span>
  468. </code>
  469. </article>
  470. <article
  471. class="
  472. phpdocumentor-element
  473. -property
  474. -protected
  475. "
  476. >
  477. <h4 class="phpdocumentor-element__name" id="property_circleRadius">
  478. $circleRadius
  479. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_circleRadius" class="headerlink"><i class="fas fa-link"></i></a>
  480. <span class="phpdocumentor-element__modifiers">
  481. </span>
  482. </h4>
  483. <aside class="phpdocumentor-element-found-in">
  484. <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>
  485. :
  486. <span class="phpdocumentor-element-found-in__line">78</span>
  487. </aside>
  488. <code class="phpdocumentor-code phpdocumentor-signature ">
  489. <span class="phpdocumentor-signature__visibility">protected</span>
  490. <span class="phpdocumentor-signature__type">float</span>
  491. <span class="phpdocumentor-signature__name">$circleRadius</span>
  492. </code>
  493. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  494. Tags
  495. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_circleRadius#tags" class="headerlink"><i class="fas fa-link"></i></a>
  496. </h5>
  497. <dl class="phpdocumentor-tag-list">
  498. <dt class="phpdocumentor-tag-list__entry">
  499. <span class="phpdocumentor-tag__name">see</span>
  500. </dt>
  501. <dd class="phpdocumentor-tag-list__definition">
  502. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\QROptions::$circleRadius">QROptions::$circleRadius</abbr></span>
  503. </dd>
  504. </dl>
  505. </article>
  506. <article
  507. class="
  508. phpdocumentor-element
  509. -property
  510. -protected
  511. "
  512. >
  513. <h4 class="phpdocumentor-element__name" id="property_connectPaths">
  514. $connectPaths
  515. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_connectPaths" class="headerlink"><i class="fas fa-link"></i></a>
  516. <span class="phpdocumentor-element__modifiers">
  517. </span>
  518. </h4>
  519. <aside class="phpdocumentor-element-found-in">
  520. <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>
  521. :
  522. <span class="phpdocumentor-element-found-in__line">70</span>
  523. </aside>
  524. <code class="phpdocumentor-code phpdocumentor-signature ">
  525. <span class="phpdocumentor-signature__visibility">protected</span>
  526. <span class="phpdocumentor-signature__type">bool</span>
  527. <span class="phpdocumentor-signature__name">$connectPaths</span>
  528. </code>
  529. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  530. Tags
  531. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_connectPaths#tags" class="headerlink"><i class="fas fa-link"></i></a>
  532. </h5>
  533. <dl class="phpdocumentor-tag-list">
  534. <dt class="phpdocumentor-tag-list__entry">
  535. <span class="phpdocumentor-tag__name">see</span>
  536. </dt>
  537. <dd class="phpdocumentor-tag-list__definition">
  538. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\QROptions::$connectPaths">QROptions::$connectPaths</abbr></span>
  539. </dd>
  540. </dl>
  541. </article>
  542. <article
  543. class="
  544. phpdocumentor-element
  545. -property
  546. -protected
  547. "
  548. >
  549. <h4 class="phpdocumentor-element__name" id="property_drawCircularModules">
  550. $drawCircularModules
  551. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_drawCircularModules" class="headerlink"><i class="fas fa-link"></i></a>
  552. <span class="phpdocumentor-element__modifiers">
  553. </span>
  554. </h4>
  555. <aside class="phpdocumentor-element-found-in">
  556. <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>
  557. :
  558. <span class="phpdocumentor-element-found-in__line">76</span>
  559. </aside>
  560. <code class="phpdocumentor-code phpdocumentor-signature ">
  561. <span class="phpdocumentor-signature__visibility">protected</span>
  562. <span class="phpdocumentor-signature__type">bool</span>
  563. <span class="phpdocumentor-signature__name">$drawCircularModules</span>
  564. </code>
  565. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  566. Tags
  567. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_drawCircularModules#tags" class="headerlink"><i class="fas fa-link"></i></a>
  568. </h5>
  569. <dl class="phpdocumentor-tag-list">
  570. <dt class="phpdocumentor-tag-list__entry">
  571. <span class="phpdocumentor-tag__name">see</span>
  572. </dt>
  573. <dd class="phpdocumentor-tag-list__definition">
  574. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\QROptions::$drawCircularModules">QROptions::$drawCircularModules</abbr></span>
  575. </dd>
  576. </dl>
  577. </article>
  578. <article
  579. class="
  580. phpdocumentor-element
  581. -property
  582. -protected
  583. "
  584. >
  585. <h4 class="phpdocumentor-element__name" id="property_drawLightModules">
  586. $drawLightModules
  587. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_drawLightModules" class="headerlink"><i class="fas fa-link"></i></a>
  588. <span class="phpdocumentor-element__modifiers">
  589. </span>
  590. </h4>
  591. <aside class="phpdocumentor-element-found-in">
  592. <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>
  593. :
  594. <span class="phpdocumentor-element-found-in__line">74</span>
  595. </aside>
  596. <code class="phpdocumentor-code phpdocumentor-signature ">
  597. <span class="phpdocumentor-signature__visibility">protected</span>
  598. <span class="phpdocumentor-signature__type">bool</span>
  599. <span class="phpdocumentor-signature__name">$drawLightModules</span>
  600. </code>
  601. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  602. Tags
  603. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_drawLightModules#tags" class="headerlink"><i class="fas fa-link"></i></a>
  604. </h5>
  605. <dl class="phpdocumentor-tag-list">
  606. <dt class="phpdocumentor-tag-list__entry">
  607. <span class="phpdocumentor-tag__name">see</span>
  608. </dt>
  609. <dd class="phpdocumentor-tag-list__definition">
  610. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\QROptions::$drawLightModules">QROptions::$drawLightModules</abbr></span>
  611. </dd>
  612. </dl>
  613. </article>
  614. <article
  615. class="
  616. phpdocumentor-element
  617. -property
  618. -protected
  619. "
  620. >
  621. <h4 class="phpdocumentor-element__name" id="property_eol">
  622. $eol
  623. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_eol" class="headerlink"><i class="fas fa-link"></i></a>
  624. <span class="phpdocumentor-element__modifiers">
  625. </span>
  626. </h4>
  627. <aside class="phpdocumentor-element-found-in">
  628. <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>
  629. :
  630. <span class="phpdocumentor-element-found-in__line">72</span>
  631. </aside>
  632. <code class="phpdocumentor-code phpdocumentor-signature ">
  633. <span class="phpdocumentor-signature__visibility">protected</span>
  634. <span class="phpdocumentor-signature__type">string</span>
  635. <span class="phpdocumentor-signature__name">$eol</span>
  636. </code>
  637. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  638. Tags
  639. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_eol#tags" class="headerlink"><i class="fas fa-link"></i></a>
  640. </h5>
  641. <dl class="phpdocumentor-tag-list">
  642. <dt class="phpdocumentor-tag-list__entry">
  643. <span class="phpdocumentor-tag__name">see</span>
  644. </dt>
  645. <dd class="phpdocumentor-tag-list__definition">
  646. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\QROptions::$eol">QROptions::$eol</abbr></span>
  647. </dd>
  648. </dl>
  649. </article>
  650. <article
  651. class="
  652. phpdocumentor-element
  653. -property
  654. -protected
  655. "
  656. >
  657. <h4 class="phpdocumentor-element__name" id="property_excludeFromConnect">
  658. $excludeFromConnect
  659. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_excludeFromConnect" class="headerlink"><i class="fas fa-link"></i></a>
  660. <span class="phpdocumentor-element__modifiers">
  661. </span>
  662. </h4>
  663. <aside class="phpdocumentor-element-found-in">
  664. <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>
  665. :
  666. <span class="phpdocumentor-element-found-in__line">61</span>
  667. </aside>
  668. <code class="phpdocumentor-code phpdocumentor-signature ">
  669. <span class="phpdocumentor-signature__visibility">protected</span>
  670. <span class="phpdocumentor-signature__type">array&lt;string|int, int&gt;</span>
  671. <span class="phpdocumentor-signature__name">$excludeFromConnect</span>
  672. </code>
  673. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  674. Tags
  675. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_excludeFromConnect#tags" class="headerlink"><i class="fas fa-link"></i></a>
  676. </h5>
  677. <dl class="phpdocumentor-tag-list">
  678. <dt class="phpdocumentor-tag-list__entry">
  679. <span class="phpdocumentor-tag__name">see</span>
  680. </dt>
  681. <dd class="phpdocumentor-tag-list__definition">
  682. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\QROptions::$excludeFromConnect">QROptions::$excludeFromConnect</abbr></span>
  683. </dd>
  684. </dl>
  685. </article>
  686. <article
  687. class="
  688. phpdocumentor-element
  689. -property
  690. -protected
  691. "
  692. >
  693. <h4 class="phpdocumentor-element__name" id="property_keepAsSquare">
  694. $keepAsSquare
  695. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_keepAsSquare" class="headerlink"><i class="fas fa-link"></i></a>
  696. <span class="phpdocumentor-element__modifiers">
  697. </span>
  698. </h4>
  699. <aside class="phpdocumentor-element-found-in">
  700. <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>
  701. :
  702. <span class="phpdocumentor-element-found-in__line">66</span>
  703. </aside>
  704. <code class="phpdocumentor-code phpdocumentor-signature ">
  705. <span class="phpdocumentor-signature__visibility">protected</span>
  706. <span class="phpdocumentor-signature__type">array&lt;string|int, int&gt;</span>
  707. <span class="phpdocumentor-signature__name">$keepAsSquare</span>
  708. </code>
  709. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  710. Tags
  711. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_keepAsSquare#tags" class="headerlink"><i class="fas fa-link"></i></a>
  712. </h5>
  713. <dl class="phpdocumentor-tag-list">
  714. <dt class="phpdocumentor-tag-list__entry">
  715. <span class="phpdocumentor-tag__name">see</span>
  716. </dt>
  717. <dd class="phpdocumentor-tag-list__definition">
  718. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\QROptions::$keepAsSquare">QROptions::$keepAsSquare</abbr></span>
  719. </dd>
  720. </dl>
  721. </article>
  722. <article
  723. class="
  724. phpdocumentor-element
  725. -property
  726. -protected
  727. "
  728. >
  729. <h4 class="phpdocumentor-element__name" id="property_length">
  730. $length
  731. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_length" class="headerlink"><i class="fas fa-link"></i></a>
  732. <span class="phpdocumentor-element__modifiers">
  733. </span>
  734. </h4>
  735. <aside class="phpdocumentor-element-found-in">
  736. <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>
  737. :
  738. <span class="phpdocumentor-element-found-in__line">38</span>
  739. </aside>
  740. <p class="phpdocumentor-summary">the side length of the QR image (modules * scale)</p>
  741. <code class="phpdocumentor-code phpdocumentor-signature ">
  742. <span class="phpdocumentor-signature__visibility">protected</span>
  743. <span class="phpdocumentor-signature__type">int</span>
  744. <span class="phpdocumentor-signature__name">$length</span>
  745. </code>
  746. </article>
  747. <article
  748. class="
  749. phpdocumentor-element
  750. -property
  751. -protected
  752. "
  753. >
  754. <h4 class="phpdocumentor-element__name" id="property_matrix">
  755. $matrix
  756. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_matrix" class="headerlink"><i class="fas fa-link"></i></a>
  757. <span class="phpdocumentor-element__modifiers">
  758. </span>
  759. </h4>
  760. <aside class="phpdocumentor-element-found-in">
  761. <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>
  762. :
  763. <span class="phpdocumentor-element-found-in__line">50</span>
  764. </aside>
  765. <p class="phpdocumentor-summary">the (filled) data matrix object</p>
  766. <code class="phpdocumentor-code phpdocumentor-signature ">
  767. <span class="phpdocumentor-signature__visibility">protected</span>
  768. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a></span>
  769. <span class="phpdocumentor-signature__name">$matrix</span>
  770. </code>
  771. </article>
  772. <article
  773. class="
  774. phpdocumentor-element
  775. -property
  776. -protected
  777. "
  778. >
  779. <h4 class="phpdocumentor-element__name" id="property_moduleCount">
  780. $moduleCount
  781. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_moduleCount" class="headerlink"><i class="fas fa-link"></i></a>
  782. <span class="phpdocumentor-element__modifiers">
  783. </span>
  784. </h4>
  785. <aside class="phpdocumentor-element-found-in">
  786. <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>
  787. :
  788. <span class="phpdocumentor-element-found-in__line">33</span>
  789. </aside>
  790. <p class="phpdocumentor-summary">the current size of the QR matrix</p>
  791. <code class="phpdocumentor-code phpdocumentor-signature ">
  792. <span class="phpdocumentor-signature__visibility">protected</span>
  793. <span class="phpdocumentor-signature__type">int</span>
  794. <span class="phpdocumentor-signature__name">$moduleCount</span>
  795. </code>
  796. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  797. Tags
  798. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_moduleCount#tags" class="headerlink"><i class="fas fa-link"></i></a>
  799. </h5>
  800. <dl class="phpdocumentor-tag-list">
  801. <dt class="phpdocumentor-tag-list__entry">
  802. <span class="phpdocumentor-tag__name">see</span>
  803. </dt>
  804. <dd class="phpdocumentor-tag-list__definition">
  805. <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>
  806. </dd>
  807. </dl>
  808. </article>
  809. <article
  810. class="
  811. phpdocumentor-element
  812. -property
  813. -protected
  814. "
  815. >
  816. <h4 class="phpdocumentor-element__name" id="property_moduleValues">
  817. $moduleValues
  818. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_moduleValues" class="headerlink"><i class="fas fa-link"></i></a>
  819. <span class="phpdocumentor-element__modifiers">
  820. </span>
  821. </h4>
  822. <aside class="phpdocumentor-element-found-in">
  823. <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>
  824. :
  825. <span class="phpdocumentor-element-found-in__line">45</span>
  826. </aside>
  827. <p class="phpdocumentor-summary">an (optional) array of color values for the several QR matrix parts</p>
  828. <code class="phpdocumentor-code phpdocumentor-signature ">
  829. <span class="phpdocumentor-signature__visibility">protected</span>
  830. <span class="phpdocumentor-signature__type">array&lt;string|int, mixed&gt;</span>
  831. <span class="phpdocumentor-signature__name">$moduleValues</span>
  832. </code>
  833. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  834. Tags
  835. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_moduleValues#tags" class="headerlink"><i class="fas fa-link"></i></a>
  836. </h5>
  837. <dl class="phpdocumentor-tag-list">
  838. <dt class="phpdocumentor-tag-list__entry">
  839. <span class="phpdocumentor-tag__name">phpstan-var</span>
  840. </dt>
  841. <dd class="phpdocumentor-tag-list__definition">
  842. <section class="phpdocumentor-description"><p>array&lt;int, mixed&gt;</p>
  843. </section>
  844. </dd>
  845. </dl>
  846. </article>
  847. <article
  848. class="
  849. phpdocumentor-element
  850. -property
  851. -protected
  852. "
  853. >
  854. <h4 class="phpdocumentor-element__name" id="property_options">
  855. $options
  856. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_options" class="headerlink"><i class="fas fa-link"></i></a>
  857. <span class="phpdocumentor-element__modifiers">
  858. </span>
  859. </h4>
  860. <aside class="phpdocumentor-element-found-in">
  861. <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>
  862. :
  863. <span class="phpdocumentor-element-found-in__line">55</span>
  864. </aside>
  865. <p class="phpdocumentor-summary">the options instance</p>
  866. <code class="phpdocumentor-code phpdocumentor-signature ">
  867. <span class="phpdocumentor-signature__visibility">protected</span>
  868. <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>
  869. <span class="phpdocumentor-signature__name">$options</span>
  870. </code>
  871. </article>
  872. <article
  873. class="
  874. phpdocumentor-element
  875. -property
  876. -protected
  877. "
  878. >
  879. <h4 class="phpdocumentor-element__name" id="property_scale">
  880. $scale
  881. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_scale" class="headerlink"><i class="fas fa-link"></i></a>
  882. <span class="phpdocumentor-element__modifiers">
  883. </span>
  884. </h4>
  885. <aside class="phpdocumentor-element-found-in">
  886. <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>
  887. :
  888. <span class="phpdocumentor-element-found-in__line">68</span>
  889. </aside>
  890. <code class="phpdocumentor-code phpdocumentor-signature ">
  891. <span class="phpdocumentor-signature__visibility">protected</span>
  892. <span class="phpdocumentor-signature__type">int</span>
  893. <span class="phpdocumentor-signature__name">$scale</span>
  894. </code>
  895. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  896. Tags
  897. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_scale#tags" class="headerlink"><i class="fas fa-link"></i></a>
  898. </h5>
  899. <dl class="phpdocumentor-tag-list">
  900. <dt class="phpdocumentor-tag-list__entry">
  901. <span class="phpdocumentor-tag__name">see</span>
  902. </dt>
  903. <dd class="phpdocumentor-tag-list__definition">
  904. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\QROptions::$scale">QROptions::$scale</abbr></span>
  905. </dd>
  906. </dl>
  907. </article>
  908. </section>
  909. <section class="phpdocumentor-methods">
  910. <h3 class="phpdocumentor-elements__header" id="methods">
  911. Methods
  912. <a href="classes/chillerlan-QRCode-Output-QRMarkupSVG.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  913. </h3>
  914. <article
  915. class="phpdocumentor-element
  916. -method
  917. -public
  918. "
  919. >
  920. <h4 class="phpdocumentor-element__name" id="method___construct">
  921. __construct()
  922. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method___construct" class="headerlink"><i class="fas fa-link"></i></a>
  923. </h4>
  924. <aside class="phpdocumentor-element-found-in">
  925. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QROutputAbstract.php"><a href="files/src-output-qroutputabstract.html"><abbr title="src/Output/QROutputAbstract.php">QROutputAbstract.php</abbr></a></abbr>
  926. :
  927. <span class="phpdocumentor-element-found-in__line">84</span>
  928. </aside>
  929. <p class="phpdocumentor-summary">QROutputAbstract constructor.</p>
  930. <code class="phpdocumentor-code phpdocumentor-signature ">
  931. <span class="phpdocumentor-signature__visibility">public</span>
  932. <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>|iterable&lt;string|int, mixed&gt;&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>
  933. <div class="phpdocumentor-label-line">
  934. </div>
  935. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  936. <dl class="phpdocumentor-argument-list">
  937. <dt class="phpdocumentor-argument-list__entry">
  938. <span class="phpdocumentor-signature__argument__name">$options</span>
  939. : <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>|iterable&lt;string|int, mixed&gt;</span>
  940. </dt>
  941. <dd class="phpdocumentor-argument-list__definition">
  942. </dd>
  943. <dt class="phpdocumentor-argument-list__entry">
  944. <span class="phpdocumentor-signature__argument__name">$matrix</span>
  945. : <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>
  946. </dt>
  947. <dd class="phpdocumentor-argument-list__definition">
  948. </dd>
  949. </dl>
  950. </article>
  951. <article
  952. class="phpdocumentor-element
  953. -method
  954. -public
  955. "
  956. >
  957. <h4 class="phpdocumentor-element__name" id="method_dump">
  958. dump()
  959. <a href="classes/chillerlan-QRCode-Output-QRMarkup.html#method_dump" class="headerlink"><i class="fas fa-link"></i></a>
  960. </h4>
  961. <aside class="phpdocumentor-element-found-in">
  962. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QRMarkup.php"><a href="files/src-output-qrmarkup.html"><abbr title="src/Output/QRMarkup.php">QRMarkup.php</abbr></a></abbr>
  963. :
  964. <span class="phpdocumentor-element-found-in__line">20</span>
  965. </aside>
  966. <p class="phpdocumentor-summary">Generates the output, optionally dumps it to a file, and returns it</p>
  967. <code class="phpdocumentor-code phpdocumentor-signature ">
  968. <span class="phpdocumentor-signature__visibility">public</span>
  969. <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>
  970. <div class="phpdocumentor-label-line">
  971. </div>
  972. <section class="phpdocumentor-description"><p>please note that the value of QROptions::$cachefile is already evaluated at this point.
  973. if the output module is invoked manually, it has no effect at all.
  974. you need to supply the $file parameter here in that case (or handle the option value in your custom output module).</p>
  975. </section>
  976. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  977. <dl class="phpdocumentor-argument-list">
  978. <dt class="phpdocumentor-argument-list__entry">
  979. <span class="phpdocumentor-signature__argument__name">$file</span>
  980. : <span class="phpdocumentor-signature__argument__return-type">string|null</span>
  981. = <span class="phpdocumentor-signature__argument__default-value">null</span> </dt>
  982. <dd class="phpdocumentor-argument-list__definition">
  983. </dd>
  984. </dl>
  985. <section>
  986. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  987. <span class="phpdocumentor-signature__response_type">string</span>
  988. </section>
  989. </article>
  990. <article
  991. class="phpdocumentor-element
  992. -method
  993. -public
  994. -static "
  995. >
  996. <h4 class="phpdocumentor-element__name" id="method_moduleValueIsValid">
  997. moduleValueIsValid()
  998. <a href="classes/chillerlan-QRCode-Output-QRMarkupSVG.html#method_moduleValueIsValid" class="headerlink"><i class="fas fa-link"></i></a>
  999. </h4>
  1000. <aside class="phpdocumentor-element-found-in">
  1001. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QRMarkupSVG.php"><a href="files/src-output-qrmarkupsvg.html"><abbr title="src/Output/QRMarkupSVG.php">QRMarkupSVG.php</abbr></a></abbr>
  1002. :
  1003. <span class="phpdocumentor-element-found-in__line">37</span>
  1004. </aside>
  1005. <p class="phpdocumentor-summary">Determines whether the given value is valid</p>
  1006. <code class="phpdocumentor-code phpdocumentor-signature ">
  1007. <span class="phpdocumentor-signature__visibility">public</span>
  1008. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">moduleValueIsValid</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$value</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>
  1009. <div class="phpdocumentor-label-line">
  1010. </div>
  1011. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1012. <dl class="phpdocumentor-argument-list">
  1013. <dt class="phpdocumentor-argument-list__entry">
  1014. <span class="phpdocumentor-signature__argument__name">$value</span>
  1015. : <span class="phpdocumentor-signature__argument__return-type">mixed</span>
  1016. </dt>
  1017. <dd class="phpdocumentor-argument-list__definition">
  1018. </dd>
  1019. </dl>
  1020. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  1021. Tags
  1022. <a href="classes/chillerlan-QRCode-Output-QRMarkupSVG.html#method_moduleValueIsValid#tags" class="headerlink"><i class="fas fa-link"></i></a>
  1023. </h5>
  1024. <dl class="phpdocumentor-tag-list">
  1025. <dt class="phpdocumentor-tag-list__entry">
  1026. <span class="phpdocumentor-tag__name">todo:</span>
  1027. </dt>
  1028. <dd class="phpdocumentor-tag-list__definition">
  1029. <section class="phpdocumentor-description"><p>XSS proof</p>
  1030. </section>
  1031. </dd>
  1032. <dt class="phpdocumentor-tag-list__entry">
  1033. <span class="phpdocumentor-tag__name">see</span>
  1034. </dt>
  1035. <dd class="phpdocumentor-tag-list__definition">
  1036. <span class="phpdocumentor-tag-link"><a href="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill">https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill</a></span>
  1037. </dd>
  1038. <dt class="phpdocumentor-tag-list__entry">
  1039. <span class="phpdocumentor-tag__name">inheritDoc</span>
  1040. </dt>
  1041. <dd class="phpdocumentor-tag-list__definition">
  1042. </dd>
  1043. </dl>
  1044. <section>
  1045. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1046. <span class="phpdocumentor-signature__response_type">bool</span>
  1047. </section>
  1048. </article>
  1049. <article
  1050. class="phpdocumentor-element
  1051. -method
  1052. -protected
  1053. "
  1054. >
  1055. <h4 class="phpdocumentor-element__name" id="method_collectModules">
  1056. collectModules()
  1057. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_collectModules" class="headerlink"><i class="fas fa-link"></i></a>
  1058. </h4>
  1059. <aside class="phpdocumentor-element-found-in">
  1060. <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>
  1061. :
  1062. <span class="phpdocumentor-element-found-in__line">267</span>
  1063. </aside>
  1064. <p class="phpdocumentor-summary">collects the modules per QRMatrix::M_* type, runs a transform method on each module and
  1065. returns an array with the transformed modules.</p>
  1066. <code class="phpdocumentor-code phpdocumentor-signature ">
  1067. <span class="phpdocumentor-signature__visibility">protected</span>
  1068. <span class="phpdocumentor-signature__name">collectModules</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;int, mixed&gt;</span></code>
  1069. <div class="phpdocumentor-label-line">
  1070. </div>
  1071. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  1072. Tags
  1073. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_collectModules#tags" class="headerlink"><i class="fas fa-link"></i></a>
  1074. </h5>
  1075. <dl class="phpdocumentor-tag-list">
  1076. <dt class="phpdocumentor-tag-list__entry">
  1077. <span class="phpdocumentor-tag__name">see</span>
  1078. </dt>
  1079. <dd class="phpdocumentor-tag-list__definition">
  1080. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_moduleTransform"><abbr title="\chillerlan\QRCode\Output\QROutputAbstract::moduleTransform()">QROutputAbstract::moduleTransform()</abbr></a></span>
  1081. </dd>
  1082. </dl>
  1083. <section>
  1084. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1085. <span class="phpdocumentor-signature__response_type">array&lt;int, mixed&gt;</span>
  1086. </section>
  1087. </article>
  1088. <article
  1089. class="phpdocumentor-element
  1090. -method
  1091. -protected
  1092. "
  1093. >
  1094. <h4 class="phpdocumentor-element__name" id="method_copyVars">
  1095. copyVars()
  1096. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_copyVars" class="headerlink"><i class="fas fa-link"></i></a>
  1097. </h4>
  1098. <aside class="phpdocumentor-element-found-in">
  1099. <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>
  1100. :
  1101. <span class="phpdocumentor-element-found-in__line">108</span>
  1102. </aside>
  1103. <p class="phpdocumentor-summary">Creates copies of several QROptions values to avoid calling the magic getters/property hooks
  1104. in long loops for a significant performance increase.</p>
  1105. <code class="phpdocumentor-code phpdocumentor-signature ">
  1106. <span class="phpdocumentor-signature__visibility">protected</span>
  1107. <span class="phpdocumentor-signature__name">copyVars</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  1108. <div class="phpdocumentor-label-line">
  1109. </div>
  1110. <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>
  1111. </section>
  1112. </article>
  1113. <article
  1114. class="phpdocumentor-element
  1115. -method
  1116. -protected
  1117. "
  1118. >
  1119. <h4 class="phpdocumentor-element__name" id="method_createMarkup">
  1120. createMarkup()
  1121. <a href="classes/chillerlan-QRCode-Output-QRMarkupSVG.html#method_createMarkup" class="headerlink"><i class="fas fa-link"></i></a>
  1122. </h4>
  1123. <aside class="phpdocumentor-element-found-in">
  1124. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QRMarkupSVG.php"><a href="files/src-output-qrmarkupsvg.html"><abbr title="src/Output/QRMarkupSVG.php">QRMarkupSVG.php</abbr></a></abbr>
  1125. :
  1126. <span class="phpdocumentor-element-found-in__line">66</span>
  1127. </aside>
  1128. <p class="phpdocumentor-summary">returns the fully parsed and rendered markup string for the given input</p>
  1129. <code class="phpdocumentor-code phpdocumentor-signature ">
  1130. <span class="phpdocumentor-signature__visibility">protected</span>
  1131. <span class="phpdocumentor-signature__name">createMarkup</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">bool&nbsp;</span><span class="phpdocumentor-signature__argument__name">$saveToFile</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
  1132. <div class="phpdocumentor-label-line">
  1133. </div>
  1134. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1135. <dl class="phpdocumentor-argument-list">
  1136. <dt class="phpdocumentor-argument-list__entry">
  1137. <span class="phpdocumentor-signature__argument__name">$saveToFile</span>
  1138. : <span class="phpdocumentor-signature__argument__return-type">bool</span>
  1139. </dt>
  1140. <dd class="phpdocumentor-argument-list__definition">
  1141. </dd>
  1142. </dl>
  1143. <section>
  1144. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1145. <span class="phpdocumentor-signature__response_type">string</span>
  1146. </section>
  1147. </article>
  1148. <article
  1149. class="phpdocumentor-element
  1150. -method
  1151. -protected
  1152. "
  1153. >
  1154. <h4 class="phpdocumentor-element__name" id="method_getCssClass">
  1155. getCssClass()
  1156. <a href="classes/chillerlan-QRCode-Output-QRMarkupSVG.html#method_getCssClass" class="headerlink"><i class="fas fa-link"></i></a>
  1157. </h4>
  1158. <aside class="phpdocumentor-element-found-in">
  1159. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QRMarkupSVG.php"><a href="files/src-output-qrmarkupsvg.html"><abbr title="src/Output/QRMarkupSVG.php">QRMarkupSVG.php</abbr></a></abbr>
  1160. :
  1161. <span class="phpdocumentor-element-found-in__line">58</span>
  1162. </aside>
  1163. <p class="phpdocumentor-summary">returns a string with all css classes for the current element</p>
  1164. <code class="phpdocumentor-code phpdocumentor-signature ">
  1165. <span class="phpdocumentor-signature__visibility">protected</span>
  1166. <span class="phpdocumentor-signature__name">getCssClass</span><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">$M_TYPE</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">0</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
  1167. <div class="phpdocumentor-label-line">
  1168. </div>
  1169. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1170. <dl class="phpdocumentor-argument-list">
  1171. <dt class="phpdocumentor-argument-list__entry">
  1172. <span class="phpdocumentor-signature__argument__name">$M_TYPE</span>
  1173. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1174. = <span class="phpdocumentor-signature__argument__default-value">0</span> </dt>
  1175. <dd class="phpdocumentor-argument-list__definition">
  1176. </dd>
  1177. </dl>
  1178. <section>
  1179. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1180. <span class="phpdocumentor-signature__response_type">string</span>
  1181. </section>
  1182. </article>
  1183. <article
  1184. class="phpdocumentor-element
  1185. -method
  1186. -protected
  1187. "
  1188. >
  1189. <h4 class="phpdocumentor-element__name" id="method_getDefaultModuleValue">
  1190. getDefaultModuleValue()
  1191. <a href="classes/chillerlan-QRCode-Output-CssColorModuleValueTrait.html#method_getDefaultModuleValue" class="headerlink"><i class="fas fa-link"></i></a>
  1192. </h4>
  1193. <aside class="phpdocumentor-element-found-in">
  1194. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/CssColorModuleValueTrait.php"><a href="files/src-output-csscolormodulevaluetrait.html"><abbr title="src/Output/CssColorModuleValueTrait.php">CssColorModuleValueTrait.php</abbr></a></abbr>
  1195. :
  1196. <span class="phpdocumentor-element-found-in__line">75</span>
  1197. </aside>
  1198. <p class="phpdocumentor-summary">implements \chillerlan\QRCode\Output\QROutputAbstract::getDefaultModuleValue()</p>
  1199. <code class="phpdocumentor-code phpdocumentor-signature ">
  1200. <span class="phpdocumentor-signature__visibility">protected</span>
  1201. <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>
  1202. <div class="phpdocumentor-label-line">
  1203. </div>
  1204. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1205. <dl class="phpdocumentor-argument-list">
  1206. <dt class="phpdocumentor-argument-list__entry">
  1207. <span class="phpdocumentor-signature__argument__name">$isDark</span>
  1208. : <span class="phpdocumentor-signature__argument__return-type">bool</span>
  1209. </dt>
  1210. <dd class="phpdocumentor-argument-list__definition">
  1211. </dd>
  1212. </dl>
  1213. <section>
  1214. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1215. <span class="phpdocumentor-signature__response_type">string</span>
  1216. </section>
  1217. </article>
  1218. <article
  1219. class="phpdocumentor-element
  1220. -method
  1221. -protected
  1222. "
  1223. >
  1224. <h4 class="phpdocumentor-element__name" id="method_getModuleValue">
  1225. getModuleValue()
  1226. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_getModuleValue" class="headerlink"><i class="fas fa-link"></i></a>
  1227. </h4>
  1228. <aside class="phpdocumentor-element-found-in">
  1229. <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>
  1230. :
  1231. <span class="phpdocumentor-element-found-in__line">184</span>
  1232. </aside>
  1233. <p class="phpdocumentor-summary">Returns the prepared value for the given $M_TYPE</p>
  1234. <code class="phpdocumentor-code phpdocumentor-signature ">
  1235. <span class="phpdocumentor-signature__visibility">protected</span>
  1236. <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>
  1237. <div class="phpdocumentor-label-line">
  1238. </div>
  1239. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1240. <dl class="phpdocumentor-argument-list">
  1241. <dt class="phpdocumentor-argument-list__entry">
  1242. <span class="phpdocumentor-signature__argument__name">$M_TYPE</span>
  1243. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1244. </dt>
  1245. <dd class="phpdocumentor-argument-list__definition">
  1246. </dd>
  1247. </dl>
  1248. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  1249. Tags
  1250. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_getModuleValue#tags" class="headerlink"><i class="fas fa-link"></i></a>
  1251. </h5>
  1252. <dl class="phpdocumentor-tag-list">
  1253. <dt class="phpdocumentor-tag-list__entry">
  1254. <span class="phpdocumentor-tag__name">throws</span>
  1255. </dt>
  1256. <dd class="phpdocumentor-tag-list__definition">
  1257. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Output-QRCodeOutputException.html"><abbr title="\chillerlan\QRCode\Output\QRCodeOutputException">QRCodeOutputException</abbr></a></span>
  1258. <section class="phpdocumentor-description"><p>if $moduleValues[$M_TYPE] doesn't exist</p>
  1259. </section>
  1260. </dd>
  1261. </dl>
  1262. </article>
  1263. <article
  1264. class="phpdocumentor-element
  1265. -method
  1266. -protected
  1267. "
  1268. >
  1269. <h4 class="phpdocumentor-element__name" id="method_getModuleValueAt">
  1270. getModuleValueAt()
  1271. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_getModuleValueAt" class="headerlink"><i class="fas fa-link"></i></a>
  1272. </h4>
  1273. <aside class="phpdocumentor-element-found-in">
  1274. <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>
  1275. :
  1276. <span class="phpdocumentor-element-found-in__line">196</span>
  1277. </aside>
  1278. <p class="phpdocumentor-summary">Returns the prepared module value at the given coordinate [$x, $y] (convenience)</p>
  1279. <code class="phpdocumentor-code phpdocumentor-signature ">
  1280. <span class="phpdocumentor-signature__visibility">protected</span>
  1281. <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>
  1282. <div class="phpdocumentor-label-line">
  1283. </div>
  1284. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1285. <dl class="phpdocumentor-argument-list">
  1286. <dt class="phpdocumentor-argument-list__entry">
  1287. <span class="phpdocumentor-signature__argument__name">$x</span>
  1288. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1289. </dt>
  1290. <dd class="phpdocumentor-argument-list__definition">
  1291. </dd>
  1292. <dt class="phpdocumentor-argument-list__entry">
  1293. <span class="phpdocumentor-signature__argument__name">$y</span>
  1294. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1295. </dt>
  1296. <dd class="phpdocumentor-argument-list__definition">
  1297. </dd>
  1298. </dl>
  1299. </article>
  1300. <article
  1301. class="phpdocumentor-element
  1302. -method
  1303. -protected
  1304. "
  1305. >
  1306. <h4 class="phpdocumentor-element__name" id="method_getOutputDimensions">
  1307. getOutputDimensions()
  1308. <a href="classes/chillerlan-QRCode-Output-QRMarkupSVG.html#method_getOutputDimensions" class="headerlink"><i class="fas fa-link"></i></a>
  1309. </h4>
  1310. <aside class="phpdocumentor-element-found-in">
  1311. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QRMarkupSVG.php"><a href="files/src-output-qrmarkupsvg.html"><abbr title="src/Output/QRMarkupSVG.php">QRMarkupSVG.php</abbr></a></abbr>
  1312. :
  1313. <span class="phpdocumentor-element-found-in__line">54</span>
  1314. </aside>
  1315. <p class="phpdocumentor-summary">Returns a 2 element array with the current output width and height</p>
  1316. <code class="phpdocumentor-code phpdocumentor-signature ">
  1317. <span class="phpdocumentor-signature__visibility">protected</span>
  1318. <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>
  1319. <div class="phpdocumentor-label-line">
  1320. </div>
  1321. <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>
  1322. </section>
  1323. <section>
  1324. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1325. <span class="phpdocumentor-signature__response_type">array&lt;string|int, int&gt;</span>
  1326. </section>
  1327. </article>
  1328. <article
  1329. class="phpdocumentor-element
  1330. -method
  1331. -protected
  1332. "
  1333. >
  1334. <h4 class="phpdocumentor-element__name" id="method_getViewBox">
  1335. getViewBox()
  1336. <a href="classes/chillerlan-QRCode-Output-QRMarkupSVG.html#method_getViewBox" class="headerlink"><i class="fas fa-link"></i></a>
  1337. </h4>
  1338. <aside class="phpdocumentor-element-found-in">
  1339. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QRMarkupSVG.php"><a href="files/src-output-qrmarkupsvg.html"><abbr title="src/Output/QRMarkupSVG.php">QRMarkupSVG.php</abbr></a></abbr>
  1340. :
  1341. <span class="phpdocumentor-element-found-in__line">87</span>
  1342. </aside>
  1343. <p class="phpdocumentor-summary">returns the value for the SVG viewBox attribute</p>
  1344. <code class="phpdocumentor-code phpdocumentor-signature ">
  1345. <span class="phpdocumentor-signature__visibility">protected</span>
  1346. <span class="phpdocumentor-signature__name">getViewBox</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
  1347. <div class="phpdocumentor-label-line">
  1348. </div>
  1349. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  1350. Tags
  1351. <a href="classes/chillerlan-QRCode-Output-QRMarkupSVG.html#method_getViewBox#tags" class="headerlink"><i class="fas fa-link"></i></a>
  1352. </h5>
  1353. <dl class="phpdocumentor-tag-list">
  1354. <dt class="phpdocumentor-tag-list__entry">
  1355. <span class="phpdocumentor-tag__name">see</span>
  1356. </dt>
  1357. <dd class="phpdocumentor-tag-list__definition">
  1358. <span class="phpdocumentor-tag-link"><a href="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/viewBox">https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/viewBox</a></span>
  1359. </dd>
  1360. <dt class="phpdocumentor-tag-list__entry">
  1361. <span class="phpdocumentor-tag__name">see</span>
  1362. </dt>
  1363. <dd class="phpdocumentor-tag-list__definition">
  1364. <span class="phpdocumentor-tag-link"><a href="https://css-tricks.com/scale-svg/#article-header-id-3">https://css-tricks.com/scale-svg/#article-header-id-3</a></span>
  1365. </dd>
  1366. </dl>
  1367. <section>
  1368. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1369. <span class="phpdocumentor-signature__response_type">string</span>
  1370. </section>
  1371. </article>
  1372. <article
  1373. class="phpdocumentor-element
  1374. -method
  1375. -protected
  1376. "
  1377. >
  1378. <h4 class="phpdocumentor-element__name" id="method_guessMimeType">
  1379. guessMimeType()
  1380. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_guessMimeType" class="headerlink"><i class="fas fa-link"></i></a>
  1381. </h4>
  1382. <aside class="phpdocumentor-element-found-in">
  1383. <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>
  1384. :
  1385. <span class="phpdocumentor-element-found-in__line">221</span>
  1386. </aside>
  1387. <p class="phpdocumentor-summary">Guesses the mime type from the given $imageData</p>
  1388. <code class="phpdocumentor-code phpdocumentor-signature ">
  1389. <span class="phpdocumentor-signature__visibility">protected</span>
  1390. <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>
  1391. <div class="phpdocumentor-label-line">
  1392. </div>
  1393. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1394. <dl class="phpdocumentor-argument-list">
  1395. <dt class="phpdocumentor-argument-list__entry">
  1396. <span class="phpdocumentor-signature__argument__name">$imageData</span>
  1397. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  1398. </dt>
  1399. <dd class="phpdocumentor-argument-list__definition">
  1400. </dd>
  1401. </dl>
  1402. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  1403. Tags
  1404. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_guessMimeType#tags" class="headerlink"><i class="fas fa-link"></i></a>
  1405. </h5>
  1406. <dl class="phpdocumentor-tag-list">
  1407. <dt class="phpdocumentor-tag-list__entry">
  1408. <span class="phpdocumentor-tag__name">throws</span>
  1409. </dt>
  1410. <dd class="phpdocumentor-tag-list__definition">
  1411. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Output-QRCodeOutputException.html"><abbr title="\chillerlan\QRCode\Output\QRCodeOutputException">QRCodeOutputException</abbr></a></span>
  1412. </dd>
  1413. </dl>
  1414. <section>
  1415. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1416. <span class="phpdocumentor-signature__response_type">string</span>
  1417. </section>
  1418. </article>
  1419. <article
  1420. class="phpdocumentor-element
  1421. -method
  1422. -protected
  1423. "
  1424. >
  1425. <h4 class="phpdocumentor-element__name" id="method_header">
  1426. header()
  1427. <a href="classes/chillerlan-QRCode-Output-QRMarkupSVG.html#method_header" class="headerlink"><i class="fas fa-link"></i></a>
  1428. </h4>
  1429. <aside class="phpdocumentor-element-found-in">
  1430. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QRMarkupSVG.php"><a href="files/src-output-qrmarkupsvg.html"><abbr title="src/Output/QRMarkupSVG.php">QRMarkupSVG.php</abbr></a></abbr>
  1431. :
  1432. <span class="phpdocumentor-element-found-in__line">98</span>
  1433. </aside>
  1434. <p class="phpdocumentor-summary">returns the &lt;svg&gt; header with the given options parsed</p>
  1435. <code class="phpdocumentor-code phpdocumentor-signature ">
  1436. <span class="phpdocumentor-signature__visibility">protected</span>
  1437. <span class="phpdocumentor-signature__name">header</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
  1438. <div class="phpdocumentor-label-line">
  1439. </div>
  1440. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  1441. Tags
  1442. <a href="classes/chillerlan-QRCode-Output-QRMarkupSVG.html#method_header#tags" class="headerlink"><i class="fas fa-link"></i></a>
  1443. </h5>
  1444. <dl class="phpdocumentor-tag-list">
  1445. <dt class="phpdocumentor-tag-list__entry">
  1446. <span class="phpdocumentor-tag__name">see</span>
  1447. </dt>
  1448. <dd class="phpdocumentor-tag-list__definition">
  1449. <span class="phpdocumentor-tag-link"><a href="https://developer.mozilla.org/en-US/docs/Web/SVG/Element/svg">https://developer.mozilla.org/en-US/docs/Web/SVG/Element/svg</a></span>
  1450. </dd>
  1451. </dl>
  1452. <section>
  1453. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1454. <span class="phpdocumentor-signature__response_type">string</span>
  1455. </section>
  1456. </article>
  1457. <article
  1458. class="phpdocumentor-element
  1459. -method
  1460. -protected
  1461. "
  1462. >
  1463. <h4 class="phpdocumentor-element__name" id="method_moduleTransform">
  1464. moduleTransform()
  1465. <a href="classes/chillerlan-QRCode-Output-QRMarkupSVG.html#method_moduleTransform" class="headerlink"><i class="fas fa-link"></i></a>
  1466. </h4>
  1467. <aside class="phpdocumentor-element-found-in">
  1468. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QRMarkupSVG.php"><a href="files/src-output-qrmarkupsvg.html"><abbr title="src/Output/QRMarkupSVG.php">QRMarkupSVG.php</abbr></a></abbr>
  1469. :
  1470. <span class="phpdocumentor-element-found-in__line">168</span>
  1471. </aside>
  1472. <p class="phpdocumentor-summary">returns a path segment for a single module</p>
  1473. <code class="phpdocumentor-code phpdocumentor-signature ">
  1474. <span class="phpdocumentor-signature__visibility">protected</span>
  1475. <span class="phpdocumentor-signature__name">moduleTransform</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 class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$M_TYPE</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">$M_TYPE_LAYER</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string|null</span></code>
  1476. <div class="phpdocumentor-label-line">
  1477. </div>
  1478. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1479. <dl class="phpdocumentor-argument-list">
  1480. <dt class="phpdocumentor-argument-list__entry">
  1481. <span class="phpdocumentor-signature__argument__name">$x</span>
  1482. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1483. </dt>
  1484. <dd class="phpdocumentor-argument-list__definition">
  1485. </dd>
  1486. <dt class="phpdocumentor-argument-list__entry">
  1487. <span class="phpdocumentor-signature__argument__name">$y</span>
  1488. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1489. </dt>
  1490. <dd class="phpdocumentor-argument-list__definition">
  1491. </dd>
  1492. <dt class="phpdocumentor-argument-list__entry">
  1493. <span class="phpdocumentor-signature__argument__name">$M_TYPE</span>
  1494. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1495. </dt>
  1496. <dd class="phpdocumentor-argument-list__definition">
  1497. </dd>
  1498. <dt class="phpdocumentor-argument-list__entry">
  1499. <span class="phpdocumentor-signature__argument__name">$M_TYPE_LAYER</span>
  1500. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1501. </dt>
  1502. <dd class="phpdocumentor-argument-list__definition">
  1503. </dd>
  1504. </dl>
  1505. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  1506. Tags
  1507. <a href="classes/chillerlan-QRCode-Output-QRMarkupSVG.html#method_moduleTransform#tags" class="headerlink"><i class="fas fa-link"></i></a>
  1508. </h5>
  1509. <dl class="phpdocumentor-tag-list">
  1510. <dt class="phpdocumentor-tag-list__entry">
  1511. <span class="phpdocumentor-tag__name">see</span>
  1512. </dt>
  1513. <dd class="phpdocumentor-tag-list__definition">
  1514. <span class="phpdocumentor-tag-link"><a href="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/d">https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/d</a></span>
  1515. </dd>
  1516. </dl>
  1517. <section>
  1518. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1519. <span class="phpdocumentor-signature__response_type">string|null</span>
  1520. </section>
  1521. </article>
  1522. <article
  1523. class="phpdocumentor-element
  1524. -method
  1525. -protected
  1526. "
  1527. >
  1528. <h4 class="phpdocumentor-element__name" id="method_path">
  1529. path()
  1530. <a href="classes/chillerlan-QRCode-Output-QRMarkupSVG.html#method_path" class="headerlink"><i class="fas fa-link"></i></a>
  1531. </h4>
  1532. <aside class="phpdocumentor-element-found-in">
  1533. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QRMarkupSVG.php"><a href="files/src-output-qrmarkupsvg.html"><abbr title="src/Output/QRMarkupSVG.php">QRMarkupSVG.php</abbr></a></abbr>
  1534. :
  1535. <span class="phpdocumentor-element-found-in__line">149</span>
  1536. </aside>
  1537. <p class="phpdocumentor-summary">renders and returns a single &lt;path&gt; element</p>
  1538. <code class="phpdocumentor-code phpdocumentor-signature ">
  1539. <span class="phpdocumentor-signature__visibility">protected</span>
  1540. <span class="phpdocumentor-signature__name">path</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$path</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">$M_TYPE</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
  1541. <div class="phpdocumentor-label-line">
  1542. </div>
  1543. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1544. <dl class="phpdocumentor-argument-list">
  1545. <dt class="phpdocumentor-argument-list__entry">
  1546. <span class="phpdocumentor-signature__argument__name">$path</span>
  1547. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  1548. </dt>
  1549. <dd class="phpdocumentor-argument-list__definition">
  1550. </dd>
  1551. <dt class="phpdocumentor-argument-list__entry">
  1552. <span class="phpdocumentor-signature__argument__name">$M_TYPE</span>
  1553. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1554. </dt>
  1555. <dd class="phpdocumentor-argument-list__definition">
  1556. </dd>
  1557. </dl>
  1558. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  1559. Tags
  1560. <a href="classes/chillerlan-QRCode-Output-QRMarkupSVG.html#method_path#tags" class="headerlink"><i class="fas fa-link"></i></a>
  1561. </h5>
  1562. <dl class="phpdocumentor-tag-list">
  1563. <dt class="phpdocumentor-tag-list__entry">
  1564. <span class="phpdocumentor-tag__name">see</span>
  1565. </dt>
  1566. <dd class="phpdocumentor-tag-list__definition">
  1567. <span class="phpdocumentor-tag-link"><a href="https://developer.mozilla.org/en-US/docs/Web/SVG/Element/path">https://developer.mozilla.org/en-US/docs/Web/SVG/Element/path</a></span>
  1568. </dd>
  1569. </dl>
  1570. <section>
  1571. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1572. <span class="phpdocumentor-signature__response_type">string</span>
  1573. </section>
  1574. </article>
  1575. <article
  1576. class="phpdocumentor-element
  1577. -method
  1578. -protected
  1579. "
  1580. >
  1581. <h4 class="phpdocumentor-element__name" id="method_paths">
  1582. paths()
  1583. <a href="classes/chillerlan-QRCode-Output-QRMarkupSVG.html#method_paths" class="headerlink"><i class="fas fa-link"></i></a>
  1584. </h4>
  1585. <aside class="phpdocumentor-element-found-in">
  1586. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QRMarkupSVG.php"><a href="files/src-output-qrmarkupsvg.html"><abbr title="src/Output/QRMarkupSVG.php">QRMarkupSVG.php</abbr></a></abbr>
  1587. :
  1588. <span class="phpdocumentor-element-found-in__line">118</span>
  1589. </aside>
  1590. <p class="phpdocumentor-summary">returns one or more SVG &lt;path&gt; elements</p>
  1591. <code class="phpdocumentor-code phpdocumentor-signature ">
  1592. <span class="phpdocumentor-signature__visibility">protected</span>
  1593. <span class="phpdocumentor-signature__name">paths</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
  1594. <div class="phpdocumentor-label-line">
  1595. </div>
  1596. <section>
  1597. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1598. <span class="phpdocumentor-signature__response_type">string</span>
  1599. </section>
  1600. </article>
  1601. <article
  1602. class="phpdocumentor-element
  1603. -method
  1604. -protected
  1605. "
  1606. >
  1607. <h4 class="phpdocumentor-element__name" id="method_prepareModuleValue">
  1608. prepareModuleValue()
  1609. <a href="classes/chillerlan-QRCode-Output-CssColorModuleValueTrait.html#method_prepareModuleValue" class="headerlink"><i class="fas fa-link"></i></a>
  1610. </h4>
  1611. <aside class="phpdocumentor-element-found-in">
  1612. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/CssColorModuleValueTrait.php"><a href="files/src-output-csscolormodulevaluetrait.html"><abbr title="src/Output/CssColorModuleValueTrait.php">CssColorModuleValueTrait.php</abbr></a></abbr>
  1613. :
  1614. <span class="phpdocumentor-element-found-in__line">68</span>
  1615. </aside>
  1616. <p class="phpdocumentor-summary">implements \chillerlan\QRCode\Output\QROutputAbstract::prepareModuleValue()</p>
  1617. <code class="phpdocumentor-code phpdocumentor-signature ">
  1618. <span class="phpdocumentor-signature__visibility">protected</span>
  1619. <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>
  1620. <div class="phpdocumentor-label-line">
  1621. </div>
  1622. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1623. <dl class="phpdocumentor-argument-list">
  1624. <dt class="phpdocumentor-argument-list__entry">
  1625. <span class="phpdocumentor-signature__argument__name">$value</span>
  1626. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  1627. </dt>
  1628. <dd class="phpdocumentor-argument-list__definition">
  1629. </dd>
  1630. </dl>
  1631. <section>
  1632. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1633. <span class="phpdocumentor-signature__response_type">string</span>
  1634. </section>
  1635. </article>
  1636. <article
  1637. class="phpdocumentor-element
  1638. -method
  1639. -protected
  1640. "
  1641. >
  1642. <h4 class="phpdocumentor-element__name" id="method_saveToFile">
  1643. saveToFile()
  1644. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_saveToFile" class="headerlink"><i class="fas fa-link"></i></a>
  1645. </h4>
  1646. <aside class="phpdocumentor-element-found-in">
  1647. <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>
  1648. :
  1649. <span class="phpdocumentor-element-found-in__line">244</span>
  1650. </aside>
  1651. <p class="phpdocumentor-summary">Saves the qr $data to a $file. If $file is null, nothing happens.</p>
  1652. <code class="phpdocumentor-code phpdocumentor-signature ">
  1653. <span class="phpdocumentor-signature__visibility">protected</span>
  1654. <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>
  1655. <div class="phpdocumentor-label-line">
  1656. </div>
  1657. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1658. <dl class="phpdocumentor-argument-list">
  1659. <dt class="phpdocumentor-argument-list__entry">
  1660. <span class="phpdocumentor-signature__argument__name">$data</span>
  1661. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  1662. </dt>
  1663. <dd class="phpdocumentor-argument-list__definition">
  1664. </dd>
  1665. <dt class="phpdocumentor-argument-list__entry">
  1666. <span class="phpdocumentor-signature__argument__name">$file</span>
  1667. : <span class="phpdocumentor-signature__argument__return-type">string|null</span>
  1668. = <span class="phpdocumentor-signature__argument__default-value">null</span> </dt>
  1669. <dd class="phpdocumentor-argument-list__definition">
  1670. </dd>
  1671. </dl>
  1672. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  1673. Tags
  1674. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_saveToFile#tags" class="headerlink"><i class="fas fa-link"></i></a>
  1675. </h5>
  1676. <dl class="phpdocumentor-tag-list">
  1677. <dt class="phpdocumentor-tag-list__entry">
  1678. <span class="phpdocumentor-tag__name">see</span>
  1679. </dt>
  1680. <dd class="phpdocumentor-tag-list__definition">
  1681. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\Output\file_put_contents()">file_put_contents()</abbr></span>
  1682. </dd>
  1683. <dt class="phpdocumentor-tag-list__entry">
  1684. <span class="phpdocumentor-tag__name">see</span>
  1685. </dt>
  1686. <dd class="phpdocumentor-tag-list__definition">
  1687. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\QROptions::$cachefile">QROptions::$cachefile</abbr></span>
  1688. </dd>
  1689. <dt class="phpdocumentor-tag-list__entry">
  1690. <span class="phpdocumentor-tag__name">throws</span>
  1691. </dt>
  1692. <dd class="phpdocumentor-tag-list__definition">
  1693. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Output-QRCodeOutputException.html"><abbr title="\chillerlan\QRCode\Output\QRCodeOutputException">QRCodeOutputException</abbr></a></span>
  1694. </dd>
  1695. </dl>
  1696. </article>
  1697. <article
  1698. class="phpdocumentor-element
  1699. -method
  1700. -protected
  1701. "
  1702. >
  1703. <h4 class="phpdocumentor-element__name" id="method_setMatrixDimensions">
  1704. setMatrixDimensions()
  1705. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_setMatrixDimensions" class="headerlink"><i class="fas fa-link"></i></a>
  1706. </h4>
  1707. <aside class="phpdocumentor-element-found-in">
  1708. <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>
  1709. :
  1710. <span class="phpdocumentor-element-found-in__line">132</span>
  1711. </aside>
  1712. <p class="phpdocumentor-summary">Sets/updates the matrix dimensions</p>
  1713. <code class="phpdocumentor-code phpdocumentor-signature ">
  1714. <span class="phpdocumentor-signature__visibility">protected</span>
  1715. <span class="phpdocumentor-signature__name">setMatrixDimensions</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  1716. <div class="phpdocumentor-label-line">
  1717. </div>
  1718. <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>
  1719. </section>
  1720. </article>
  1721. <article
  1722. class="phpdocumentor-element
  1723. -method
  1724. -protected
  1725. "
  1726. >
  1727. <h4 class="phpdocumentor-element__name" id="method_setModuleValues">
  1728. setModuleValues()
  1729. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_setModuleValues" class="headerlink"><i class="fas fa-link"></i></a>
  1730. </h4>
  1731. <aside class="phpdocumentor-element-found-in">
  1732. <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>
  1733. :
  1734. <span class="phpdocumentor-element-found-in__line">152</span>
  1735. </aside>
  1736. <p class="phpdocumentor-summary">Sets the initial module values</p>
  1737. <code class="phpdocumentor-code phpdocumentor-signature ">
  1738. <span class="phpdocumentor-signature__visibility">protected</span>
  1739. <span class="phpdocumentor-signature__name">setModuleValues</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  1740. <div class="phpdocumentor-label-line">
  1741. </div>
  1742. </article>
  1743. <article
  1744. class="phpdocumentor-element
  1745. -method
  1746. -protected
  1747. "
  1748. >
  1749. <h4 class="phpdocumentor-element__name" id="method_toBase64DataURI">
  1750. toBase64DataURI()
  1751. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_toBase64DataURI" class="headerlink"><i class="fas fa-link"></i></a>
  1752. </h4>
  1753. <aside class="phpdocumentor-element-found-in">
  1754. <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>
  1755. :
  1756. <span class="phpdocumentor-element-found-in__line">206</span>
  1757. </aside>
  1758. <p class="phpdocumentor-summary">Returns a base64 data URI for the given string and mime type</p>
  1759. <code class="phpdocumentor-code phpdocumentor-signature ">
  1760. <span class="phpdocumentor-signature__visibility">protected</span>
  1761. <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>
  1762. <div class="phpdocumentor-label-line">
  1763. </div>
  1764. <section class="phpdocumentor-description"><p>The mime type can be set via class constant MIME_TYPE in child classes,
  1765. or given via $mime, otherwise it is guessed from the image $data.</p>
  1766. </section>
  1767. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1768. <dl class="phpdocumentor-argument-list">
  1769. <dt class="phpdocumentor-argument-list__entry">
  1770. <span class="phpdocumentor-signature__argument__name">$data</span>
  1771. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  1772. </dt>
  1773. <dd class="phpdocumentor-argument-list__definition">
  1774. </dd>
  1775. <dt class="phpdocumentor-argument-list__entry">
  1776. <span class="phpdocumentor-signature__argument__name">$mime</span>
  1777. : <span class="phpdocumentor-signature__argument__return-type">string|null</span>
  1778. = <span class="phpdocumentor-signature__argument__default-value">null</span> </dt>
  1779. <dd class="phpdocumentor-argument-list__definition">
  1780. </dd>
  1781. </dl>
  1782. <section>
  1783. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1784. <span class="phpdocumentor-signature__response_type">string</span>
  1785. </section>
  1786. </article>
  1787. </section>
  1788. <div class="phpdocumentor-modal" id="source-view">
  1789. <div class="phpdocumentor-modal-bg" data-exit-button></div>
  1790. <div class="phpdocumentor-modal-container">
  1791. <div class="phpdocumentor-modal-content">
  1792. <pre style="max-height: 500px; overflow-y: scroll" data-src="files/src/Output/QRMarkupSVG.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
  1793. </div>
  1794. <button data-exit-button class="phpdocumentor-modal__close">&times;</button>
  1795. </div>
  1796. </div>
  1797. <script type="text/javascript">
  1798. (function () {
  1799. function loadExternalCodeSnippet(el, url, line) {
  1800. Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
  1801. const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
  1802. const language = 'php';
  1803. const code = document.createElement('code');
  1804. code.className = 'language-' + language;
  1805. pre.textContent = '';
  1806. pre.setAttribute('data-line', line)
  1807. code.textContent = 'Loading…';
  1808. pre.appendChild(code);
  1809. var xhr = new XMLHttpRequest();
  1810. xhr.open('GET', src, true);
  1811. xhr.onreadystatechange = function () {
  1812. if (xhr.readyState !== 4) {
  1813. return;
  1814. }
  1815. if (xhr.status < 400 && xhr.responseText) {
  1816. code.textContent = xhr.responseText;
  1817. Prism.highlightElement(code);
  1818. d=document.getElementsByClassName("line-numbers");
  1819. d[0].scrollTop = d[0].children[1].offsetTop;
  1820. return;
  1821. }
  1822. if (xhr.status === 404) {
  1823. code.textContent = '✖ Error: File could not be found';
  1824. return;
  1825. }
  1826. if (xhr.status >= 400) {
  1827. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  1828. return;
  1829. }
  1830. code.textContent = '✖ Error: An unknown error occurred';
  1831. };
  1832. xhr.send(null);
  1833. });
  1834. }
  1835. const modalButtons = document.querySelectorAll("[data-modal]");
  1836. const openedAsLocalFile = window.location.protocol === 'file:';
  1837. if (modalButtons.length > 0 && openedAsLocalFile) {
  1838. console.warn(
  1839. 'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
  1840. 'browsers block XHR requests when a page is opened this way'
  1841. );
  1842. }
  1843. modalButtons.forEach(function (trigger) {
  1844. if (openedAsLocalFile) {
  1845. trigger.setAttribute("hidden", "hidden");
  1846. }
  1847. trigger.addEventListener("click", function (event) {
  1848. event.preventDefault();
  1849. const modal = document.getElementById(trigger.dataset.modal);
  1850. if (!modal) {
  1851. console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
  1852. return;
  1853. }
  1854. modal.classList.add("phpdocumentor-modal__open");
  1855. loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
  1856. const exits = modal.querySelectorAll("[data-exit-button]");
  1857. exits.forEach(function (exit) {
  1858. exit.addEventListener("click", function (event) {
  1859. event.preventDefault();
  1860. modal.classList.remove("phpdocumentor-modal__open");
  1861. });
  1862. });
  1863. });
  1864. });
  1865. })();
  1866. </script>
  1867. </article>
  1868. </section>
  1869. <section class="phpdocumentor-on-this-page__sidebar">
  1870. <section class="phpdocumentor-on-this-page__content">
  1871. <strong class="phpdocumentor-on-this-page__title">On this page</strong>
  1872. <ul class="phpdocumentor-list -clean">
  1873. <li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
  1874. <li>
  1875. <ul class="phpdocumentor-list -clean">
  1876. <li><a href="classes/chillerlan-QRCode-Output-QRMarkupSVG.html#toc-constants">Constants</a></li>
  1877. <li><a href="classes/chillerlan-QRCode-Output-QRMarkupSVG.html#toc-properties">Properties</a></li>
  1878. <li><a href="classes/chillerlan-QRCode-Output-QRMarkupSVG.html#toc-methods">Methods</a></li>
  1879. </ul>
  1880. </li>
  1881. <li class="phpdocumentor-on-this-page-section__title">Constants</li>
  1882. <li>
  1883. <ul class="phpdocumentor-list -clean">
  1884. <li class=""><a href="classes/chillerlan-QRCode-Output-QRMarkupSVG.html#constant_MIME_TYPE">MIME_TYPE</a></li>
  1885. </ul>
  1886. </li>
  1887. <li class="phpdocumentor-on-this-page-section__title">Properties</li>
  1888. <li>
  1889. <ul class="phpdocumentor-list -clean">
  1890. <li class=""><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_circleDiameter">$circleDiameter</a></li>
  1891. <li class=""><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_circleRadius">$circleRadius</a></li>
  1892. <li class=""><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_connectPaths">$connectPaths</a></li>
  1893. <li class=""><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_drawCircularModules">$drawCircularModules</a></li>
  1894. <li class=""><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_drawLightModules">$drawLightModules</a></li>
  1895. <li class=""><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_eol">$eol</a></li>
  1896. <li class=""><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_excludeFromConnect">$excludeFromConnect</a></li>
  1897. <li class=""><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_keepAsSquare">$keepAsSquare</a></li>
  1898. <li class=""><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_length">$length</a></li>
  1899. <li class=""><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_matrix">$matrix</a></li>
  1900. <li class=""><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_moduleCount">$moduleCount</a></li>
  1901. <li class=""><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_moduleValues">$moduleValues</a></li>
  1902. <li class=""><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_options">$options</a></li>
  1903. <li class=""><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_scale">$scale</a></li>
  1904. </ul>
  1905. </li>
  1906. <li class="phpdocumentor-on-this-page-section__title">Methods</li>
  1907. <li>
  1908. <ul class="phpdocumentor-list -clean">
  1909. <li class=""><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method___construct">__construct()</a></li>
  1910. <li class=""><a href="classes/chillerlan-QRCode-Output-QRMarkup.html#method_dump">dump()</a></li>
  1911. <li class=""><a href="classes/chillerlan-QRCode-Output-QRMarkupSVG.html#method_moduleValueIsValid">moduleValueIsValid()</a></li>
  1912. <li class=""><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_collectModules">collectModules()</a></li>
  1913. <li class=""><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_copyVars">copyVars()</a></li>
  1914. <li class=""><a href="classes/chillerlan-QRCode-Output-QRMarkupSVG.html#method_createMarkup">createMarkup()</a></li>
  1915. <li class=""><a href="classes/chillerlan-QRCode-Output-QRMarkupSVG.html#method_getCssClass">getCssClass()</a></li>
  1916. <li class=""><a href="classes/chillerlan-QRCode-Output-CssColorModuleValueTrait.html#method_getDefaultModuleValue">getDefaultModuleValue()</a></li>
  1917. <li class=""><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_getModuleValue">getModuleValue()</a></li>
  1918. <li class=""><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_getModuleValueAt">getModuleValueAt()</a></li>
  1919. <li class=""><a href="classes/chillerlan-QRCode-Output-QRMarkupSVG.html#method_getOutputDimensions">getOutputDimensions()</a></li>
  1920. <li class=""><a href="classes/chillerlan-QRCode-Output-QRMarkupSVG.html#method_getViewBox">getViewBox()</a></li>
  1921. <li class=""><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_guessMimeType">guessMimeType()</a></li>
  1922. <li class=""><a href="classes/chillerlan-QRCode-Output-QRMarkupSVG.html#method_header">header()</a></li>
  1923. <li class=""><a href="classes/chillerlan-QRCode-Output-QRMarkupSVG.html#method_moduleTransform">moduleTransform()</a></li>
  1924. <li class=""><a href="classes/chillerlan-QRCode-Output-QRMarkupSVG.html#method_path">path()</a></li>
  1925. <li class=""><a href="classes/chillerlan-QRCode-Output-QRMarkupSVG.html#method_paths">paths()</a></li>
  1926. <li class=""><a href="classes/chillerlan-QRCode-Output-CssColorModuleValueTrait.html#method_prepareModuleValue">prepareModuleValue()</a></li>
  1927. <li class=""><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_saveToFile">saveToFile()</a></li>
  1928. <li class=""><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_setMatrixDimensions">setMatrixDimensions()</a></li>
  1929. <li class=""><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_setModuleValues">setModuleValues()</a></li>
  1930. <li class=""><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_toBase64DataURI">toBase64DataURI()</a></li>
  1931. </ul>
  1932. </li>
  1933. </ul>
  1934. </section>
  1935. </section>
  1936. </div>
  1937. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  1938. <section class="phpdocumentor-search-results__dialog">
  1939. <header class="phpdocumentor-search-results__header">
  1940. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  1941. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  1942. </header>
  1943. <section class="phpdocumentor-search-results__body">
  1944. <ul class="phpdocumentor-search-results__entries"></ul>
  1945. </section>
  1946. </section>
  1947. </section>
  1948. </div>
  1949. <a href="classes/chillerlan-QRCode-Output-QRMarkupSVG.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  1950. </main>
  1951. <script>
  1952. cssVars({});
  1953. </script>
  1954. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  1955. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  1956. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  1957. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  1958. </body>
  1959. </html>