chillerlan-QRCode-Output-QRMarkupSVG.html 127 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658
  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"><abbr title="\chillerlan\QRCode\Output\null">null</abbr></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"><abbr title="\chillerlan\QRCode\Output\null">null</abbr></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"><abbr title="\chillerlan\QRCode\Output\null">null</abbr></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"><abbr title="\chillerlan\QRCode\Output\null">null</abbr></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"><abbr title="\chillerlan\QRCode\Output\null">null</abbr></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"><abbr title="\chillerlan\QRCode\Output\null">null</abbr></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>