chillerlan-QRCode-Output-QRInterventionImage.html 112 KB

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