chillerlan-QRCode-Output-QRFpdf.html 105 KB

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