chillerlan-QRCode-Output-QRMarkupSVG.html 74 KB

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