chillerlan-QRCode-Output-QRImage.html 73 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544
  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=Source+Sans+Pro:wght@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/search.js"></script>
  22. <script defer src="js/searchIndex.js"></script>
  23. </head>
  24. <body id="top">
  25. <header class="phpdocumentor-header phpdocumentor-section">
  26. <h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
  27. <input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
  28. <label class="phpdocumentor-header__menu-icon" for="menu-button">
  29. <i class="fas fa-bars"></i>
  30. </label>
  31. <section data-search-form class="phpdocumentor-search">
  32. <label>
  33. <span class="visually-hidden">Search for</span>
  34. <svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  35. <circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
  36. <line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
  37. </svg>
  38. <input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
  39. </label>
  40. </section>
  41. <nav class="phpdocumentor-topnav">
  42. <ul class="phpdocumentor-topnav__menu">
  43. </ul>
  44. </nav>
  45. </header>
  46. <main class="phpdocumentor">
  47. <div class="phpdocumentor-section">
  48. <input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
  49. <label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
  50. Menu
  51. </label>
  52. <aside class="phpdocumentor-column -four phpdocumentor-sidebar">
  53. <section class="phpdocumentor-sidebar__category">
  54. <h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
  55. <h4 class="phpdocumentor-sidebar__root-namespace">
  56. <a href="namespaces/chillerlan.html" class="">chillerlan</a>
  57. </h4>
  58. <ul class="phpdocumentor-list">
  59. <li>
  60. <a href="namespaces/chillerlan-qrcode.html" class="">QRCode</a>
  61. </li>
  62. <li>
  63. <a href="namespaces/chillerlan-qrcodetest.html" class="">QRCodeTest</a>
  64. </li>
  65. </ul>
  66. </section>
  67. <section class="phpdocumentor-sidebar__category">
  68. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  69. <h4 class="phpdocumentor-sidebar__root-namespace">
  70. <a href="packages/Application.html" class="">Application</a>
  71. </h4>
  72. </section>
  73. <section class="phpdocumentor-sidebar__category">
  74. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  75. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  76. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  77. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  78. </section>
  79. <section class="phpdocumentor-sidebar__category">
  80. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  81. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  82. </section>
  83. </aside>
  84. <div class="phpdocumentor-column -eight phpdocumentor-content">
  85. <ul class="phpdocumentor-breadcrumbs">
  86. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  87. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode.html">QRCode</a></li>
  88. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode-output.html">Output</a></li>
  89. </ul>
  90. <article class="phpdocumentor-element -class">
  91. <h2 class="phpdocumentor-content__title">
  92. QRImage
  93. <span class="phpdocumentor-element__extends">
  94. extends <a href="classes/chillerlan-QRCode-Output-QRGdImage.html"><abbr title="\chillerlan\QRCode\Output\QRGdImage">QRGdImage</abbr></a>
  95. </span>
  96. <div class="phpdocumentor-element__package">
  97. in package
  98. <ul class="phpdocumentor-breadcrumbs">
  99. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  100. </ul>
  101. </div>
  102. </h2>
  103. <aside class="phpdocumentor-element-found-in">
  104. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QRImage.php"><a href="files/src-output-qrimage.html"><abbr title="src/Output/QRImage.php">QRImage.php</abbr></a></abbr>
  105. :
  106. <span class="phpdocumentor-element-found-in__line">17</span>
  107. </aside>
  108. <p class="phpdocumentor-summary">Converts the matrix into GD images, raw or base64 output (requires ext-gd)</p>
  109. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  110. Tags
  111. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  112. </h5>
  113. <dl class="phpdocumentor-tag-list">
  114. <dt class="phpdocumentor-tag-list__entry">
  115. <span class="phpdocumentor-tag__name">deprecated</span>
  116. </dt>
  117. <dd class="phpdocumentor-tag-list__definition">
  118. <span class="phpdocumentor-tag-link">5.0.0</span>
  119. <section class="phpdocumentor-description"><p>backward compatibility, use QRGdImage instead</p>
  120. </section>
  121. </dd>
  122. <dt class="phpdocumentor-tag-list__entry">
  123. <span class="phpdocumentor-tag__name">see</span>
  124. </dt>
  125. <dd class="phpdocumentor-tag-list__definition">
  126. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Output-QRGdImage.html"><abbr title="\chillerlan\QRCode\Output\QRGdImage">QRGdImage</abbr></a></span>
  127. </dd>
  128. </dl>
  129. <h3 id="toc">
  130. Table of Contents
  131. <a href="#toc" class="headerlink"><i class="fas fa-link"></i></a>
  132. </h3>
  133. <dl class="phpdocumentor-table-of-contents">
  134. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  135. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#property_background">$background</a>
  136. <span>
  137. &nbsp;: int </span>
  138. </dt>
  139. <dd>The allocated background color</dd>
  140. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  141. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#property_image">$image</a>
  142. <span>
  143. &nbsp;: resource|<abbr title="\GdImage">GdImage</abbr> </span>
  144. </dt>
  145. <dd>The GD image resource</dd>
  146. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  147. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_length">$length</a>
  148. <span>
  149. &nbsp;: int </span>
  150. </dt>
  151. <dd>the side length of the QR image (modules * scale)</dd>
  152. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  153. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_matrix">$matrix</a>
  154. <span>
  155. &nbsp;: <a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a> </span>
  156. </dt>
  157. <dd>the (filled) data matrix object</dd>
  158. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  159. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_moduleCount">$moduleCount</a>
  160. <span>
  161. &nbsp;: int </span>
  162. </dt>
  163. <dd>the current size of the QR matrix</dd>
  164. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  165. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_moduleValues">$moduleValues</a>
  166. <span>
  167. &nbsp;: array&lt;string|int, mixed&gt; </span>
  168. </dt>
  169. <dd>an (optional) array of color values for the several QR matrix parts</dd>
  170. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  171. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_options">$options</a>
  172. <span>
  173. &nbsp;: <abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr> </span>
  174. </dt>
  175. <dd></dd>
  176. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  177. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_scale">$scale</a>
  178. <span>
  179. &nbsp;: int </span>
  180. </dt>
  181. <dd>the current scaling for a QR pixel</dd>
  182. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  183. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#property_upscaled">$upscaled</a>
  184. <span>
  185. &nbsp;: bool </span>
  186. </dt>
  187. <dd>Whether we&#039;re running in upscale mode (scale &lt; 20)</dd>
  188. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  189. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method___construct">__construct()</a>
  190. <span>
  191. &nbsp;: mixed </span>
  192. </dt>
  193. <dd>QROutputAbstract constructor.</dd>
  194. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  195. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_dump">dump()</a>
  196. <span>
  197. &nbsp;: string|resource|<abbr title="\GdImage">GdImage</abbr> </span>
  198. </dt>
  199. <dd></dd>
  200. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  201. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_moduleValueIsValid">moduleValueIsValid()</a>
  202. <span>
  203. &nbsp;: bool </span>
  204. </dt>
  205. <dd></dd>
  206. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  207. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_collectModules">collectModules()</a>
  208. <span>
  209. &nbsp;: array&lt;string|int, mixed&gt; </span>
  210. </dt>
  211. <dd>collects the modules per QRMatrix::M_* type and runs a $transform function on each module and
  212. returns an array with the transformed modules</dd>
  213. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  214. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_drawImage">drawImage()</a>
  215. <span>
  216. &nbsp;: void </span>
  217. </dt>
  218. <dd>Creates the QR image</dd>
  219. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  220. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_dumpImage">dumpImage()</a>
  221. <span>
  222. &nbsp;: string </span>
  223. </dt>
  224. <dd>Creates the final image by calling the desired GD output function</dd>
  225. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  226. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_getDefaultModuleValue">getDefaultModuleValue()</a>
  227. <span>
  228. &nbsp;: mixed </span>
  229. </dt>
  230. <dd>Returns a default value for either dark or light modules (return value depends on the output module)</dd>
  231. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  232. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_getModuleValue">getModuleValue()</a>
  233. <span>
  234. &nbsp;: mixed </span>
  235. </dt>
  236. <dd>Returns the final value for the given input (return value depends on the output module)</dd>
  237. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  238. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_saveToFile">saveToFile()</a>
  239. <span>
  240. &nbsp;: void </span>
  241. </dt>
  242. <dd>Saves the qr $data to a $file. If $file is null, nothing happens.</dd>
  243. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  244. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_setBgColor">setBgColor()</a>
  245. <span>
  246. &nbsp;: void </span>
  247. </dt>
  248. <dd>Sets the background color</dd>
  249. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  250. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_setMatrixDimensions">setMatrixDimensions()</a>
  251. <span>
  252. &nbsp;: void </span>
  253. </dt>
  254. <dd>Sets/updates the matrix dimensions</dd>
  255. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  256. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_setModuleValues">setModuleValues()</a>
  257. <span>
  258. &nbsp;: void </span>
  259. </dt>
  260. <dd>Sets the initial module values</dd>
  261. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  262. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_setPixel">setPixel()</a>
  263. <span>
  264. &nbsp;: void </span>
  265. </dt>
  266. <dd>Creates a single QR pixel with the given settings</dd>
  267. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  268. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_setTransparencyColor">setTransparencyColor()</a>
  269. <span>
  270. &nbsp;: void </span>
  271. </dt>
  272. <dd>Sets the transparency color</dd>
  273. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  274. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_toBase64DataURI">toBase64DataURI()</a>
  275. <span>
  276. &nbsp;: string </span>
  277. </dt>
  278. <dd>Returns a base64 data URI for the given string and mime type</dd>
  279. </dl>
  280. <section class="phpdocumentor-properties">
  281. <h3 class="phpdocumentor-elements__header" id="properties">
  282. Properties
  283. <a href="classes/chillerlan-QRCode-Output-QRImage.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  284. </h3>
  285. <article
  286. class="
  287. phpdocumentor-element
  288. -property
  289. -protected
  290. "
  291. >
  292. <h4 class="phpdocumentor-element__name" id="property_background">
  293. $background
  294. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#property_background" class="headerlink"><i class="fas fa-link"></i></a>
  295. <span class="phpdocumentor-element__modifiers">
  296. </span>
  297. </h4>
  298. <aside class="phpdocumentor-element-found-in">
  299. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QRGdImage.php"><a href="files/src-output-qrgdimage.html"><abbr title="src/Output/QRGdImage.php">QRGdImage.php</abbr></a></abbr>
  300. :
  301. <span class="phpdocumentor-element-found-in__line">42</span>
  302. </aside>
  303. <p class="phpdocumentor-summary">The allocated background color</p>
  304. <code class="phpdocumentor-code phpdocumentor-signature ">
  305. <span class="phpdocumentor-signature__visibility">protected</span>
  306. <span class="phpdocumentor-signature__type">int</span>
  307. <span class="phpdocumentor-signature__name">$background</span>
  308. </code>
  309. <section class="phpdocumentor-description"></section>
  310. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  311. Tags
  312. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  313. </h5>
  314. <dl class="phpdocumentor-tag-list">
  315. <dt class="phpdocumentor-tag-list__entry">
  316. <span class="phpdocumentor-tag__name">see</span>
  317. </dt>
  318. <dd class="phpdocumentor-tag-list__definition">
  319. <span class="phpdocumentor-tag-link"><abbr title="\imagecolorallocate()">imagecolorallocate()</abbr></span>
  320. </dd>
  321. </dl>
  322. </article>
  323. <article
  324. class="
  325. phpdocumentor-element
  326. -property
  327. -protected
  328. "
  329. >
  330. <h4 class="phpdocumentor-element__name" id="property_image">
  331. $image
  332. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#property_image" class="headerlink"><i class="fas fa-link"></i></a>
  333. <span class="phpdocumentor-element__modifiers">
  334. </span>
  335. </h4>
  336. <aside class="phpdocumentor-element-found-in">
  337. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QRGdImage.php"><a href="files/src-output-qrgdimage.html"><abbr title="src/Output/QRGdImage.php">QRGdImage.php</abbr></a></abbr>
  338. :
  339. <span class="phpdocumentor-element-found-in__line">35</span>
  340. </aside>
  341. <p class="phpdocumentor-summary">The GD image resource</p>
  342. <code class="phpdocumentor-code phpdocumentor-signature ">
  343. <span class="phpdocumentor-signature__visibility">protected</span>
  344. <span class="phpdocumentor-signature__type">resource|<abbr title="\GdImage">GdImage</abbr></span>
  345. <span class="phpdocumentor-signature__name">$image</span>
  346. </code>
  347. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  348. Tags
  349. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  350. </h5>
  351. <dl class="phpdocumentor-tag-list">
  352. <dt class="phpdocumentor-tag-list__entry">
  353. <span class="phpdocumentor-tag__name">see</span>
  354. </dt>
  355. <dd class="phpdocumentor-tag-list__definition">
  356. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\Output\imagecreatetruecolor()">imagecreatetruecolor()</abbr></span>
  357. </dd>
  358. </dl>
  359. </article>
  360. <article
  361. class="
  362. phpdocumentor-element
  363. -property
  364. -protected
  365. "
  366. >
  367. <h4 class="phpdocumentor-element__name" id="property_length">
  368. $length
  369. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_length" class="headerlink"><i class="fas fa-link"></i></a>
  370. <span class="phpdocumentor-element__modifiers">
  371. </span>
  372. </h4>
  373. <aside class="phpdocumentor-element-found-in">
  374. <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>
  375. :
  376. <span class="phpdocumentor-element-found-in__line">40</span>
  377. </aside>
  378. <p class="phpdocumentor-summary">the side length of the QR image (modules * scale)</p>
  379. <code class="phpdocumentor-code phpdocumentor-signature ">
  380. <span class="phpdocumentor-signature__visibility">protected</span>
  381. <span class="phpdocumentor-signature__type">int</span>
  382. <span class="phpdocumentor-signature__name">$length</span>
  383. </code>
  384. <section class="phpdocumentor-description"></section>
  385. </article>
  386. <article
  387. class="
  388. phpdocumentor-element
  389. -property
  390. -protected
  391. "
  392. >
  393. <h4 class="phpdocumentor-element__name" id="property_matrix">
  394. $matrix
  395. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_matrix" class="headerlink"><i class="fas fa-link"></i></a>
  396. <span class="phpdocumentor-element__modifiers">
  397. </span>
  398. </h4>
  399. <aside class="phpdocumentor-element-found-in">
  400. <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>
  401. :
  402. <span class="phpdocumentor-element-found-in__line">50</span>
  403. </aside>
  404. <p class="phpdocumentor-summary">the (filled) data matrix object</p>
  405. <code class="phpdocumentor-code phpdocumentor-signature ">
  406. <span class="phpdocumentor-signature__visibility">protected</span>
  407. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a></span>
  408. <span class="phpdocumentor-signature__name">$matrix</span>
  409. </code>
  410. <section class="phpdocumentor-description"></section>
  411. </article>
  412. <article
  413. class="
  414. phpdocumentor-element
  415. -property
  416. -protected
  417. "
  418. >
  419. <h4 class="phpdocumentor-element__name" id="property_moduleCount">
  420. $moduleCount
  421. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_moduleCount" class="headerlink"><i class="fas fa-link"></i></a>
  422. <span class="phpdocumentor-element__modifiers">
  423. </span>
  424. </h4>
  425. <aside class="phpdocumentor-element-found-in">
  426. <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>
  427. :
  428. <span class="phpdocumentor-element-found-in__line">28</span>
  429. </aside>
  430. <p class="phpdocumentor-summary">the current size of the QR matrix</p>
  431. <code class="phpdocumentor-code phpdocumentor-signature ">
  432. <span class="phpdocumentor-signature__visibility">protected</span>
  433. <span class="phpdocumentor-signature__type">int</span>
  434. <span class="phpdocumentor-signature__name">$moduleCount</span>
  435. </code>
  436. <section class="phpdocumentor-description"></section>
  437. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  438. Tags
  439. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  440. </h5>
  441. <dl class="phpdocumentor-tag-list">
  442. <dt class="phpdocumentor-tag-list__entry">
  443. <span class="phpdocumentor-tag__name">see</span>
  444. </dt>
  445. <dd class="phpdocumentor-tag-list__definition">
  446. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_size"><abbr title="\chillerlan\QRCode\Data\QRMatrix::size()">QRMatrix::size()</abbr></a></span>
  447. </dd>
  448. </dl>
  449. </article>
  450. <article
  451. class="
  452. phpdocumentor-element
  453. -property
  454. -protected
  455. "
  456. >
  457. <h4 class="phpdocumentor-element__name" id="property_moduleValues">
  458. $moduleValues
  459. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_moduleValues" class="headerlink"><i class="fas fa-link"></i></a>
  460. <span class="phpdocumentor-element__modifiers">
  461. </span>
  462. </h4>
  463. <aside class="phpdocumentor-element-found-in">
  464. <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>
  465. :
  466. <span class="phpdocumentor-element-found-in__line">45</span>
  467. </aside>
  468. <p class="phpdocumentor-summary">an (optional) array of color values for the several QR matrix parts</p>
  469. <code class="phpdocumentor-code phpdocumentor-signature ">
  470. <span class="phpdocumentor-signature__visibility">protected</span>
  471. <span class="phpdocumentor-signature__type">array&lt;string|int, mixed&gt;</span>
  472. <span class="phpdocumentor-signature__name">$moduleValues</span>
  473. </code>
  474. <section class="phpdocumentor-description"></section>
  475. </article>
  476. <article
  477. class="
  478. phpdocumentor-element
  479. -property
  480. -protected
  481. "
  482. >
  483. <h4 class="phpdocumentor-element__name" id="property_options">
  484. $options
  485. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_options" 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">55</span>
  493. </aside>
  494. <code class="phpdocumentor-code phpdocumentor-signature ">
  495. <span class="phpdocumentor-signature__visibility">protected</span>
  496. <span class="phpdocumentor-signature__type"><abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr></span>
  497. <span class="phpdocumentor-signature__name">$options</span>
  498. </code>
  499. </article>
  500. <article
  501. class="
  502. phpdocumentor-element
  503. -property
  504. -protected
  505. "
  506. >
  507. <h4 class="phpdocumentor-element__name" id="property_scale">
  508. $scale
  509. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_scale" class="headerlink"><i class="fas fa-link"></i></a>
  510. <span class="phpdocumentor-element__modifiers">
  511. </span>
  512. </h4>
  513. <aside class="phpdocumentor-element-found-in">
  514. <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>
  515. :
  516. <span class="phpdocumentor-element-found-in__line">35</span>
  517. </aside>
  518. <p class="phpdocumentor-summary">the current scaling for a QR pixel</p>
  519. <code class="phpdocumentor-code phpdocumentor-signature ">
  520. <span class="phpdocumentor-signature__visibility">protected</span>
  521. <span class="phpdocumentor-signature__type">int</span>
  522. <span class="phpdocumentor-signature__name">$scale</span>
  523. </code>
  524. <section class="phpdocumentor-description"></section>
  525. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  526. Tags
  527. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  528. </h5>
  529. <dl class="phpdocumentor-tag-list">
  530. <dt class="phpdocumentor-tag-list__entry">
  531. <span class="phpdocumentor-tag__name">see</span>
  532. </dt>
  533. <dd class="phpdocumentor-tag-list__definition">
  534. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\QROptions::$scale">QROptions::$scale</abbr></span>
  535. </dd>
  536. </dl>
  537. </article>
  538. <article
  539. class="
  540. phpdocumentor-element
  541. -property
  542. -protected
  543. "
  544. >
  545. <h4 class="phpdocumentor-element__name" id="property_upscaled">
  546. $upscaled
  547. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#property_upscaled" class="headerlink"><i class="fas fa-link"></i></a>
  548. <span class="phpdocumentor-element__modifiers">
  549. </span>
  550. </h4>
  551. <aside class="phpdocumentor-element-found-in">
  552. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QRGdImage.php"><a href="files/src-output-qrgdimage.html"><abbr title="src/Output/QRGdImage.php">QRGdImage.php</abbr></a></abbr>
  553. :
  554. <span class="phpdocumentor-element-found-in__line">49</span>
  555. </aside>
  556. <p class="phpdocumentor-summary">Whether we&#039;re running in upscale mode (scale &lt; 20)</p>
  557. <code class="phpdocumentor-code phpdocumentor-signature ">
  558. <span class="phpdocumentor-signature__visibility">protected</span>
  559. <span class="phpdocumentor-signature__type">bool</span>
  560. <span class="phpdocumentor-signature__name">$upscaled</span>
  561. = <span class="phpdocumentor-signature__default-value">false</span></code>
  562. <section class="phpdocumentor-description"></section>
  563. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  564. Tags
  565. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  566. </h5>
  567. <dl class="phpdocumentor-tag-list">
  568. <dt class="phpdocumentor-tag-list__entry">
  569. <span class="phpdocumentor-tag__name">see</span>
  570. </dt>
  571. <dd class="phpdocumentor-tag-list__definition">
  572. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\QROptions::$drawCircularModules">QROptions::$drawCircularModules</abbr></span>
  573. </dd>
  574. </dl>
  575. </article>
  576. </section>
  577. <section class="phpdocumentor-methods">
  578. <h3 class="phpdocumentor-elements__header" id="methods">
  579. Methods
  580. <a href="classes/chillerlan-QRCode-Output-QRImage.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  581. </h3>
  582. <article
  583. class="phpdocumentor-element
  584. -method
  585. -public
  586. "
  587. >
  588. <h4 class="phpdocumentor-element__name" id="method___construct">
  589. __construct()
  590. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method___construct" class="headerlink"><i class="fas fa-link"></i></a>
  591. </h4>
  592. <aside class="phpdocumentor-element-found-in">
  593. <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>
  594. :
  595. <span class="phpdocumentor-element-found-in__line">60</span>
  596. </aside>
  597. <p class="phpdocumentor-summary">QROutputAbstract constructor.</p>
  598. <code class="phpdocumentor-code phpdocumentor-signature ">
  599. <span class="phpdocumentor-signature__visibility">public</span>
  600. <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>
  601. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  602. <dl class="phpdocumentor-argument-list">
  603. <dt class="phpdocumentor-argument-list__entry">
  604. <span class="phpdocumentor-signature__argument__name">$options</span>
  605. : <span class="phpdocumentor-signature__argument__return-type"><abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr></span>
  606. </dt>
  607. <dd class="phpdocumentor-argument-list__definition">
  608. <section class="phpdocumentor-description"></section>
  609. </dd>
  610. <dt class="phpdocumentor-argument-list__entry">
  611. <span class="phpdocumentor-signature__argument__name">$matrix</span>
  612. : <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>
  613. </dt>
  614. <dd class="phpdocumentor-argument-list__definition">
  615. <section class="phpdocumentor-description"></section>
  616. </dd>
  617. </dl>
  618. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  619. <span class="phpdocumentor-signature__response_type">mixed</span>
  620. &mdash;
  621. </article>
  622. <article
  623. class="phpdocumentor-element
  624. -method
  625. -public
  626. "
  627. >
  628. <h4 class="phpdocumentor-element__name" id="method_dump">
  629. dump()
  630. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_dump" class="headerlink"><i class="fas fa-link"></i></a>
  631. </h4>
  632. <aside class="phpdocumentor-element-found-in">
  633. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QRGdImage.php"><a href="files/src-output-qrgdimage.html"><abbr title="src/Output/QRGdImage.php">QRGdImage.php</abbr></a></abbr>
  634. :
  635. <span class="phpdocumentor-element-found-in__line">150</span>
  636. </aside>
  637. <code class="phpdocumentor-code phpdocumentor-signature ">
  638. <span class="phpdocumentor-signature__visibility">public</span>
  639. <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|resource|<abbr title="\GdImage">GdImage</abbr></span></code>
  640. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  641. <dl class="phpdocumentor-argument-list">
  642. <dt class="phpdocumentor-argument-list__entry">
  643. <span class="phpdocumentor-signature__argument__name">$file</span>
  644. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  645. = <span class="phpdocumentor-signature__argument__default-value">null</span> </dt>
  646. <dd class="phpdocumentor-argument-list__definition">
  647. <section class="phpdocumentor-description"></section>
  648. </dd>
  649. </dl>
  650. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  651. Tags
  652. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  653. </h5>
  654. <dl class="phpdocumentor-tag-list">
  655. <dt class="phpdocumentor-tag-list__entry">
  656. <span class="phpdocumentor-tag__name">inheritDoc</span>
  657. </dt>
  658. <dd class="phpdocumentor-tag-list__definition">
  659. </dd>
  660. <dt class="phpdocumentor-tag-list__entry">
  661. <span class="phpdocumentor-tag__name">phan-suppress</span>
  662. </dt>
  663. <dd class="phpdocumentor-tag-list__definition">
  664. <section class="phpdocumentor-description"><p>PhanUndeclaredTypeReturnType, PhanTypeMismatchReturn</p>
  665. </section>
  666. </dd>
  667. <dt class="phpdocumentor-tag-list__entry">
  668. <span class="phpdocumentor-tag__name">throws</span>
  669. </dt>
  670. <dd class="phpdocumentor-tag-list__definition">
  671. <span class="phpdocumentor-tag-link"><abbr title="\ErrorException">ErrorException</abbr></span>
  672. </dd>
  673. </dl>
  674. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  675. <span class="phpdocumentor-signature__response_type">string|resource|<abbr title="\GdImage">GdImage</abbr></span>
  676. &mdash;
  677. </article>
  678. <article
  679. class="phpdocumentor-element
  680. -method
  681. -public
  682. -static "
  683. >
  684. <h4 class="phpdocumentor-element__name" id="method_moduleValueIsValid">
  685. moduleValueIsValid()
  686. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_moduleValueIsValid" class="headerlink"><i class="fas fa-link"></i></a>
  687. </h4>
  688. <aside class="phpdocumentor-element-found-in">
  689. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QRGdImage.php"><a href="files/src-output-qrgdimage.html"><abbr title="src/Output/QRGdImage.php">QRGdImage.php</abbr></a></abbr>
  690. :
  691. <span class="phpdocumentor-element-found-in__line">85</span>
  692. </aside>
  693. <code class="phpdocumentor-code phpdocumentor-signature ">
  694. <span class="phpdocumentor-signature__visibility">public</span>
  695. <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>
  696. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  697. <dl class="phpdocumentor-argument-list">
  698. <dt class="phpdocumentor-argument-list__entry">
  699. <span class="phpdocumentor-signature__argument__name">$value</span>
  700. : <span class="phpdocumentor-signature__argument__return-type">mixed</span>
  701. </dt>
  702. <dd class="phpdocumentor-argument-list__definition">
  703. <section class="phpdocumentor-description"></section>
  704. </dd>
  705. </dl>
  706. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  707. Tags
  708. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  709. </h5>
  710. <dl class="phpdocumentor-tag-list">
  711. <dt class="phpdocumentor-tag-list__entry">
  712. <span class="phpdocumentor-tag__name">inheritDoc</span>
  713. </dt>
  714. <dd class="phpdocumentor-tag-list__definition">
  715. </dd>
  716. </dl>
  717. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  718. <span class="phpdocumentor-signature__response_type">bool</span>
  719. &mdash;
  720. </article>
  721. <article
  722. class="phpdocumentor-element
  723. -method
  724. -protected
  725. "
  726. >
  727. <h4 class="phpdocumentor-element__name" id="method_collectModules">
  728. collectModules()
  729. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_collectModules" class="headerlink"><i class="fas fa-link"></i></a>
  730. </h4>
  731. <aside class="phpdocumentor-element-found-in">
  732. <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>
  733. :
  734. <span class="phpdocumentor-element-found-in__line">151</span>
  735. </aside>
  736. <p class="phpdocumentor-summary">collects the modules per QRMatrix::M_* type and runs a $transform function on each module and
  737. returns an array with the transformed modules</p>
  738. <code class="phpdocumentor-code phpdocumentor-signature ">
  739. <span class="phpdocumentor-signature__visibility">protected</span>
  740. <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>
  741. <section class="phpdocumentor-description"><p>The transform callback is called with the following parameters:</p>
  742. <p>$x - current column
  743. $y - current row
  744. $M_TYPE - field value
  745. $M_TYPE_LAYER - (possibly modified) field value that acts as layer id</p>
  746. </section>
  747. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  748. <dl class="phpdocumentor-argument-list">
  749. <dt class="phpdocumentor-argument-list__entry">
  750. <span class="phpdocumentor-signature__argument__name">$transform</span>
  751. : <span class="phpdocumentor-signature__argument__return-type"><abbr title="\Closure">Closure</abbr></span>
  752. </dt>
  753. <dd class="phpdocumentor-argument-list__definition">
  754. <section class="phpdocumentor-description"></section>
  755. </dd>
  756. </dl>
  757. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  758. <span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
  759. &mdash;
  760. </article>
  761. <article
  762. class="phpdocumentor-element
  763. -method
  764. -protected
  765. "
  766. >
  767. <h4 class="phpdocumentor-element__name" id="method_drawImage">
  768. drawImage()
  769. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_drawImage" class="headerlink"><i class="fas fa-link"></i></a>
  770. </h4>
  771. <aside class="phpdocumentor-element-found-in">
  772. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QRGdImage.php"><a href="files/src-output-qrgdimage.html"><abbr title="src/Output/QRGdImage.php">QRGdImage.php</abbr></a></abbr>
  773. :
  774. <span class="phpdocumentor-element-found-in__line">230</span>
  775. </aside>
  776. <p class="phpdocumentor-summary">Creates the QR image</p>
  777. <code class="phpdocumentor-code phpdocumentor-signature ">
  778. <span class="phpdocumentor-signature__visibility">protected</span>
  779. <span class="phpdocumentor-signature__name">drawImage</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  780. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  781. <span class="phpdocumentor-signature__response_type">void</span>
  782. &mdash;
  783. </article>
  784. <article
  785. class="phpdocumentor-element
  786. -method
  787. -protected
  788. "
  789. >
  790. <h4 class="phpdocumentor-element__name" id="method_dumpImage">
  791. dumpImage()
  792. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_dumpImage" class="headerlink"><i class="fas fa-link"></i></a>
  793. </h4>
  794. <aside class="phpdocumentor-element-found-in">
  795. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QRGdImage.php"><a href="files/src-output-qrgdimage.html"><abbr title="src/Output/QRGdImage.php">QRGdImage.php</abbr></a></abbr>
  796. :
  797. <span class="phpdocumentor-element-found-in__line">271</span>
  798. </aside>
  799. <p class="phpdocumentor-summary">Creates the final image by calling the desired GD output function</p>
  800. <code class="phpdocumentor-code phpdocumentor-signature ">
  801. <span class="phpdocumentor-signature__visibility">protected</span>
  802. <span class="phpdocumentor-signature__name">dumpImage</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
  803. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  804. Tags
  805. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  806. </h5>
  807. <dl class="phpdocumentor-tag-list">
  808. <dt class="phpdocumentor-tag-list__entry">
  809. <span class="phpdocumentor-tag__name">throws</span>
  810. </dt>
  811. <dd class="phpdocumentor-tag-list__definition">
  812. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Output-QRCodeOutputException.html"><abbr title="\chillerlan\QRCode\Output\QRCodeOutputException">QRCodeOutputException</abbr></a></span>
  813. </dd>
  814. </dl>
  815. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  816. <span class="phpdocumentor-signature__response_type">string</span>
  817. &mdash;
  818. </article>
  819. <article
  820. class="phpdocumentor-element
  821. -method
  822. -protected
  823. -abstract "
  824. >
  825. <h4 class="phpdocumentor-element__name" id="method_getDefaultModuleValue">
  826. getDefaultModuleValue()
  827. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_getDefaultModuleValue" class="headerlink"><i class="fas fa-link"></i></a>
  828. </h4>
  829. <aside class="phpdocumentor-element-found-in">
  830. <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>
  831. :
  832. <span class="phpdocumentor-element-found-in__line">108</span>
  833. </aside>
  834. <p class="phpdocumentor-summary">Returns a default value for either dark or light modules (return value depends on the output module)</p>
  835. <code class="phpdocumentor-code phpdocumentor-signature ">
  836. <span class="phpdocumentor-signature__visibility">protected</span>
  837. <span class="phpdocumentor-signature__abstract">abstract</span> <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</span></code>
  838. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  839. <dl class="phpdocumentor-argument-list">
  840. <dt class="phpdocumentor-argument-list__entry">
  841. <span class="phpdocumentor-signature__argument__name">$isDark</span>
  842. : <span class="phpdocumentor-signature__argument__return-type">bool</span>
  843. </dt>
  844. <dd class="phpdocumentor-argument-list__definition">
  845. <section class="phpdocumentor-description"></section>
  846. </dd>
  847. </dl>
  848. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  849. <span class="phpdocumentor-signature__response_type">mixed</span>
  850. &mdash;
  851. </article>
  852. <article
  853. class="phpdocumentor-element
  854. -method
  855. -protected
  856. -abstract "
  857. >
  858. <h4 class="phpdocumentor-element__name" id="method_getModuleValue">
  859. getModuleValue()
  860. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_getModuleValue" class="headerlink"><i class="fas fa-link"></i></a>
  861. </h4>
  862. <aside class="phpdocumentor-element-found-in">
  863. <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>
  864. :
  865. <span class="phpdocumentor-element-found-in__line">101</span>
  866. </aside>
  867. <p class="phpdocumentor-summary">Returns the final value for the given input (return value depends on the output module)</p>
  868. <code class="phpdocumentor-code phpdocumentor-signature ">
  869. <span class="phpdocumentor-signature__visibility">protected</span>
  870. <span class="phpdocumentor-signature__abstract">abstract</span> <span class="phpdocumentor-signature__name">getModuleValue</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">mixed</span></code>
  871. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  872. <dl class="phpdocumentor-argument-list">
  873. <dt class="phpdocumentor-argument-list__entry">
  874. <span class="phpdocumentor-signature__argument__name">$value</span>
  875. : <span class="phpdocumentor-signature__argument__return-type">mixed</span>
  876. </dt>
  877. <dd class="phpdocumentor-argument-list__definition">
  878. </dd>
  879. </dl>
  880. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  881. <span class="phpdocumentor-signature__response_type">mixed</span>
  882. &mdash;
  883. </article>
  884. <article
  885. class="phpdocumentor-element
  886. -method
  887. -protected
  888. "
  889. >
  890. <h4 class="phpdocumentor-element__name" id="method_saveToFile">
  891. saveToFile()
  892. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_saveToFile" class="headerlink"><i class="fas fa-link"></i></a>
  893. </h4>
  894. <aside class="phpdocumentor-element-found-in">
  895. <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>
  896. :
  897. <span class="phpdocumentor-element-found-in__line">125</span>
  898. </aside>
  899. <p class="phpdocumentor-summary">Saves the qr $data to a $file. If $file is null, nothing happens.</p>
  900. <code class="phpdocumentor-code phpdocumentor-signature ">
  901. <span class="phpdocumentor-signature__visibility">protected</span>
  902. <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>
  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">$data</span>
  907. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  908. </dt>
  909. <dd class="phpdocumentor-argument-list__definition">
  910. <section class="phpdocumentor-description"></section>
  911. </dd>
  912. <dt class="phpdocumentor-argument-list__entry">
  913. <span class="phpdocumentor-signature__argument__name">$file</span>
  914. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  915. = <span class="phpdocumentor-signature__argument__default-value">null</span> </dt>
  916. <dd class="phpdocumentor-argument-list__definition">
  917. <section class="phpdocumentor-description"></section>
  918. </dd>
  919. </dl>
  920. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  921. Tags
  922. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  923. </h5>
  924. <dl class="phpdocumentor-tag-list">
  925. <dt class="phpdocumentor-tag-list__entry">
  926. <span class="phpdocumentor-tag__name">see</span>
  927. </dt>
  928. <dd class="phpdocumentor-tag-list__definition">
  929. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\Output\file_put_contents()">file_put_contents()</abbr></span>
  930. </dd>
  931. <dt class="phpdocumentor-tag-list__entry">
  932. <span class="phpdocumentor-tag__name">see</span>
  933. </dt>
  934. <dd class="phpdocumentor-tag-list__definition">
  935. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\QROptions::$cachefile">QROptions::$cachefile</abbr></span>
  936. </dd>
  937. <dt class="phpdocumentor-tag-list__entry">
  938. <span class="phpdocumentor-tag__name">throws</span>
  939. </dt>
  940. <dd class="phpdocumentor-tag-list__definition">
  941. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Output-QRCodeOutputException.html"><abbr title="\chillerlan\QRCode\Output\QRCodeOutputException">QRCodeOutputException</abbr></a></span>
  942. </dd>
  943. </dl>
  944. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  945. <span class="phpdocumentor-signature__response_type">void</span>
  946. &mdash;
  947. </article>
  948. <article
  949. class="phpdocumentor-element
  950. -method
  951. -protected
  952. "
  953. >
  954. <h4 class="phpdocumentor-element__name" id="method_setBgColor">
  955. setBgColor()
  956. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_setBgColor" class="headerlink"><i class="fas fa-link"></i></a>
  957. </h4>
  958. <aside class="phpdocumentor-element-found-in">
  959. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QRGdImage.php"><a href="files/src-output-qrgdimage.html"><abbr title="src/Output/QRGdImage.php">QRGdImage.php</abbr></a></abbr>
  960. :
  961. <span class="phpdocumentor-element-found-in__line">194</span>
  962. </aside>
  963. <p class="phpdocumentor-summary">Sets the background color</p>
  964. <code class="phpdocumentor-code phpdocumentor-signature ">
  965. <span class="phpdocumentor-signature__visibility">protected</span>
  966. <span class="phpdocumentor-signature__name">setBgColor</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  967. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  968. <span class="phpdocumentor-signature__response_type">void</span>
  969. &mdash;
  970. </article>
  971. <article
  972. class="phpdocumentor-element
  973. -method
  974. -protected
  975. "
  976. >
  977. <h4 class="phpdocumentor-element__name" id="method_setMatrixDimensions">
  978. setMatrixDimensions()
  979. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_setMatrixDimensions" class="headerlink"><i class="fas fa-link"></i></a>
  980. </h4>
  981. <aside class="phpdocumentor-element-found-in">
  982. <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>
  983. :
  984. <span class="phpdocumentor-element-found-in__line">73</span>
  985. </aside>
  986. <p class="phpdocumentor-summary">Sets/updates the matrix dimensions</p>
  987. <code class="phpdocumentor-code phpdocumentor-signature ">
  988. <span class="phpdocumentor-signature__visibility">protected</span>
  989. <span class="phpdocumentor-signature__name">setMatrixDimensions</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  990. <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>
  991. </section>
  992. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  993. <span class="phpdocumentor-signature__response_type">void</span>
  994. &mdash;
  995. </article>
  996. <article
  997. class="phpdocumentor-element
  998. -method
  999. -protected
  1000. "
  1001. >
  1002. <h4 class="phpdocumentor-element__name" id="method_setModuleValues">
  1003. setModuleValues()
  1004. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_setModuleValues" class="headerlink"><i class="fas fa-link"></i></a>
  1005. </h4>
  1006. <aside class="phpdocumentor-element-found-in">
  1007. <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>
  1008. :
  1009. <span class="phpdocumentor-element-found-in__line">82</span>
  1010. </aside>
  1011. <p class="phpdocumentor-summary">Sets the initial module values</p>
  1012. <code class="phpdocumentor-code phpdocumentor-signature ">
  1013. <span class="phpdocumentor-signature__visibility">protected</span>
  1014. <span class="phpdocumentor-signature__name">setModuleValues</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  1015. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1016. <span class="phpdocumentor-signature__response_type">void</span>
  1017. &mdash;
  1018. </article>
  1019. <article
  1020. class="phpdocumentor-element
  1021. -method
  1022. -protected
  1023. "
  1024. >
  1025. <h4 class="phpdocumentor-element__name" id="method_setPixel">
  1026. setPixel()
  1027. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_setPixel" class="headerlink"><i class="fas fa-link"></i></a>
  1028. </h4>
  1029. <aside class="phpdocumentor-element-found-in">
  1030. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QRGdImage.php"><a href="files/src-output-qrgdimage.html"><abbr title="src/Output/QRGdImage.php">QRGdImage.php</abbr></a></abbr>
  1031. :
  1032. <span class="phpdocumentor-element-found-in__line">241</span>
  1033. </aside>
  1034. <p class="phpdocumentor-summary">Creates a single QR pixel with the given settings</p>
  1035. <code class="phpdocumentor-code phpdocumentor-signature ">
  1036. <span class="phpdocumentor-signature__visibility">protected</span>
  1037. <span class="phpdocumentor-signature__name">setPixel</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>
  1038. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1039. <dl class="phpdocumentor-argument-list">
  1040. <dt class="phpdocumentor-argument-list__entry">
  1041. <span class="phpdocumentor-signature__argument__name">$x</span>
  1042. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1043. </dt>
  1044. <dd class="phpdocumentor-argument-list__definition">
  1045. <section class="phpdocumentor-description"></section>
  1046. </dd>
  1047. <dt class="phpdocumentor-argument-list__entry">
  1048. <span class="phpdocumentor-signature__argument__name">$y</span>
  1049. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1050. </dt>
  1051. <dd class="phpdocumentor-argument-list__definition">
  1052. <section class="phpdocumentor-description"></section>
  1053. </dd>
  1054. <dt class="phpdocumentor-argument-list__entry">
  1055. <span class="phpdocumentor-signature__argument__name">$M_TYPE</span>
  1056. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1057. </dt>
  1058. <dd class="phpdocumentor-argument-list__definition">
  1059. <section class="phpdocumentor-description"></section>
  1060. </dd>
  1061. </dl>
  1062. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1063. <span class="phpdocumentor-signature__response_type">void</span>
  1064. &mdash;
  1065. </article>
  1066. <article
  1067. class="phpdocumentor-element
  1068. -method
  1069. -protected
  1070. "
  1071. >
  1072. <h4 class="phpdocumentor-element__name" id="method_setTransparencyColor">
  1073. setTransparencyColor()
  1074. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_setTransparencyColor" class="headerlink"><i class="fas fa-link"></i></a>
  1075. </h4>
  1076. <aside class="phpdocumentor-element-found-in">
  1077. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QRGdImage.php"><a href="files/src-output-qrgdimage.html"><abbr title="src/Output/QRGdImage.php">QRGdImage.php</abbr></a></abbr>
  1078. :
  1079. <span class="phpdocumentor-element-found-in__line">212</span>
  1080. </aside>
  1081. <p class="phpdocumentor-summary">Sets the transparency color</p>
  1082. <code class="phpdocumentor-code phpdocumentor-signature ">
  1083. <span class="phpdocumentor-signature__visibility">protected</span>
  1084. <span class="phpdocumentor-signature__name">setTransparencyColor</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  1085. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1086. <span class="phpdocumentor-signature__response_type">void</span>
  1087. &mdash;
  1088. </article>
  1089. <article
  1090. class="phpdocumentor-element
  1091. -method
  1092. -protected
  1093. "
  1094. >
  1095. <h4 class="phpdocumentor-element__name" id="method_toBase64DataURI">
  1096. toBase64DataURI()
  1097. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_toBase64DataURI" class="headerlink"><i class="fas fa-link"></i></a>
  1098. </h4>
  1099. <aside class="phpdocumentor-element-found-in">
  1100. <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>
  1101. :
  1102. <span class="phpdocumentor-element-found-in__line">113</span>
  1103. </aside>
  1104. <p class="phpdocumentor-summary">Returns a base64 data URI for the given string and mime type</p>
  1105. <code class="phpdocumentor-code phpdocumentor-signature ">
  1106. <span class="phpdocumentor-signature__visibility">protected</span>
  1107. <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 class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$mime</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
  1108. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1109. <dl class="phpdocumentor-argument-list">
  1110. <dt class="phpdocumentor-argument-list__entry">
  1111. <span class="phpdocumentor-signature__argument__name">$data</span>
  1112. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  1113. </dt>
  1114. <dd class="phpdocumentor-argument-list__definition">
  1115. <section class="phpdocumentor-description"></section>
  1116. </dd>
  1117. <dt class="phpdocumentor-argument-list__entry">
  1118. <span class="phpdocumentor-signature__argument__name">$mime</span>
  1119. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  1120. </dt>
  1121. <dd class="phpdocumentor-argument-list__definition">
  1122. <section class="phpdocumentor-description"></section>
  1123. </dd>
  1124. </dl>
  1125. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1126. <span class="phpdocumentor-signature__response_type">string</span>
  1127. &mdash;
  1128. </article>
  1129. </section>
  1130. <script type="text/javascript">
  1131. function loadExternalCodeSnippets(line) {
  1132. Array.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach((pre) => {
  1133. var src = pre.getAttribute('data-src').replace( /\\/g, '/');
  1134. var extension = (src.match(/\.(\w+)$/) || [, ''])[1];
  1135. var language = 'php';
  1136. var code = document.createElement('code');
  1137. code.className = 'language-' + language;
  1138. pre.textContent = '';
  1139. pre.setAttribute('data-line', line)
  1140. code.textContent = 'Loading…';
  1141. pre.appendChild(code);
  1142. var xhr = new XMLHttpRequest();
  1143. xhr.open('GET', src, true);
  1144. xhr.onreadystatechange = function () {
  1145. if (xhr.readyState == 4) {
  1146. if (xhr.status < 400 && xhr.responseText) {
  1147. code.textContent = xhr.responseText;
  1148. Prism.highlightElement(code);
  1149. }
  1150. else if (xhr.status >= 400) {
  1151. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  1152. }
  1153. else {
  1154. code.textContent = '✖ Error: File does not exist, is empty or trying to view from localhost';
  1155. }
  1156. }
  1157. };
  1158. xhr.send(null);
  1159. });
  1160. }
  1161. var modals = document.querySelectorAll("[data-modal]");
  1162. modals.forEach(function (trigger) {
  1163. trigger.addEventListener("click", function (event) {
  1164. //event.preventDefault();
  1165. const modal = document.getElementById(trigger.dataset.modal);
  1166. modal.classList.add("phpdocumentor-modal__open");
  1167. loadExternalCodeSnippets(trigger.dataset.line)
  1168. const exits = modal.querySelectorAll("[data-exit-button]");
  1169. exits.forEach(function (exit) {
  1170. exit.addEventListener("click", function (event) {
  1171. event.preventDefault();
  1172. modal.classList.remove("phpdocumentor-modal__open");
  1173. });
  1174. });
  1175. });
  1176. });
  1177. </script>
  1178. </article>
  1179. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  1180. <section class="phpdocumentor-search-results__dialog">
  1181. <header class="phpdocumentor-search-results__header">
  1182. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  1183. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  1184. </header>
  1185. <section class="phpdocumentor-search-results__body">
  1186. <ul class="phpdocumentor-search-results__entries"></ul>
  1187. </section>
  1188. </section>
  1189. </section>
  1190. </div>
  1191. </div>
  1192. <a href="classes/chillerlan-QRCode-Output-QRImage.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  1193. </main>
  1194. <script>
  1195. cssVars({});
  1196. </script>
  1197. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  1198. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  1199. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  1200. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  1201. </body>
  1202. </html>