chillerlan-QRCode-QRCode.html 93 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032
  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"><a href="namespaces/chillerlan.html">chillerlan</a></h4>
  56. <ul class="phpdocumentor-list">
  57. <li>
  58. <a href="namespaces/chillerlan-qrcode.html">QRCode</a>
  59. </li>
  60. <li>
  61. <a href="namespaces/chillerlan-qrcodetest.html">QRCodeTest</a>
  62. </li>
  63. </ul>
  64. </section>
  65. <section class="phpdocumentor-sidebar__category">
  66. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  67. <h4 class="phpdocumentor-sidebar__root-namespace"><a href="packages/Application.html">Application</a></h4>
  68. </section>
  69. <section class="phpdocumentor-sidebar__category">
  70. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  71. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  72. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  73. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  74. </section>
  75. <section class="phpdocumentor-sidebar__category">
  76. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  77. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  78. </section>
  79. </aside>
  80. <div class="phpdocumentor-column -eight phpdocumentor-content">
  81. <ul class="phpdocumentor-breadcrumbs">
  82. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  83. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode.html">QRCode</a></li>
  84. </ul>
  85. <article class="phpdocumentor-element -class">
  86. <h2 class="phpdocumentor-content__title">
  87. QRCode
  88. <div class="phpdocumentor-element__package">
  89. in package
  90. <ul class="phpdocumentor-breadcrumbs">
  91. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  92. </ul>
  93. </div>
  94. </h2>
  95. <aside class="phpdocumentor-element-found-in">
  96. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  97. :
  98. <span class="phpdocumentor-element-found-in__line">29</span>
  99. </aside>
  100. <p class="phpdocumentor-summary">Turns a text string into a Model 2 QR Code</p>
  101. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  102. Tags
  103. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  104. </h5>
  105. <dl class="phpdocumentor-tag-list">
  106. <dt class="phpdocumentor-tag-list__entry">
  107. <span class="phpdocumentor-tag__name">see</span>
  108. </dt>
  109. <dd class="phpdocumentor-tag-list__definition">
  110. <span class="phpdocumentor-tag-link"><a href="https://github.com/kazuhikoarase/qrcode-generator/tree/master/php"><abbr title="https://github.com/kazuhikoarase/qrcode-generator/tree/master/php">https://github.com/kazuhikoarase/qrcode-generator/tree/master/php</abbr></a></span>
  111. </dd>
  112. <dt class="phpdocumentor-tag-list__entry">
  113. <span class="phpdocumentor-tag__name">see</span>
  114. </dt>
  115. <dd class="phpdocumentor-tag-list__definition">
  116. <span class="phpdocumentor-tag-link"><a href="http://www.qrcode.com/en/codes/model12.html"><abbr title="http://www.qrcode.com/en/codes/model12.html">http://www.qrcode.com/en/codes/model12.html</abbr></a></span>
  117. </dd>
  118. <dt class="phpdocumentor-tag-list__entry">
  119. <span class="phpdocumentor-tag__name">see</span>
  120. </dt>
  121. <dd class="phpdocumentor-tag-list__definition">
  122. <span class="phpdocumentor-tag-link"><a href="https://www.swisseduc.ch/informatik/theoretische_informatik/qr_codes/docs/qr_standard.pdf"><abbr title="https://www.swisseduc.ch/informatik/theoretische_informatik/qr_codes/docs/qr_standard.pdf">https://www.swisseduc.ch/informatik/theoretische_informatik/qr_codes/docs/qr_standard.pdf</abbr></a></span>
  123. </dd>
  124. <dt class="phpdocumentor-tag-list__entry">
  125. <span class="phpdocumentor-tag__name">see</span>
  126. </dt>
  127. <dd class="phpdocumentor-tag-list__definition">
  128. <span class="phpdocumentor-tag-link"><a href="https://en.wikipedia.org/wiki/QR_code"><abbr title="https://en.wikipedia.org/wiki/QR_code">https://en.wikipedia.org/wiki/QR_code</abbr></a></span>
  129. </dd>
  130. <dt class="phpdocumentor-tag-list__entry">
  131. <span class="phpdocumentor-tag__name">see</span>
  132. </dt>
  133. <dd class="phpdocumentor-tag-list__definition">
  134. <span class="phpdocumentor-tag-link"><a href="http://www.thonky.com/qr-code-tutorial/"><abbr title="http://www.thonky.com/qr-code-tutorial/">http://www.thonky.com/qr-code-tutorial/</abbr></a></span>
  135. </dd>
  136. </dl>
  137. <h3 id="toc">
  138. Table of Contents
  139. <a href="#toc" class="headerlink"><i class="fas fa-link"></i></a>
  140. </h3>
  141. <dl class="phpdocumentor-table-of-contents">
  142. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  143. <a href="classes/chillerlan-QRCode-QRCode.html#constant_ECC_H">ECC_H</a>
  144. <span>
  145. &nbsp;= chillerlanQRCodeCommonEccLevel::H </span>
  146. </dt>
  147. <dd></dd>
  148. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  149. <a href="classes/chillerlan-QRCode-QRCode.html#constant_ECC_L">ECC_L</a>
  150. <span>
  151. &nbsp;= chillerlanQRCodeCommonEccLevel::L </span>
  152. </dt>
  153. <dd></dd>
  154. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  155. <a href="classes/chillerlan-QRCode-QRCode.html#constant_ECC_M">ECC_M</a>
  156. <span>
  157. &nbsp;= chillerlanQRCodeCommonEccLevel::M </span>
  158. </dt>
  159. <dd></dd>
  160. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  161. <a href="classes/chillerlan-QRCode-QRCode.html#constant_ECC_Q">ECC_Q</a>
  162. <span>
  163. &nbsp;= chillerlanQRCodeCommonEccLevel::Q </span>
  164. </dt>
  165. <dd></dd>
  166. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  167. <a href="classes/chillerlan-QRCode-QRCode.html#constant_MASK_PATTERN_AUTO">MASK_PATTERN_AUTO</a>
  168. <span>
  169. &nbsp;= -1 </span>
  170. </dt>
  171. <dd></dd>
  172. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  173. <a href="classes/chillerlan-QRCode-QRCode.html#constant_OUTPUT_CUSTOM">OUTPUT_CUSTOM</a>
  174. <span>
  175. &nbsp;= &#039;custom&#039; </span>
  176. </dt>
  177. <dd></dd>
  178. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  179. <a href="classes/chillerlan-QRCode-QRCode.html#constant_OUTPUT_FPDF">OUTPUT_FPDF</a>
  180. <span>
  181. &nbsp;= &#039;fpdf&#039; </span>
  182. </dt>
  183. <dd></dd>
  184. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  185. <a href="classes/chillerlan-QRCode-QRCode.html#constant_OUTPUT_IMAGE_GIF">OUTPUT_IMAGE_GIF</a>
  186. <span>
  187. &nbsp;= &#039;gif&#039; </span>
  188. </dt>
  189. <dd></dd>
  190. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  191. <a href="classes/chillerlan-QRCode-QRCode.html#constant_OUTPUT_IMAGE_JPG">OUTPUT_IMAGE_JPG</a>
  192. <span>
  193. &nbsp;= &#039;jpg&#039; </span>
  194. </dt>
  195. <dd></dd>
  196. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  197. <a href="classes/chillerlan-QRCode-QRCode.html#constant_OUTPUT_IMAGE_PNG">OUTPUT_IMAGE_PNG</a>
  198. <span>
  199. &nbsp;= &#039;png&#039; </span>
  200. </dt>
  201. <dd></dd>
  202. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  203. <a href="classes/chillerlan-QRCode-QRCode.html#constant_OUTPUT_IMAGICK">OUTPUT_IMAGICK</a>
  204. <span>
  205. &nbsp;= &#039;imagick&#039; </span>
  206. </dt>
  207. <dd></dd>
  208. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  209. <a href="classes/chillerlan-QRCode-QRCode.html#constant_OUTPUT_MARKUP_HTML">OUTPUT_MARKUP_HTML</a>
  210. <span>
  211. &nbsp;= &#039;html&#039; </span>
  212. </dt>
  213. <dd></dd>
  214. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  215. <a href="classes/chillerlan-QRCode-QRCode.html#constant_OUTPUT_MARKUP_SVG">OUTPUT_MARKUP_SVG</a>
  216. <span>
  217. &nbsp;= &#039;svg&#039; </span>
  218. </dt>
  219. <dd></dd>
  220. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  221. <a href="classes/chillerlan-QRCode-QRCode.html#constant_OUTPUT_MODES">OUTPUT_MODES</a>
  222. <span>
  223. &nbsp;= [chillerlanQRCodeOutputQRMarkup::class =&gt; [self::OUTPUT_MARKUP_SVG, self::OUTPUT_MARKUP_HTML], chillerlanQRCodeOutputQRImage::class =&gt; [self::OUTPUT_IMAGE_PNG, self::OUTPUT_IMAGE_GIF, self::OUTPUT_IMAGE_JPG], chillerlanQRCodeOutputQRString::class =&gt; [self::OUTPUT_STRING_JSON, self::OUTPUT_STRING_TEXT], chillerlanQRCodeOutputQRImagick::class =&gt; [self::OUTPUT_IMAGICK], chillerlanQRCodeOutputQRFpdf::class =&gt; [self::OUTPUT_FPDF]] </span>
  224. </dt>
  225. <dd>Map of built-in output modules =&gt; capabilities</dd>
  226. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  227. <a href="classes/chillerlan-QRCode-QRCode.html#constant_OUTPUT_STRING_JSON">OUTPUT_STRING_JSON</a>
  228. <span>
  229. &nbsp;= &#039;json&#039; </span>
  230. </dt>
  231. <dd></dd>
  232. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  233. <a href="classes/chillerlan-QRCode-QRCode.html#constant_OUTPUT_STRING_TEXT">OUTPUT_STRING_TEXT</a>
  234. <span>
  235. &nbsp;= &#039;text&#039; </span>
  236. </dt>
  237. <dd></dd>
  238. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  239. <a href="classes/chillerlan-QRCode-QRCode.html#constant_VERSION_AUTO">VERSION_AUTO</a>
  240. <span>
  241. &nbsp;= -1 </span>
  242. </dt>
  243. <dd></dd>
  244. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  245. <a href="classes/chillerlan-QRCode-QRCode.html#property_dataSegments">$dataSegments</a>
  246. <span>
  247. &nbsp;: array&lt;string|int, mixed&gt; </span>
  248. </dt>
  249. <dd>A collection of one or more data segments of [classname, data] to write</dd>
  250. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  251. <a href="classes/chillerlan-QRCode-QRCode.html#property_options">$options</a>
  252. <span>
  253. &nbsp;: <abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr> </span>
  254. </dt>
  255. <dd>The settings container</dd>
  256. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  257. <a href="classes/chillerlan-QRCode-QRCode.html#method___construct">__construct()</a>
  258. <span>
  259. &nbsp;: mixed </span>
  260. </dt>
  261. <dd>QRCode constructor.</dd>
  262. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  263. <a href="classes/chillerlan-QRCode-QRCode.html#method_addAlphaNumSegment">addAlphaNumSegment()</a>
  264. <span>
  265. &nbsp;: self </span>
  266. </dt>
  267. <dd>Adds an alphanumeric data segment</dd>
  268. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  269. <a href="classes/chillerlan-QRCode-QRCode.html#method_addByteSegment">addByteSegment()</a>
  270. <span>
  271. &nbsp;: self </span>
  272. </dt>
  273. <dd>Adds an 8-bit byte data segment</dd>
  274. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  275. <a href="classes/chillerlan-QRCode-QRCode.html#method_addEciDesignator">addEciDesignator()</a>
  276. <span>
  277. &nbsp;: self </span>
  278. </dt>
  279. <dd>Adds a standalone ECI designator</dd>
  280. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  281. <a href="classes/chillerlan-QRCode-QRCode.html#method_addEciSegment">addEciSegment()</a>
  282. <span>
  283. &nbsp;: self </span>
  284. </dt>
  285. <dd>Adds an ECI data segment (including designator)</dd>
  286. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  287. <a href="classes/chillerlan-QRCode-QRCode.html#method_addKanjiSegment">addKanjiSegment()</a>
  288. <span>
  289. &nbsp;: self </span>
  290. </dt>
  291. <dd>Adds a Kanji data segment</dd>
  292. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  293. <a href="classes/chillerlan-QRCode-QRCode.html#method_addNumericSegment">addNumericSegment()</a>
  294. <span>
  295. &nbsp;: self </span>
  296. </dt>
  297. <dd>Adds a numeric data segment</dd>
  298. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  299. <a href="classes/chillerlan-QRCode-QRCode.html#method_clearSegments">clearSegments()</a>
  300. <span>
  301. &nbsp;: self </span>
  302. </dt>
  303. <dd>Clears the data segments array</dd>
  304. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  305. <a href="classes/chillerlan-QRCode-QRCode.html#method_getMatrix">getMatrix()</a>
  306. <span>
  307. &nbsp;: <a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a> </span>
  308. </dt>
  309. <dd>Returns a QRMatrix object for the given $data and current QROptions</dd>
  310. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  311. <a href="classes/chillerlan-QRCode-QRCode.html#method_isAlphaNum">isAlphaNum()</a>
  312. <span>
  313. &nbsp;: bool </span>
  314. </dt>
  315. <dd>checks if a string qualifies as alphanumeric (convenience method)</dd>
  316. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  317. <a href="classes/chillerlan-QRCode-QRCode.html#method_isByte">isByte()</a>
  318. <span>
  319. &nbsp;: bool </span>
  320. </dt>
  321. <dd>a dummy (convenience method)</dd>
  322. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  323. <a href="classes/chillerlan-QRCode-QRCode.html#method_isKanji">isKanji()</a>
  324. <span>
  325. &nbsp;: bool </span>
  326. </dt>
  327. <dd>checks if a string qualifies as Kanji (convenience method)</dd>
  328. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  329. <a href="classes/chillerlan-QRCode-QRCode.html#method_isNumber">isNumber()</a>
  330. <span>
  331. &nbsp;: bool </span>
  332. </dt>
  333. <dd>checks if a string qualifies as numeric (convenience method)</dd>
  334. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  335. <a href="classes/chillerlan-QRCode-QRCode.html#method_readFromBlob">readFromBlob()</a>
  336. <span>
  337. &nbsp;: <a href="classes/chillerlan-QRCode-Decoder-DecoderResult.html"><abbr title="\chillerlan\QRCode\Decoder\DecoderResult">DecoderResult</abbr></a> </span>
  338. </dt>
  339. <dd>Reads a QR Code from the given data blob</dd>
  340. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  341. <a href="classes/chillerlan-QRCode-QRCode.html#method_readFromFile">readFromFile()</a>
  342. <span>
  343. &nbsp;: <a href="classes/chillerlan-QRCode-Decoder-DecoderResult.html"><abbr title="\chillerlan\QRCode\Decoder\DecoderResult">DecoderResult</abbr></a> </span>
  344. </dt>
  345. <dd>Reads a QR Code from a given file</dd>
  346. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  347. <a href="classes/chillerlan-QRCode-QRCode.html#method_readFromSource">readFromSource()</a>
  348. <span>
  349. &nbsp;: <a href="classes/chillerlan-QRCode-Decoder-DecoderResult.html"><abbr title="\chillerlan\QRCode\Decoder\DecoderResult">DecoderResult</abbr></a> </span>
  350. </dt>
  351. <dd>Reads a QR Code from the given luminance source</dd>
  352. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  353. <a href="classes/chillerlan-QRCode-QRCode.html#method_render">render()</a>
  354. <span>
  355. &nbsp;: mixed </span>
  356. </dt>
  357. <dd>Renders a QR Code for the given $data and QROptions</dd>
  358. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  359. <a href="classes/chillerlan-QRCode-QRCode.html#method_addSegment">addSegment()</a>
  360. <span>
  361. &nbsp;: void </span>
  362. </dt>
  363. <dd>Adds a data segment</dd>
  364. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  365. <a href="classes/chillerlan-QRCode-QRCode.html#method_initCustomOutputInterface">initCustomOutputInterface()</a>
  366. <span>
  367. &nbsp;: <a href="classes/chillerlan-QRCode-Output-QROutputInterface.html"><abbr title="\chillerlan\QRCode\Output\QROutputInterface">QROutputInterface</abbr></a> </span>
  368. </dt>
  369. <dd>initializes a custom output module after checking the existence of the class and if it implemnts the required interface</dd>
  370. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  371. <a href="classes/chillerlan-QRCode-QRCode.html#method_initOutputInterface">initOutputInterface()</a>
  372. <span>
  373. &nbsp;: <a href="classes/chillerlan-QRCode-Output-QROutputInterface.html"><abbr title="\chillerlan\QRCode\Output\QROutputInterface">QROutputInterface</abbr></a> </span>
  374. </dt>
  375. <dd>returns a fresh (built-in) QROutputInterface</dd>
  376. </dl>
  377. <section class="phpdocumentor-constants">
  378. <h3 class="phpdocumentor-elements__header" id="constants">
  379. Constants
  380. <a href="classes/chillerlan-QRCode-QRCode.html#constants" class="headerlink"><i class="fas fa-link"></i></a>
  381. </h3>
  382. <article class="phpdocumentor-element -constant -public ">
  383. <h4 class="phpdocumentor-element__name" id="constant_ECC_H">
  384. ECC_H
  385. <a href="classes/chillerlan-QRCode-QRCode.html#constant_ECC_H" class="headerlink"><i class="fas fa-link"></i></a>
  386. </h4>
  387. <aside class="phpdocumentor-element-found-in">
  388. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  389. :
  390. <span class="phpdocumentor-element-found-in__line">47</span>
  391. </aside>
  392. <code class="phpdocumentor-signature phpdocumentor-code ">
  393. <span class="phpdocumentor-signature__visibility">public</span>
  394. <span class="phpdocumentor-signature__type">int</span>
  395. <span class="phpdocumentor-signature__name">ECC_H</span>
  396. = <span class="phpdocumentor-signature__default-value">chillerlanQRCodeCommonEccLevel::H</span>
  397. </code>
  398. </article>
  399. <article class="phpdocumentor-element -constant -public ">
  400. <h4 class="phpdocumentor-element__name" id="constant_ECC_L">
  401. ECC_L
  402. <a href="classes/chillerlan-QRCode-QRCode.html#constant_ECC_L" class="headerlink"><i class="fas fa-link"></i></a>
  403. </h4>
  404. <aside class="phpdocumentor-element-found-in">
  405. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  406. :
  407. <span class="phpdocumentor-element-found-in__line">41</span>
  408. </aside>
  409. <code class="phpdocumentor-signature phpdocumentor-code ">
  410. <span class="phpdocumentor-signature__visibility">public</span>
  411. <span class="phpdocumentor-signature__type">int</span>
  412. <span class="phpdocumentor-signature__name">ECC_L</span>
  413. = <span class="phpdocumentor-signature__default-value">chillerlanQRCodeCommonEccLevel::L</span>
  414. </code>
  415. </article>
  416. <article class="phpdocumentor-element -constant -public ">
  417. <h4 class="phpdocumentor-element__name" id="constant_ECC_M">
  418. ECC_M
  419. <a href="classes/chillerlan-QRCode-QRCode.html#constant_ECC_M" class="headerlink"><i class="fas fa-link"></i></a>
  420. </h4>
  421. <aside class="phpdocumentor-element-found-in">
  422. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  423. :
  424. <span class="phpdocumentor-element-found-in__line">43</span>
  425. </aside>
  426. <code class="phpdocumentor-signature phpdocumentor-code ">
  427. <span class="phpdocumentor-signature__visibility">public</span>
  428. <span class="phpdocumentor-signature__type">int</span>
  429. <span class="phpdocumentor-signature__name">ECC_M</span>
  430. = <span class="phpdocumentor-signature__default-value">chillerlanQRCodeCommonEccLevel::M</span>
  431. </code>
  432. </article>
  433. <article class="phpdocumentor-element -constant -public ">
  434. <h4 class="phpdocumentor-element__name" id="constant_ECC_Q">
  435. ECC_Q
  436. <a href="classes/chillerlan-QRCode-QRCode.html#constant_ECC_Q" class="headerlink"><i class="fas fa-link"></i></a>
  437. </h4>
  438. <aside class="phpdocumentor-element-found-in">
  439. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  440. :
  441. <span class="phpdocumentor-element-found-in__line">45</span>
  442. </aside>
  443. <code class="phpdocumentor-signature phpdocumentor-code ">
  444. <span class="phpdocumentor-signature__visibility">public</span>
  445. <span class="phpdocumentor-signature__type">int</span>
  446. <span class="phpdocumentor-signature__name">ECC_Q</span>
  447. = <span class="phpdocumentor-signature__default-value">chillerlanQRCodeCommonEccLevel::Q</span>
  448. </code>
  449. </article>
  450. <article class="phpdocumentor-element -constant -public ">
  451. <h4 class="phpdocumentor-element__name" id="constant_MASK_PATTERN_AUTO">
  452. MASK_PATTERN_AUTO
  453. <a href="classes/chillerlan-QRCode-QRCode.html#constant_MASK_PATTERN_AUTO" class="headerlink"><i class="fas fa-link"></i></a>
  454. </h4>
  455. <aside class="phpdocumentor-element-found-in">
  456. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  457. :
  458. <span class="phpdocumentor-element-found-in__line">34</span>
  459. </aside>
  460. <code class="phpdocumentor-signature phpdocumentor-code ">
  461. <span class="phpdocumentor-signature__visibility">public</span>
  462. <span class="phpdocumentor-signature__type">int</span>
  463. <span class="phpdocumentor-signature__name">MASK_PATTERN_AUTO</span>
  464. = <span class="phpdocumentor-signature__default-value">-1</span>
  465. </code>
  466. </article>
  467. <article class="phpdocumentor-element -constant -public ">
  468. <h4 class="phpdocumentor-element__name" id="constant_OUTPUT_CUSTOM">
  469. OUTPUT_CUSTOM
  470. <a href="classes/chillerlan-QRCode-QRCode.html#constant_OUTPUT_CUSTOM" class="headerlink"><i class="fas fa-link"></i></a>
  471. </h4>
  472. <aside class="phpdocumentor-element-found-in">
  473. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  474. :
  475. <span class="phpdocumentor-element-found-in__line">68</span>
  476. </aside>
  477. <code class="phpdocumentor-signature phpdocumentor-code ">
  478. <span class="phpdocumentor-signature__visibility">public</span>
  479. <span class="phpdocumentor-signature__type">string</span>
  480. <span class="phpdocumentor-signature__name">OUTPUT_CUSTOM</span>
  481. = <span class="phpdocumentor-signature__default-value">&#039;custom&#039;</span>
  482. </code>
  483. </article>
  484. <article class="phpdocumentor-element -constant -public ">
  485. <h4 class="phpdocumentor-element__name" id="constant_OUTPUT_FPDF">
  486. OUTPUT_FPDF
  487. <a href="classes/chillerlan-QRCode-QRCode.html#constant_OUTPUT_FPDF" class="headerlink"><i class="fas fa-link"></i></a>
  488. </h4>
  489. <aside class="phpdocumentor-element-found-in">
  490. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  491. :
  492. <span class="phpdocumentor-element-found-in__line">66</span>
  493. </aside>
  494. <code class="phpdocumentor-signature phpdocumentor-code ">
  495. <span class="phpdocumentor-signature__visibility">public</span>
  496. <span class="phpdocumentor-signature__type">string</span>
  497. <span class="phpdocumentor-signature__name">OUTPUT_FPDF</span>
  498. = <span class="phpdocumentor-signature__default-value">&#039;fpdf&#039;</span>
  499. </code>
  500. </article>
  501. <article class="phpdocumentor-element -constant -public ">
  502. <h4 class="phpdocumentor-element__name" id="constant_OUTPUT_IMAGE_GIF">
  503. OUTPUT_IMAGE_GIF
  504. <a href="classes/chillerlan-QRCode-QRCode.html#constant_OUTPUT_IMAGE_GIF" class="headerlink"><i class="fas fa-link"></i></a>
  505. </h4>
  506. <aside class="phpdocumentor-element-found-in">
  507. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  508. :
  509. <span class="phpdocumentor-element-found-in__line">58</span>
  510. </aside>
  511. <code class="phpdocumentor-signature phpdocumentor-code ">
  512. <span class="phpdocumentor-signature__visibility">public</span>
  513. <span class="phpdocumentor-signature__type">string</span>
  514. <span class="phpdocumentor-signature__name">OUTPUT_IMAGE_GIF</span>
  515. = <span class="phpdocumentor-signature__default-value">&#039;gif&#039;</span>
  516. </code>
  517. </article>
  518. <article class="phpdocumentor-element -constant -public ">
  519. <h4 class="phpdocumentor-element__name" id="constant_OUTPUT_IMAGE_JPG">
  520. OUTPUT_IMAGE_JPG
  521. <a href="classes/chillerlan-QRCode-QRCode.html#constant_OUTPUT_IMAGE_JPG" class="headerlink"><i class="fas fa-link"></i></a>
  522. </h4>
  523. <aside class="phpdocumentor-element-found-in">
  524. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  525. :
  526. <span class="phpdocumentor-element-found-in__line">56</span>
  527. </aside>
  528. <code class="phpdocumentor-signature phpdocumentor-code ">
  529. <span class="phpdocumentor-signature__visibility">public</span>
  530. <span class="phpdocumentor-signature__type">string</span>
  531. <span class="phpdocumentor-signature__name">OUTPUT_IMAGE_JPG</span>
  532. = <span class="phpdocumentor-signature__default-value">&#039;jpg&#039;</span>
  533. </code>
  534. </article>
  535. <article class="phpdocumentor-element -constant -public ">
  536. <h4 class="phpdocumentor-element__name" id="constant_OUTPUT_IMAGE_PNG">
  537. OUTPUT_IMAGE_PNG
  538. <a href="classes/chillerlan-QRCode-QRCode.html#constant_OUTPUT_IMAGE_PNG" class="headerlink"><i class="fas fa-link"></i></a>
  539. </h4>
  540. <aside class="phpdocumentor-element-found-in">
  541. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  542. :
  543. <span class="phpdocumentor-element-found-in__line">54</span>
  544. </aside>
  545. <code class="phpdocumentor-signature phpdocumentor-code ">
  546. <span class="phpdocumentor-signature__visibility">public</span>
  547. <span class="phpdocumentor-signature__type">string</span>
  548. <span class="phpdocumentor-signature__name">OUTPUT_IMAGE_PNG</span>
  549. = <span class="phpdocumentor-signature__default-value">&#039;png&#039;</span>
  550. </code>
  551. </article>
  552. <article class="phpdocumentor-element -constant -public ">
  553. <h4 class="phpdocumentor-element__name" id="constant_OUTPUT_IMAGICK">
  554. OUTPUT_IMAGICK
  555. <a href="classes/chillerlan-QRCode-QRCode.html#constant_OUTPUT_IMAGICK" class="headerlink"><i class="fas fa-link"></i></a>
  556. </h4>
  557. <aside class="phpdocumentor-element-found-in">
  558. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  559. :
  560. <span class="phpdocumentor-element-found-in__line">64</span>
  561. </aside>
  562. <code class="phpdocumentor-signature phpdocumentor-code ">
  563. <span class="phpdocumentor-signature__visibility">public</span>
  564. <span class="phpdocumentor-signature__type">string</span>
  565. <span class="phpdocumentor-signature__name">OUTPUT_IMAGICK</span>
  566. = <span class="phpdocumentor-signature__default-value">&#039;imagick&#039;</span>
  567. </code>
  568. </article>
  569. <article class="phpdocumentor-element -constant -public ">
  570. <h4 class="phpdocumentor-element__name" id="constant_OUTPUT_MARKUP_HTML">
  571. OUTPUT_MARKUP_HTML
  572. <a href="classes/chillerlan-QRCode-QRCode.html#constant_OUTPUT_MARKUP_HTML" class="headerlink"><i class="fas fa-link"></i></a>
  573. </h4>
  574. <aside class="phpdocumentor-element-found-in">
  575. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  576. :
  577. <span class="phpdocumentor-element-found-in__line">50</span>
  578. </aside>
  579. <code class="phpdocumentor-signature phpdocumentor-code ">
  580. <span class="phpdocumentor-signature__visibility">public</span>
  581. <span class="phpdocumentor-signature__type">string</span>
  582. <span class="phpdocumentor-signature__name">OUTPUT_MARKUP_HTML</span>
  583. = <span class="phpdocumentor-signature__default-value">&#039;html&#039;</span>
  584. </code>
  585. </article>
  586. <article class="phpdocumentor-element -constant -public ">
  587. <h4 class="phpdocumentor-element__name" id="constant_OUTPUT_MARKUP_SVG">
  588. OUTPUT_MARKUP_SVG
  589. <a href="classes/chillerlan-QRCode-QRCode.html#constant_OUTPUT_MARKUP_SVG" class="headerlink"><i class="fas fa-link"></i></a>
  590. </h4>
  591. <aside class="phpdocumentor-element-found-in">
  592. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  593. :
  594. <span class="phpdocumentor-element-found-in__line">52</span>
  595. </aside>
  596. <code class="phpdocumentor-signature phpdocumentor-code ">
  597. <span class="phpdocumentor-signature__visibility">public</span>
  598. <span class="phpdocumentor-signature__type">string</span>
  599. <span class="phpdocumentor-signature__name">OUTPUT_MARKUP_SVG</span>
  600. = <span class="phpdocumentor-signature__default-value">&#039;svg&#039;</span>
  601. </code>
  602. </article>
  603. <article class="phpdocumentor-element -constant -public ">
  604. <h4 class="phpdocumentor-element__name" id="constant_OUTPUT_MODES">
  605. OUTPUT_MODES
  606. <a href="classes/chillerlan-QRCode-QRCode.html#constant_OUTPUT_MODES" class="headerlink"><i class="fas fa-link"></i></a>
  607. </h4>
  608. <aside class="phpdocumentor-element-found-in">
  609. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  610. :
  611. <span class="phpdocumentor-element-found-in__line">75</span>
  612. </aside>
  613. <p class="phpdocumentor-summary">Map of built-in output modules =&gt; capabilities</p>
  614. <code class="phpdocumentor-signature phpdocumentor-code ">
  615. <span class="phpdocumentor-signature__visibility">public</span>
  616. <span class="phpdocumentor-signature__type">array&lt;string|int, array&lt;string|int, string&gt;&gt;</span>
  617. <span class="phpdocumentor-signature__name">OUTPUT_MODES</span>
  618. = <span class="phpdocumentor-signature__default-value">[chillerlanQRCodeOutputQRMarkup::class =&gt; [self::OUTPUT_MARKUP_SVG, self::OUTPUT_MARKUP_HTML], chillerlanQRCodeOutputQRImage::class =&gt; [self::OUTPUT_IMAGE_PNG, self::OUTPUT_IMAGE_GIF, self::OUTPUT_IMAGE_JPG], chillerlanQRCodeOutputQRString::class =&gt; [self::OUTPUT_STRING_JSON, self::OUTPUT_STRING_TEXT], chillerlanQRCodeOutputQRImagick::class =&gt; [self::OUTPUT_IMAGICK], chillerlanQRCodeOutputQRFpdf::class =&gt; [self::OUTPUT_FPDF]]</span>
  619. </code>
  620. </article>
  621. <article class="phpdocumentor-element -constant -public ">
  622. <h4 class="phpdocumentor-element__name" id="constant_OUTPUT_STRING_JSON">
  623. OUTPUT_STRING_JSON
  624. <a href="classes/chillerlan-QRCode-QRCode.html#constant_OUTPUT_STRING_JSON" class="headerlink"><i class="fas fa-link"></i></a>
  625. </h4>
  626. <aside class="phpdocumentor-element-found-in">
  627. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  628. :
  629. <span class="phpdocumentor-element-found-in__line">60</span>
  630. </aside>
  631. <code class="phpdocumentor-signature phpdocumentor-code ">
  632. <span class="phpdocumentor-signature__visibility">public</span>
  633. <span class="phpdocumentor-signature__type">string</span>
  634. <span class="phpdocumentor-signature__name">OUTPUT_STRING_JSON</span>
  635. = <span class="phpdocumentor-signature__default-value">&#039;json&#039;</span>
  636. </code>
  637. </article>
  638. <article class="phpdocumentor-element -constant -public ">
  639. <h4 class="phpdocumentor-element__name" id="constant_OUTPUT_STRING_TEXT">
  640. OUTPUT_STRING_TEXT
  641. <a href="classes/chillerlan-QRCode-QRCode.html#constant_OUTPUT_STRING_TEXT" class="headerlink"><i class="fas fa-link"></i></a>
  642. </h4>
  643. <aside class="phpdocumentor-element-found-in">
  644. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  645. :
  646. <span class="phpdocumentor-element-found-in__line">62</span>
  647. </aside>
  648. <code class="phpdocumentor-signature phpdocumentor-code ">
  649. <span class="phpdocumentor-signature__visibility">public</span>
  650. <span class="phpdocumentor-signature__type">string</span>
  651. <span class="phpdocumentor-signature__name">OUTPUT_STRING_TEXT</span>
  652. = <span class="phpdocumentor-signature__default-value">&#039;text&#039;</span>
  653. </code>
  654. </article>
  655. <article class="phpdocumentor-element -constant -public ">
  656. <h4 class="phpdocumentor-element__name" id="constant_VERSION_AUTO">
  657. VERSION_AUTO
  658. <a href="classes/chillerlan-QRCode-QRCode.html#constant_VERSION_AUTO" class="headerlink"><i class="fas fa-link"></i></a>
  659. </h4>
  660. <aside class="phpdocumentor-element-found-in">
  661. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  662. :
  663. <span class="phpdocumentor-element-found-in__line">32</span>
  664. </aside>
  665. <code class="phpdocumentor-signature phpdocumentor-code ">
  666. <span class="phpdocumentor-signature__visibility">public</span>
  667. <span class="phpdocumentor-signature__type">int</span>
  668. <span class="phpdocumentor-signature__name">VERSION_AUTO</span>
  669. = <span class="phpdocumentor-signature__default-value">-1</span>
  670. </code>
  671. </article>
  672. </section>
  673. <section class="phpdocumentor-properties">
  674. <h3 class="phpdocumentor-elements__header" id="properties">
  675. Properties
  676. <a href="classes/chillerlan-QRCode-QRCode.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  677. </h3>
  678. <article
  679. class="
  680. phpdocumentor-element
  681. -property
  682. -protected
  683. "
  684. >
  685. <h4 class="phpdocumentor-element__name" id="property_dataSegments">
  686. $dataSegments
  687. <a href="classes/chillerlan-QRCode-QRCode.html#property_dataSegments" class="headerlink"><i class="fas fa-link"></i></a>
  688. <span class="phpdocumentor-element__modifiers">
  689. </span>
  690. </h4>
  691. <aside class="phpdocumentor-element-found-in">
  692. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  693. :
  694. <span class="phpdocumentor-element-found-in__line">111</span>
  695. </aside>
  696. <p class="phpdocumentor-summary">A collection of one or more data segments of [classname, data] to write</p>
  697. <code class="phpdocumentor-code phpdocumentor-signature ">
  698. <span class="phpdocumentor-signature__visibility">protected</span>
  699. <span class="phpdocumentor-signature__type">array&lt;string|int, mixed&gt;</span>
  700. <span class="phpdocumentor-signature__name">$dataSegments</span>
  701. = <span class="phpdocumentor-signature__default-value">[]</span></code>
  702. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  703. Tags
  704. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  705. </h5>
  706. <dl class="phpdocumentor-tag-list">
  707. <dt class="phpdocumentor-tag-list__entry">
  708. <span class="phpdocumentor-tag__name">see</span>
  709. </dt>
  710. <dd class="phpdocumentor-tag-list__definition">
  711. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Data-QRDataModeInterface.html"><abbr title="\chillerlan\QRCode\Data\QRDataModeInterface">QRDataModeInterface</abbr></a></span>
  712. </dd>
  713. </dl>
  714. </article>
  715. <article
  716. class="
  717. phpdocumentor-element
  718. -property
  719. -protected
  720. "
  721. >
  722. <h4 class="phpdocumentor-element__name" id="property_options">
  723. $options
  724. <a href="classes/chillerlan-QRCode-QRCode.html#property_options" class="headerlink"><i class="fas fa-link"></i></a>
  725. <span class="phpdocumentor-element__modifiers">
  726. </span>
  727. </h4>
  728. <aside class="phpdocumentor-element-found-in">
  729. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  730. :
  731. <span class="phpdocumentor-element-found-in__line">102</span>
  732. </aside>
  733. <p class="phpdocumentor-summary">The settings container</p>
  734. <code class="phpdocumentor-code phpdocumentor-signature ">
  735. <span class="phpdocumentor-signature__visibility">protected</span>
  736. <span class="phpdocumentor-signature__type"><abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr></span>
  737. <span class="phpdocumentor-signature__name">$options</span>
  738. </code>
  739. </article>
  740. </section>
  741. <section class="phpdocumentor-methods">
  742. <h3 class="phpdocumentor-elements__header" id="methods">
  743. Methods
  744. <a href="classes/chillerlan-QRCode-QRCode.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  745. </h3>
  746. <article
  747. class="phpdocumentor-element
  748. -method
  749. -public
  750. "
  751. >
  752. <h4 class="phpdocumentor-element__name" id="method___construct">
  753. __construct()
  754. <a href="classes/chillerlan-QRCode-QRCode.html#method___construct" class="headerlink"><i class="fas fa-link"></i></a>
  755. </h4>
  756. <aside class="phpdocumentor-element-found-in">
  757. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  758. :
  759. <span class="phpdocumentor-element-found-in__line">118</span>
  760. </aside>
  761. <p class="phpdocumentor-summary">QRCode constructor.</p>
  762. <code class="phpdocumentor-code phpdocumentor-signature ">
  763. <span class="phpdocumentor-signature__visibility">public</span>
  764. <span class="phpdocumentor-signature__name">__construct</span><span>(</span><span class="phpdocumentor-signature__argument"><span>[</span><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><span class="phpdocumentor-signature__argument__default-value">null</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
  765. <section class="phpdocumentor-description"><p>Sets the options instance</p>
  766. </section>
  767. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  768. <dl class="phpdocumentor-argument-list">
  769. <dt class="phpdocumentor-argument-list__entry">
  770. <span class="phpdocumentor-signature__argument__name">$options</span>
  771. : <span class="phpdocumentor-signature__argument__return-type"><abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr></span>
  772. = <span class="phpdocumentor-signature__argument__default-value">null</span> </dt>
  773. <dd class="phpdocumentor-argument-list__definition">
  774. <section class="phpdocumentor-description"></section>
  775. </dd>
  776. </dl>
  777. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  778. <span class="phpdocumentor-signature__response_type">mixed</span>
  779. &mdash;
  780. </article>
  781. <article
  782. class="phpdocumentor-element
  783. -method
  784. -public
  785. "
  786. >
  787. <h4 class="phpdocumentor-element__name" id="method_addAlphaNumSegment">
  788. addAlphaNumSegment()
  789. <a href="classes/chillerlan-QRCode-QRCode.html#method_addAlphaNumSegment" class="headerlink"><i class="fas fa-link"></i></a>
  790. </h4>
  791. <aside class="phpdocumentor-element-found-in">
  792. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  793. :
  794. <span class="phpdocumentor-element-found-in__line">275</span>
  795. </aside>
  796. <p class="phpdocumentor-summary">Adds an alphanumeric data segment</p>
  797. <code class="phpdocumentor-code phpdocumentor-signature ">
  798. <span class="phpdocumentor-signature__visibility">public</span>
  799. <span class="phpdocumentor-signature__name">addAlphaNumSegment</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>)</span><span> : </span><span class="phpdocumentor-signature__response_type">self</span></code>
  800. <section class="phpdocumentor-description"><p>ISO/IEC 18004:2000 8.3.3 - Alphanumeric Mode</p>
  801. </section>
  802. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  803. <dl class="phpdocumentor-argument-list">
  804. <dt class="phpdocumentor-argument-list__entry">
  805. <span class="phpdocumentor-signature__argument__name">$data</span>
  806. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  807. </dt>
  808. <dd class="phpdocumentor-argument-list__definition">
  809. <section class="phpdocumentor-description"></section>
  810. </dd>
  811. </dl>
  812. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  813. <span class="phpdocumentor-signature__response_type">self</span>
  814. &mdash;
  815. </article>
  816. <article
  817. class="phpdocumentor-element
  818. -method
  819. -public
  820. "
  821. >
  822. <h4 class="phpdocumentor-element__name" id="method_addByteSegment">
  823. addByteSegment()
  824. <a href="classes/chillerlan-QRCode-QRCode.html#method_addByteSegment" class="headerlink"><i class="fas fa-link"></i></a>
  825. </h4>
  826. <aside class="phpdocumentor-element-found-in">
  827. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  828. :
  829. <span class="phpdocumentor-element-found-in__line">297</span>
  830. </aside>
  831. <p class="phpdocumentor-summary">Adds an 8-bit byte data segment</p>
  832. <code class="phpdocumentor-code phpdocumentor-signature ">
  833. <span class="phpdocumentor-signature__visibility">public</span>
  834. <span class="phpdocumentor-signature__name">addByteSegment</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>)</span><span> : </span><span class="phpdocumentor-signature__response_type">self</span></code>
  835. <section class="phpdocumentor-description"><p>ISO/IEC 18004:2000 8.3.4 - 8-bit Byte Mode</p>
  836. </section>
  837. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  838. <dl class="phpdocumentor-argument-list">
  839. <dt class="phpdocumentor-argument-list__entry">
  840. <span class="phpdocumentor-signature__argument__name">$data</span>
  841. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  842. </dt>
  843. <dd class="phpdocumentor-argument-list__definition">
  844. <section class="phpdocumentor-description"></section>
  845. </dd>
  846. </dl>
  847. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  848. <span class="phpdocumentor-signature__response_type">self</span>
  849. &mdash;
  850. </article>
  851. <article
  852. class="phpdocumentor-element
  853. -method
  854. -public
  855. "
  856. >
  857. <h4 class="phpdocumentor-element__name" id="method_addEciDesignator">
  858. addEciDesignator()
  859. <a href="classes/chillerlan-QRCode-QRCode.html#method_addEciDesignator" class="headerlink"><i class="fas fa-link"></i></a>
  860. </h4>
  861. <aside class="phpdocumentor-element-found-in">
  862. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  863. :
  864. <span class="phpdocumentor-element-found-in__line">308</span>
  865. </aside>
  866. <p class="phpdocumentor-summary">Adds a standalone ECI designator</p>
  867. <code class="phpdocumentor-code phpdocumentor-signature ">
  868. <span class="phpdocumentor-signature__visibility">public</span>
  869. <span class="phpdocumentor-signature__name">addEciDesignator</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$encoding</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">self</span></code>
  870. <section class="phpdocumentor-description"><p>ISO/IEC 18004:2000 8.3.1 - Extended Channel Interpretation (ECI) Mode</p>
  871. </section>
  872. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  873. <dl class="phpdocumentor-argument-list">
  874. <dt class="phpdocumentor-argument-list__entry">
  875. <span class="phpdocumentor-signature__argument__name">$encoding</span>
  876. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  877. </dt>
  878. <dd class="phpdocumentor-argument-list__definition">
  879. <section class="phpdocumentor-description"></section>
  880. </dd>
  881. </dl>
  882. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  883. <span class="phpdocumentor-signature__response_type">self</span>
  884. &mdash;
  885. </article>
  886. <article
  887. class="phpdocumentor-element
  888. -method
  889. -public
  890. "
  891. >
  892. <h4 class="phpdocumentor-element__name" id="method_addEciSegment">
  893. addEciSegment()
  894. <a href="classes/chillerlan-QRCode-QRCode.html#method_addEciSegment" class="headerlink"><i class="fas fa-link"></i></a>
  895. </h4>
  896. <aside class="phpdocumentor-element-found-in">
  897. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  898. :
  899. <span class="phpdocumentor-element-found-in__line">321</span>
  900. </aside>
  901. <p class="phpdocumentor-summary">Adds an ECI data segment (including designator)</p>
  902. <code class="phpdocumentor-code phpdocumentor-signature ">
  903. <span class="phpdocumentor-signature__visibility">public</span>
  904. <span class="phpdocumentor-signature__name">addEciSegment</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$encoding</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">$data</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">self</span></code>
  905. <section class="phpdocumentor-description"><p>i hate this somehow but i'll leave it for now</p>
  906. </section>
  907. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  908. <dl class="phpdocumentor-argument-list">
  909. <dt class="phpdocumentor-argument-list__entry">
  910. <span class="phpdocumentor-signature__argument__name">$encoding</span>
  911. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  912. </dt>
  913. <dd class="phpdocumentor-argument-list__definition">
  914. <section class="phpdocumentor-description"></section>
  915. </dd>
  916. <dt class="phpdocumentor-argument-list__entry">
  917. <span class="phpdocumentor-signature__argument__name">$data</span>
  918. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  919. </dt>
  920. <dd class="phpdocumentor-argument-list__definition">
  921. <section class="phpdocumentor-description"></section>
  922. </dd>
  923. </dl>
  924. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  925. Tags
  926. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  927. </h5>
  928. <dl class="phpdocumentor-tag-list">
  929. <dt class="phpdocumentor-tag-list__entry">
  930. <span class="phpdocumentor-tag__name">throws</span>
  931. </dt>
  932. <dd class="phpdocumentor-tag-list__definition">
  933. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-QRCodeException.html"><abbr title="\chillerlan\QRCode\QRCodeException">QRCodeException</abbr></a></span>
  934. </dd>
  935. </dl>
  936. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  937. <span class="phpdocumentor-signature__response_type">self</span>
  938. &mdash;
  939. </article>
  940. <article
  941. class="phpdocumentor-element
  942. -method
  943. -public
  944. "
  945. >
  946. <h4 class="phpdocumentor-element__name" id="method_addKanjiSegment">
  947. addKanjiSegment()
  948. <a href="classes/chillerlan-QRCode-QRCode.html#method_addKanjiSegment" class="headerlink"><i class="fas fa-link"></i></a>
  949. </h4>
  950. <aside class="phpdocumentor-element-found-in">
  951. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  952. :
  953. <span class="phpdocumentor-element-found-in__line">286</span>
  954. </aside>
  955. <p class="phpdocumentor-summary">Adds a Kanji data segment</p>
  956. <code class="phpdocumentor-code phpdocumentor-signature ">
  957. <span class="phpdocumentor-signature__visibility">public</span>
  958. <span class="phpdocumentor-signature__name">addKanjiSegment</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>)</span><span> : </span><span class="phpdocumentor-signature__response_type">self</span></code>
  959. <section class="phpdocumentor-description"><p>ISO/IEC 18004:2000 8.3.5 - Kanji Mode</p>
  960. </section>
  961. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  962. <dl class="phpdocumentor-argument-list">
  963. <dt class="phpdocumentor-argument-list__entry">
  964. <span class="phpdocumentor-signature__argument__name">$data</span>
  965. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  966. </dt>
  967. <dd class="phpdocumentor-argument-list__definition">
  968. <section class="phpdocumentor-description"></section>
  969. </dd>
  970. </dl>
  971. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  972. <span class="phpdocumentor-signature__response_type">self</span>
  973. &mdash;
  974. </article>
  975. <article
  976. class="phpdocumentor-element
  977. -method
  978. -public
  979. "
  980. >
  981. <h4 class="phpdocumentor-element__name" id="method_addNumericSegment">
  982. addNumericSegment()
  983. <a href="classes/chillerlan-QRCode-QRCode.html#method_addNumericSegment" class="headerlink"><i class="fas fa-link"></i></a>
  984. </h4>
  985. <aside class="phpdocumentor-element-found-in">
  986. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  987. :
  988. <span class="phpdocumentor-element-found-in__line">264</span>
  989. </aside>
  990. <p class="phpdocumentor-summary">Adds a numeric data segment</p>
  991. <code class="phpdocumentor-code phpdocumentor-signature ">
  992. <span class="phpdocumentor-signature__visibility">public</span>
  993. <span class="phpdocumentor-signature__name">addNumericSegment</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>)</span><span> : </span><span class="phpdocumentor-signature__response_type">self</span></code>
  994. <section class="phpdocumentor-description"><p>ISO/IEC 18004:2000 8.3.2 - Numeric Mode</p>
  995. </section>
  996. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  997. <dl class="phpdocumentor-argument-list">
  998. <dt class="phpdocumentor-argument-list__entry">
  999. <span class="phpdocumentor-signature__argument__name">$data</span>
  1000. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  1001. </dt>
  1002. <dd class="phpdocumentor-argument-list__definition">
  1003. <section class="phpdocumentor-description"></section>
  1004. </dd>
  1005. </dl>
  1006. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1007. <span class="phpdocumentor-signature__response_type">self</span>
  1008. &mdash;
  1009. </article>
  1010. <article
  1011. class="phpdocumentor-element
  1012. -method
  1013. -public
  1014. "
  1015. >
  1016. <h4 class="phpdocumentor-element__name" id="method_clearSegments">
  1017. clearSegments()
  1018. <a href="classes/chillerlan-QRCode-QRCode.html#method_clearSegments" class="headerlink"><i class="fas fa-link"></i></a>
  1019. </h4>
  1020. <aside class="phpdocumentor-element-found-in">
  1021. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  1022. :
  1023. <span class="phpdocumentor-element-found-in__line">253</span>
  1024. </aside>
  1025. <p class="phpdocumentor-summary">Clears the data segments array</p>
  1026. <code class="phpdocumentor-code phpdocumentor-signature ">
  1027. <span class="phpdocumentor-signature__visibility">public</span>
  1028. <span class="phpdocumentor-signature__name">clearSegments</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">self</span></code>
  1029. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1030. <span class="phpdocumentor-signature__response_type">self</span>
  1031. &mdash;
  1032. </article>
  1033. <article
  1034. class="phpdocumentor-element
  1035. -method
  1036. -public
  1037. "
  1038. >
  1039. <h4 class="phpdocumentor-element__name" id="method_getMatrix">
  1040. getMatrix()
  1041. <a href="classes/chillerlan-QRCode-QRCode.html#method_getMatrix" class="headerlink"><i class="fas fa-link"></i></a>
  1042. </h4>
  1043. <aside class="phpdocumentor-element-found-in">
  1044. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  1045. :
  1046. <span class="phpdocumentor-element-found-in__line">151</span>
  1047. </aside>
  1048. <p class="phpdocumentor-summary">Returns a QRMatrix object for the given $data and current QROptions</p>
  1049. <code class="phpdocumentor-code phpdocumentor-signature ">
  1050. <span class="phpdocumentor-signature__visibility">public</span>
  1051. <span class="phpdocumentor-signature__name">getMatrix</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a></span></code>
  1052. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  1053. Tags
  1054. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  1055. </h5>
  1056. <dl class="phpdocumentor-tag-list">
  1057. <dt class="phpdocumentor-tag-list__entry">
  1058. <span class="phpdocumentor-tag__name">throws</span>
  1059. </dt>
  1060. <dd class="phpdocumentor-tag-list__definition">
  1061. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Data-QRCodeDataException.html"><abbr title="\chillerlan\QRCode\Data\QRCodeDataException">QRCodeDataException</abbr></a></span>
  1062. </dd>
  1063. </dl>
  1064. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1065. <span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a></span>
  1066. &mdash;
  1067. </article>
  1068. <article
  1069. class="phpdocumentor-element
  1070. -method
  1071. -public
  1072. "
  1073. >
  1074. <h4 class="phpdocumentor-element__name" id="method_isAlphaNum">
  1075. isAlphaNum()
  1076. <a href="classes/chillerlan-QRCode-QRCode.html#method_isAlphaNum" class="headerlink"><i class="fas fa-link"></i></a>
  1077. </h4>
  1078. <aside class="phpdocumentor-element-found-in">
  1079. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  1080. :
  1081. <span class="phpdocumentor-element-found-in__line">222</span>
  1082. </aside>
  1083. <p class="phpdocumentor-summary">checks if a string qualifies as alphanumeric (convenience method)</p>
  1084. <code class="phpdocumentor-code phpdocumentor-signature ">
  1085. <span class="phpdocumentor-signature__visibility">public</span>
  1086. <span class="phpdocumentor-signature__name">isAlphaNum</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$string</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>
  1087. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1088. <dl class="phpdocumentor-argument-list">
  1089. <dt class="phpdocumentor-argument-list__entry">
  1090. <span class="phpdocumentor-signature__argument__name">$string</span>
  1091. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  1092. </dt>
  1093. <dd class="phpdocumentor-argument-list__definition">
  1094. <section class="phpdocumentor-description"></section>
  1095. </dd>
  1096. </dl>
  1097. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1098. <span class="phpdocumentor-signature__response_type">bool</span>
  1099. &mdash;
  1100. </article>
  1101. <article
  1102. class="phpdocumentor-element
  1103. -method
  1104. -public
  1105. "
  1106. >
  1107. <h4 class="phpdocumentor-element__name" id="method_isByte">
  1108. isByte()
  1109. <a href="classes/chillerlan-QRCode-QRCode.html#method_isByte" class="headerlink"><i class="fas fa-link"></i></a>
  1110. </h4>
  1111. <aside class="phpdocumentor-element-found-in">
  1112. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  1113. :
  1114. <span class="phpdocumentor-element-found-in__line">236</span>
  1115. </aside>
  1116. <p class="phpdocumentor-summary">a dummy (convenience method)</p>
  1117. <code class="phpdocumentor-code phpdocumentor-signature ">
  1118. <span class="phpdocumentor-signature__visibility">public</span>
  1119. <span class="phpdocumentor-signature__name">isByte</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$string</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>
  1120. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1121. <dl class="phpdocumentor-argument-list">
  1122. <dt class="phpdocumentor-argument-list__entry">
  1123. <span class="phpdocumentor-signature__argument__name">$string</span>
  1124. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  1125. </dt>
  1126. <dd class="phpdocumentor-argument-list__definition">
  1127. <section class="phpdocumentor-description"></section>
  1128. </dd>
  1129. </dl>
  1130. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1131. <span class="phpdocumentor-signature__response_type">bool</span>
  1132. &mdash;
  1133. </article>
  1134. <article
  1135. class="phpdocumentor-element
  1136. -method
  1137. -public
  1138. "
  1139. >
  1140. <h4 class="phpdocumentor-element__name" id="method_isKanji">
  1141. isKanji()
  1142. <a href="classes/chillerlan-QRCode-QRCode.html#method_isKanji" class="headerlink"><i class="fas fa-link"></i></a>
  1143. </h4>
  1144. <aside class="phpdocumentor-element-found-in">
  1145. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  1146. :
  1147. <span class="phpdocumentor-element-found-in__line">229</span>
  1148. </aside>
  1149. <p class="phpdocumentor-summary">checks if a string qualifies as Kanji (convenience method)</p>
  1150. <code class="phpdocumentor-code phpdocumentor-signature ">
  1151. <span class="phpdocumentor-signature__visibility">public</span>
  1152. <span class="phpdocumentor-signature__name">isKanji</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$string</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>
  1153. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1154. <dl class="phpdocumentor-argument-list">
  1155. <dt class="phpdocumentor-argument-list__entry">
  1156. <span class="phpdocumentor-signature__argument__name">$string</span>
  1157. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  1158. </dt>
  1159. <dd class="phpdocumentor-argument-list__definition">
  1160. <section class="phpdocumentor-description"></section>
  1161. </dd>
  1162. </dl>
  1163. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1164. <span class="phpdocumentor-signature__response_type">bool</span>
  1165. &mdash;
  1166. </article>
  1167. <article
  1168. class="phpdocumentor-element
  1169. -method
  1170. -public
  1171. "
  1172. >
  1173. <h4 class="phpdocumentor-element__name" id="method_isNumber">
  1174. isNumber()
  1175. <a href="classes/chillerlan-QRCode-QRCode.html#method_isNumber" class="headerlink"><i class="fas fa-link"></i></a>
  1176. </h4>
  1177. <aside class="phpdocumentor-element-found-in">
  1178. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  1179. :
  1180. <span class="phpdocumentor-element-found-in__line">215</span>
  1181. </aside>
  1182. <p class="phpdocumentor-summary">checks if a string qualifies as numeric (convenience method)</p>
  1183. <code class="phpdocumentor-code phpdocumentor-signature ">
  1184. <span class="phpdocumentor-signature__visibility">public</span>
  1185. <span class="phpdocumentor-signature__name">isNumber</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$string</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>
  1186. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1187. <dl class="phpdocumentor-argument-list">
  1188. <dt class="phpdocumentor-argument-list__entry">
  1189. <span class="phpdocumentor-signature__argument__name">$string</span>
  1190. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  1191. </dt>
  1192. <dd class="phpdocumentor-argument-list__definition">
  1193. <section class="phpdocumentor-description"></section>
  1194. </dd>
  1195. </dl>
  1196. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1197. <span class="phpdocumentor-signature__response_type">bool</span>
  1198. &mdash;
  1199. </article>
  1200. <article
  1201. class="phpdocumentor-element
  1202. -method
  1203. -public
  1204. "
  1205. >
  1206. <h4 class="phpdocumentor-element__name" id="method_readFromBlob">
  1207. readFromBlob()
  1208. <a href="classes/chillerlan-QRCode-QRCode.html#method_readFromBlob" class="headerlink"><i class="fas fa-link"></i></a>
  1209. </h4>
  1210. <aside class="phpdocumentor-element-found-in">
  1211. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  1212. :
  1213. <span class="phpdocumentor-element-found-in__line">349</span>
  1214. </aside>
  1215. <p class="phpdocumentor-summary">Reads a QR Code from the given data blob</p>
  1216. <code class="phpdocumentor-code phpdocumentor-signature ">
  1217. <span class="phpdocumentor-signature__visibility">public</span>
  1218. <span class="phpdocumentor-signature__name">readFromBlob</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$blob</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Decoder-DecoderResult.html"><abbr title="\chillerlan\QRCode\Decoder\DecoderResult">DecoderResult</abbr></a></span></code>
  1219. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1220. <dl class="phpdocumentor-argument-list">
  1221. <dt class="phpdocumentor-argument-list__entry">
  1222. <span class="phpdocumentor-signature__argument__name">$blob</span>
  1223. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  1224. </dt>
  1225. <dd class="phpdocumentor-argument-list__definition">
  1226. <section class="phpdocumentor-description"></section>
  1227. </dd>
  1228. </dl>
  1229. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1230. <span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Decoder-DecoderResult.html"><abbr title="\chillerlan\QRCode\Decoder\DecoderResult">DecoderResult</abbr></a></span>
  1231. &mdash;
  1232. </article>
  1233. <article
  1234. class="phpdocumentor-element
  1235. -method
  1236. -public
  1237. "
  1238. >
  1239. <h4 class="phpdocumentor-element__name" id="method_readFromFile">
  1240. readFromFile()
  1241. <a href="classes/chillerlan-QRCode-QRCode.html#method_readFromFile" class="headerlink"><i class="fas fa-link"></i></a>
  1242. </h4>
  1243. <aside class="phpdocumentor-element-found-in">
  1244. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  1245. :
  1246. <span class="phpdocumentor-element-found-in__line">342</span>
  1247. </aside>
  1248. <p class="phpdocumentor-summary">Reads a QR Code from a given file</p>
  1249. <code class="phpdocumentor-code phpdocumentor-signature ">
  1250. <span class="phpdocumentor-signature__visibility">public</span>
  1251. <span class="phpdocumentor-signature__name">readFromFile</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>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Decoder-DecoderResult.html"><abbr title="\chillerlan\QRCode\Decoder\DecoderResult">DecoderResult</abbr></a></span></code>
  1252. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1253. <dl class="phpdocumentor-argument-list">
  1254. <dt class="phpdocumentor-argument-list__entry">
  1255. <span class="phpdocumentor-signature__argument__name">$path</span>
  1256. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  1257. </dt>
  1258. <dd class="phpdocumentor-argument-list__definition">
  1259. <section class="phpdocumentor-description"></section>
  1260. </dd>
  1261. </dl>
  1262. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1263. <span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Decoder-DecoderResult.html"><abbr title="\chillerlan\QRCode\Decoder\DecoderResult">DecoderResult</abbr></a></span>
  1264. &mdash;
  1265. </article>
  1266. <article
  1267. class="phpdocumentor-element
  1268. -method
  1269. -public
  1270. "
  1271. >
  1272. <h4 class="phpdocumentor-element__name" id="method_readFromSource">
  1273. readFromSource()
  1274. <a href="classes/chillerlan-QRCode-QRCode.html#method_readFromSource" class="headerlink"><i class="fas fa-link"></i></a>
  1275. </h4>
  1276. <aside class="phpdocumentor-element-found-in">
  1277. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  1278. :
  1279. <span class="phpdocumentor-element-found-in__line">356</span>
  1280. </aside>
  1281. <p class="phpdocumentor-summary">Reads a QR Code from the given luminance source</p>
  1282. <code class="phpdocumentor-code phpdocumentor-signature ">
  1283. <span class="phpdocumentor-signature__visibility">public</span>
  1284. <span class="phpdocumentor-signature__name">readFromSource</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Decoder-LuminanceSourceInterface.html"><abbr title="\chillerlan\QRCode\Decoder\LuminanceSourceInterface">LuminanceSourceInterface</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$source</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Decoder-DecoderResult.html"><abbr title="\chillerlan\QRCode\Decoder\DecoderResult">DecoderResult</abbr></a></span></code>
  1285. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1286. <dl class="phpdocumentor-argument-list">
  1287. <dt class="phpdocumentor-argument-list__entry">
  1288. <span class="phpdocumentor-signature__argument__name">$source</span>
  1289. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Decoder-LuminanceSourceInterface.html"><abbr title="\chillerlan\QRCode\Decoder\LuminanceSourceInterface">LuminanceSourceInterface</abbr></a></span>
  1290. </dt>
  1291. <dd class="phpdocumentor-argument-list__definition">
  1292. <section class="phpdocumentor-description"></section>
  1293. </dd>
  1294. </dl>
  1295. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1296. <span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Decoder-DecoderResult.html"><abbr title="\chillerlan\QRCode\Decoder\DecoderResult">DecoderResult</abbr></a></span>
  1297. &mdash;
  1298. </article>
  1299. <article
  1300. class="phpdocumentor-element
  1301. -method
  1302. -public
  1303. "
  1304. >
  1305. <h4 class="phpdocumentor-element__name" id="method_render">
  1306. render()
  1307. <a href="classes/chillerlan-QRCode-QRCode.html#method_render" class="headerlink"><i class="fas fa-link"></i></a>
  1308. </h4>
  1309. <aside class="phpdocumentor-element-found-in">
  1310. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  1311. :
  1312. <span class="phpdocumentor-element-found-in__line">127</span>
  1313. </aside>
  1314. <p class="phpdocumentor-summary">Renders a QR Code for the given $data and QROptions</p>
  1315. <code class="phpdocumentor-code phpdocumentor-signature ">
  1316. <span class="phpdocumentor-signature__visibility">public</span>
  1317. <span class="phpdocumentor-signature__name">render</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">$data</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">null</span><span> ]</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">mixed</span></code>
  1318. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1319. <dl class="phpdocumentor-argument-list">
  1320. <dt class="phpdocumentor-argument-list__entry">
  1321. <span class="phpdocumentor-signature__argument__name">$data</span>
  1322. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  1323. = <span class="phpdocumentor-signature__argument__default-value">null</span> </dt>
  1324. <dd class="phpdocumentor-argument-list__definition">
  1325. <section class="phpdocumentor-description"></section>
  1326. </dd>
  1327. <dt class="phpdocumentor-argument-list__entry">
  1328. <span class="phpdocumentor-signature__argument__name">$file</span>
  1329. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  1330. = <span class="phpdocumentor-signature__argument__default-value">null</span> </dt>
  1331. <dd class="phpdocumentor-argument-list__definition">
  1332. <section class="phpdocumentor-description"></section>
  1333. </dd>
  1334. </dl>
  1335. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1336. <span class="phpdocumentor-signature__response_type">mixed</span>
  1337. &mdash;
  1338. </article>
  1339. <article
  1340. class="phpdocumentor-element
  1341. -method
  1342. -protected
  1343. "
  1344. >
  1345. <h4 class="phpdocumentor-element__name" id="method_addSegment">
  1346. addSegment()
  1347. <a href="classes/chillerlan-QRCode-QRCode.html#method_addSegment" class="headerlink"><i class="fas fa-link"></i></a>
  1348. </h4>
  1349. <aside class="phpdocumentor-element-found-in">
  1350. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  1351. :
  1352. <span class="phpdocumentor-element-found-in__line">246</span>
  1353. </aside>
  1354. <p class="phpdocumentor-summary">Adds a data segment</p>
  1355. <code class="phpdocumentor-code phpdocumentor-signature ">
  1356. <span class="phpdocumentor-signature__visibility">protected</span>
  1357. <span class="phpdocumentor-signature__name">addSegment</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Data-QRDataModeInterface.html"><abbr title="\chillerlan\QRCode\Data\QRDataModeInterface">QRDataModeInterface</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$segment</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  1358. <section class="phpdocumentor-description"><p>ISO/IEC 18004:2000 8.3.6 - Mixing modes
  1359. ISO/IEC 18004:2000 Annex H - Optimisation of bit stream length</p>
  1360. </section>
  1361. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1362. <dl class="phpdocumentor-argument-list">
  1363. <dt class="phpdocumentor-argument-list__entry">
  1364. <span class="phpdocumentor-signature__argument__name">$segment</span>
  1365. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Data-QRDataModeInterface.html"><abbr title="\chillerlan\QRCode\Data\QRDataModeInterface">QRDataModeInterface</abbr></a></span>
  1366. </dt>
  1367. <dd class="phpdocumentor-argument-list__definition">
  1368. <section class="phpdocumentor-description"></section>
  1369. </dd>
  1370. </dl>
  1371. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1372. <span class="phpdocumentor-signature__response_type">void</span>
  1373. &mdash;
  1374. </article>
  1375. <article
  1376. class="phpdocumentor-element
  1377. -method
  1378. -protected
  1379. "
  1380. >
  1381. <h4 class="phpdocumentor-element__name" id="method_initCustomOutputInterface">
  1382. initCustomOutputInterface()
  1383. <a href="classes/chillerlan-QRCode-QRCode.html#method_initCustomOutputInterface" class="headerlink"><i class="fas fa-link"></i></a>
  1384. </h4>
  1385. <aside class="phpdocumentor-element-found-in">
  1386. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  1387. :
  1388. <span class="phpdocumentor-element-found-in__line">198</span>
  1389. </aside>
  1390. <p class="phpdocumentor-summary">initializes a custom output module after checking the existence of the class and if it implemnts the required interface</p>
  1391. <code class="phpdocumentor-code phpdocumentor-signature ">
  1392. <span class="phpdocumentor-signature__visibility">protected</span>
  1393. <span class="phpdocumentor-signature__name">initCustomOutputInterface</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Output-QROutputInterface.html"><abbr title="\chillerlan\QRCode\Output\QROutputInterface">QROutputInterface</abbr></a></span></code>
  1394. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  1395. Tags
  1396. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  1397. </h5>
  1398. <dl class="phpdocumentor-tag-list">
  1399. <dt class="phpdocumentor-tag-list__entry">
  1400. <span class="phpdocumentor-tag__name">throws</span>
  1401. </dt>
  1402. <dd class="phpdocumentor-tag-list__definition">
  1403. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Output-QRCodeOutputException.html"><abbr title="\chillerlan\QRCode\Output\QRCodeOutputException">QRCodeOutputException</abbr></a></span>
  1404. </dd>
  1405. </dl>
  1406. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1407. <span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Output-QROutputInterface.html"><abbr title="\chillerlan\QRCode\Output\QROutputInterface">QROutputInterface</abbr></a></span>
  1408. &mdash;
  1409. </article>
  1410. <article
  1411. class="phpdocumentor-element
  1412. -method
  1413. -protected
  1414. "
  1415. >
  1416. <h4 class="phpdocumentor-element__name" id="method_initOutputInterface">
  1417. initOutputInterface()
  1418. <a href="classes/chillerlan-QRCode-QRCode.html#method_initOutputInterface" class="headerlink"><i class="fas fa-link"></i></a>
  1419. </h4>
  1420. <aside class="phpdocumentor-element-found-in">
  1421. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  1422. :
  1423. <span class="phpdocumentor-element-found-in__line">176</span>
  1424. </aside>
  1425. <p class="phpdocumentor-summary">returns a fresh (built-in) QROutputInterface</p>
  1426. <code class="phpdocumentor-code phpdocumentor-signature ">
  1427. <span class="phpdocumentor-signature__visibility">protected</span>
  1428. <span class="phpdocumentor-signature__name">initOutputInterface</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Output-QROutputInterface.html"><abbr title="\chillerlan\QRCode\Output\QROutputInterface">QROutputInterface</abbr></a></span></code>
  1429. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  1430. Tags
  1431. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  1432. </h5>
  1433. <dl class="phpdocumentor-tag-list">
  1434. <dt class="phpdocumentor-tag-list__entry">
  1435. <span class="phpdocumentor-tag__name">throws</span>
  1436. </dt>
  1437. <dd class="phpdocumentor-tag-list__definition">
  1438. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Output-QRCodeOutputException.html"><abbr title="\chillerlan\QRCode\Output\QRCodeOutputException">QRCodeOutputException</abbr></a></span>
  1439. </dd>
  1440. </dl>
  1441. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1442. <span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Output-QROutputInterface.html"><abbr title="\chillerlan\QRCode\Output\QROutputInterface">QROutputInterface</abbr></a></span>
  1443. &mdash;
  1444. </article>
  1445. </section>
  1446. <script type="text/javascript">
  1447. function loadExternalCodeSnippets(line) {
  1448. Array.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach((pre) => {
  1449. var src = pre.getAttribute('data-src').replace( /\\/g, '/');
  1450. var extension = (src.match(/\.(\w+)$/) || [, ''])[1];
  1451. var language = 'php';
  1452. var code = document.createElement('code');
  1453. code.className = 'language-' + language;
  1454. pre.textContent = '';
  1455. pre.setAttribute('data-line', line)
  1456. code.textContent = 'Loading…';
  1457. pre.appendChild(code);
  1458. var xhr = new XMLHttpRequest();
  1459. xhr.open('GET', src, true);
  1460. xhr.onreadystatechange = function () {
  1461. if (xhr.readyState == 4) {
  1462. if (xhr.status < 400 && xhr.responseText) {
  1463. code.textContent = xhr.responseText;
  1464. Prism.highlightElement(code);
  1465. }
  1466. else if (xhr.status >= 400) {
  1467. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  1468. }
  1469. else {
  1470. code.textContent = '✖ Error: File does not exist, is empty or trying to view from localhost';
  1471. }
  1472. }
  1473. };
  1474. xhr.send(null);
  1475. });
  1476. }
  1477. var modals = document.querySelectorAll("[data-modal]");
  1478. modals.forEach(function (trigger) {
  1479. trigger.addEventListener("click", function (event) {
  1480. //event.preventDefault();
  1481. const modal = document.getElementById(trigger.dataset.modal);
  1482. modal.classList.add("phpdocumentor-modal__open");
  1483. loadExternalCodeSnippets(trigger.dataset.line)
  1484. const exits = modal.querySelectorAll("[data-exit-button]");
  1485. exits.forEach(function (exit) {
  1486. exit.addEventListener("click", function (event) {
  1487. event.preventDefault();
  1488. modal.classList.remove("phpdocumentor-modal__open");
  1489. });
  1490. });
  1491. });
  1492. });
  1493. </script>
  1494. </article>
  1495. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  1496. <section class="phpdocumentor-search-results__dialog">
  1497. <header class="phpdocumentor-search-results__header">
  1498. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  1499. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  1500. </header>
  1501. <section class="phpdocumentor-search-results__body">
  1502. <ul class="phpdocumentor-search-results__entries"></ul>
  1503. </section>
  1504. </section>
  1505. </section>
  1506. </div>
  1507. </div>
  1508. <a href="classes/chillerlan-QRCode-QRCode.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  1509. </main>
  1510. <script>
  1511. cssVars({});
  1512. </script>
  1513. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  1514. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  1515. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  1516. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  1517. </body>
  1518. </html>