chillerlan-QRCode-Output-QRMarkup.html 108 KB

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