|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
| 3 | +<head> |
| 4 | + <meta charset="utf-8"> |
| 5 | + <title>PHP SDK by CNIC</title> |
| 6 | + |
| 7 | + <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 8 | + <base href="../"> |
| 9 | + <link rel="icon" href="images/favicon.ico"/> |
| 10 | + <link rel="stylesheet" href="css/normalize.css"> |
| 11 | + <link rel="stylesheet" href="css/base.css"> |
| 12 | + <link rel="preconnect" href="https://fonts.gstatic.com"> |
| 13 | + <link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap" rel="stylesheet"> |
| 14 | + <link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet"> |
| 15 | + <link rel="stylesheet" href="css/template.css"> |
| 16 | + <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" /> |
| 17 | + <link rel=" stylesheet" href=" https://cdn.jsdelivr.net/npm/[email protected]/themes/prism-okaidia.css" > |
| 18 | + <link rel=" stylesheet" href=" https://cdn.jsdelivr.net/npm/[email protected]/plugins/line-numbers/prism-line-numbers.css" > |
| 19 | + <link rel=" stylesheet" href=" https://cdn.jsdelivr.net/npm/[email protected]/plugins/line-highlight/prism-line-highlight.css" > |
| 20 | + <script src=" https://cdn.jsdelivr.net/npm/[email protected]" ></script> |
| 21 | + <script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script> |
| 22 | + <script src="js/search.js"></script> |
| 23 | + <script defer src="js/searchIndex.js"></script> |
| 24 | + </head> |
| 25 | +<body id="top"> |
| 26 | + <header class="phpdocumentor-header phpdocumentor-section"> |
| 27 | + <h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">PHP SDK by CNIC</a></h1> |
| 28 | + <input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" /> |
| 29 | + <label class="phpdocumentor-header__menu-icon" for="menu-button"> |
| 30 | + <i class="fas fa-bars"></i> |
| 31 | + </label> |
| 32 | + <section data-search-form class="phpdocumentor-search"> |
| 33 | + <label> |
| 34 | + <span class="visually-hidden">Search for</span> |
| 35 | + <svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg"> |
| 36 | + <circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/> |
| 37 | + <line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/> |
| 38 | + </svg> |
| 39 | + <input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled /> |
| 40 | + </label> |
| 41 | +</section> |
| 42 | + |
| 43 | + <nav class="phpdocumentor-topnav"> |
| 44 | + <ul class="phpdocumentor-topnav__menu"> |
| 45 | + </ul> |
| 46 | +</nav> |
| 47 | +</header> |
| 48 | + |
| 49 | + <main class="phpdocumentor"> |
| 50 | + <div class="phpdocumentor-section"> |
| 51 | + <input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" /> |
| 52 | +<label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button"> |
| 53 | + Menu |
| 54 | +</label> |
| 55 | +<aside class="phpdocumentor-column -four phpdocumentor-sidebar"> |
| 56 | + <section class="phpdocumentor-sidebar__category"> |
| 57 | + <h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2> |
| 58 | + <h4 class="phpdocumentor-sidebar__root-namespace"> |
| 59 | + <a href="namespaces/cnic.html" class="">CNIC</a> |
| 60 | +</h4> |
| 61 | + <ul class="phpdocumentor-list"> |
| 62 | + <li> |
| 63 | + <a href="namespaces/cnic-hexonet.html" class="">HEXONET</a> |
| 64 | + |
| 65 | + </li> |
| 66 | + <li> |
| 67 | + <a href="namespaces/cnic-rrpproxy.html" class="">RRPproxy</a> |
| 68 | + |
| 69 | + </li> |
| 70 | + </ul> |
| 71 | + |
| 72 | + </section> |
| 73 | + <section class="phpdocumentor-sidebar__category"> |
| 74 | + <h2 class="phpdocumentor-sidebar__category-header">Packages</h2> |
| 75 | + <h4 class="phpdocumentor-sidebar__root-namespace"> |
| 76 | + <a href="packages/CNIC.html" class="">CNIC</a> |
| 77 | +</h4> |
| 78 | + <ul class="phpdocumentor-list"> |
| 79 | + <li> |
| 80 | + <a href="packages/CNIC-HEXONET.html" class="">HEXONET</a> |
| 81 | + |
| 82 | + </li> |
| 83 | + <li> |
| 84 | + <a href="packages/CNIC-RRPproxy.html" class="">RRPproxy</a> |
| 85 | + |
| 86 | + </li> |
| 87 | + </ul> |
| 88 | + |
| 89 | + </section> |
| 90 | + |
| 91 | + <section class="phpdocumentor-sidebar__category"> |
| 92 | + <h2 class="phpdocumentor-sidebar__category-header">Reports</h2> |
| 93 | + <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3> |
| 94 | + <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3> |
| 95 | + <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3> |
| 96 | + </section> |
| 97 | + |
| 98 | + <section class="phpdocumentor-sidebar__category"> |
| 99 | + <h2 class="phpdocumentor-sidebar__category-header">Indices</h2> |
| 100 | + <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3> |
| 101 | + </section> |
| 102 | +</aside> |
| 103 | + |
| 104 | + <div class="phpdocumentor-column -eight phpdocumentor-content"> |
| 105 | + <ul class="phpdocumentor-breadcrumbs"> |
| 106 | + <li class="phpdocumentor-breadcrumb"><a href="namespaces/cnic.html">CNIC</a></li> |
| 107 | + </ul> |
| 108 | + |
| 109 | + <article class="phpdocumentor-element -class"> |
| 110 | + <h2 class="phpdocumentor-content__title"> |
| 111 | + ClientFactory |
| 112 | + |
| 113 | + |
| 114 | + <div class="phpdocumentor-element__package"> |
| 115 | + in package |
| 116 | + <ul class="phpdocumentor-breadcrumbs"> |
| 117 | + <li class="phpdocumentor-breadcrumb"><a href="packages/CNIC.html">CNIC</a></li> |
| 118 | + </ul> |
| 119 | + </div> |
| 120 | + |
| 121 | + |
| 122 | + </h2> |
| 123 | + |
| 124 | + <aside class="phpdocumentor-element-found-in"> |
| 125 | + <abbr class="phpdocumentor-element-found-in__file" title="src/ClientFactory.php"><a href="files/src-clientfactory.html"><abbr title="src/ClientFactory.php">ClientFactory.php</abbr></a></abbr> |
| 126 | + : |
| 127 | + <span class="phpdocumentor-element-found-in__line">5</span> |
| 128 | + |
| 129 | + </aside> |
| 130 | + |
| 131 | + |
| 132 | + <section class="phpdocumentor-description"></section> |
| 133 | + |
| 134 | + |
| 135 | + |
| 136 | + |
| 137 | + |
| 138 | + |
| 139 | + |
| 140 | + |
| 141 | +<h3 id="toc"> |
| 142 | + Table of Contents |
| 143 | + <a href="#toc" class="headerlink"><i class="fas fa-link"></i></a> |
| 144 | +</h3> |
| 145 | + |
| 146 | +<dl class="phpdocumentor-table-of-contents"> |
| 147 | + <dt class="phpdocumentor-table-of-contents__entry -method -public"> |
| 148 | + <a href="classes/CNIC-ClientFactory.html#method_getClient">getClient()</a> |
| 149 | + <span> |
| 150 | + : <a href="classes/CNIC-HEXONET-SessionClient.html"><abbr title="\CNIC\HEXONET\SessionClient">SessionClient</abbr></a> </span> |
| 151 | +</dt> |
| 152 | +<dd>Returns Client Instance by configuration</dd> |
| 153 | + |
| 154 | + </dl> |
| 155 | + |
| 156 | + |
| 157 | + |
| 158 | + |
| 159 | + |
| 160 | + |
| 161 | + |
| 162 | + <section class="phpdocumentor-methods"> |
| 163 | + <h3 class="phpdocumentor-elements__header" id="methods"> |
| 164 | + Methods |
| 165 | + <a href="classes/CNIC-ClientFactory.html#methods" class="headerlink"><i class="fas fa-link"></i></a> |
| 166 | + </h3> |
| 167 | + <article |
| 168 | + class="phpdocumentor-element |
| 169 | + -method |
| 170 | + -public |
| 171 | + -static " |
| 172 | +> |
| 173 | + <h4 class="phpdocumentor-element__name" id="method_getClient"> |
| 174 | + getClient() |
| 175 | + <a href="classes/CNIC-ClientFactory.html#method_getClient" class="headerlink"><i class="fas fa-link"></i></a> |
| 176 | + </h4> |
| 177 | + <aside class="phpdocumentor-element-found-in"> |
| 178 | + <abbr class="phpdocumentor-element-found-in__file" title="src/ClientFactory.php"><a href="files/src-clientfactory.html"><abbr title="src/ClientFactory.php">ClientFactory.php</abbr></a></abbr> |
| 179 | + : |
| 180 | + <span class="phpdocumentor-element-found-in__line">14</span> |
| 181 | + |
| 182 | + </aside> |
| 183 | + |
| 184 | + <p class="phpdocumentor-summary">Returns Client Instance by configuration</p> |
| 185 | + |
| 186 | + <code class="phpdocumentor-code phpdocumentor-signature "> |
| 187 | + <span class="phpdocumentor-signature__visibility">public</span> |
| 188 | + <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">getClient</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array<string|int, mixed> </span><span class="phpdocumentor-signature__argument__name">$params</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type"><a href="classes/CNIC-HEXONET-Logger.html"><abbr title="\CNIC\HEXONET\Logger">Logger</abbr></a> </span><span class="phpdocumentor-signature__argument__name">$logger</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"><a href="classes/CNIC-HEXONET-SessionClient.html"><abbr title="\CNIC\HEXONET\SessionClient">SessionClient</abbr></a></span></code> |
| 189 | + |
| 190 | + |
| 191 | + <h5 class="phpdocumentor-argument-list__heading">Parameters</h5> |
| 192 | + <dl class="phpdocumentor-argument-list"> |
| 193 | + <dt class="phpdocumentor-argument-list__entry"> |
| 194 | + <span class="phpdocumentor-signature__argument__name">$params</span> |
| 195 | + : <span class="phpdocumentor-signature__argument__return-type">array<string|int, mixed></span> |
| 196 | + </dt> |
| 197 | + <dd class="phpdocumentor-argument-list__definition"> |
| 198 | + <section class="phpdocumentor-description"><p>configuration settings</p> |
| 199 | +</section> |
| 200 | + |
| 201 | + </dd> |
| 202 | + <dt class="phpdocumentor-argument-list__entry"> |
| 203 | + <span class="phpdocumentor-signature__argument__name">$logger</span> |
| 204 | + : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/CNIC-HEXONET-Logger.html"><abbr title="\CNIC\HEXONET\Logger">Logger</abbr></a></span> |
| 205 | + = <span class="phpdocumentor-signature__argument__default-value">null</span> </dt> |
| 206 | + <dd class="phpdocumentor-argument-list__definition"> |
| 207 | + <section class="phpdocumentor-description"><p>Logger Instance (optional)</p> |
| 208 | +</section> |
| 209 | + |
| 210 | + </dd> |
| 211 | + </dl> |
| 212 | + |
| 213 | + |
| 214 | + <h5 class="phpdocumentor-tag-list__heading" id="tags"> |
| 215 | + Tags |
| 216 | + <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a> |
| 217 | + </h5> |
| 218 | + <dl class="phpdocumentor-tag-list"> |
| 219 | + <dt class="phpdocumentor-tag-list__entry"> |
| 220 | + <span class="phpdocumentor-tag__name">throws</span> |
| 221 | + </dt> |
| 222 | + <dd class="phpdocumentor-tag-list__definition"> |
| 223 | + <span class="phpdocumentor-tag-link"><abbr title="\Exception">Exception</abbr></span> |
| 224 | + |
| 225 | + |
| 226 | + </dd> |
| 227 | + </dl> |
| 228 | + |
| 229 | + <h5 class="phpdocumentor-return-value__heading">Return values</h5> |
| 230 | + <span class="phpdocumentor-signature__response_type"><a href="classes/CNIC-HEXONET-SessionClient.html"><abbr title="\CNIC\HEXONET\SessionClient">SessionClient</abbr></a></span> |
| 231 | + — |
| 232 | + |
| 233 | + |
| 234 | +</article> |
| 235 | + </section> |
| 236 | + |
| 237 | + |
| 238 | + <script type="text/javascript"> |
| 239 | + function loadExternalCodeSnippets(line) { |
| 240 | + Array.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach((pre) => { |
| 241 | + var src = pre.getAttribute('data-src').replace( /\\/g, '/'); |
| 242 | + var extension = (src.match(/\.(\w+)$/) || [, ''])[1]; |
| 243 | + var language = 'php'; |
| 244 | + |
| 245 | + var code = document.createElement('code'); |
| 246 | + code.className = 'language-' + language; |
| 247 | + |
| 248 | + pre.textContent = ''; |
| 249 | + |
| 250 | + pre.setAttribute('data-line', line) |
| 251 | + code.textContent = 'Loading…'; |
| 252 | + |
| 253 | + pre.appendChild(code); |
| 254 | + |
| 255 | + var xhr = new XMLHttpRequest(); |
| 256 | + |
| 257 | + xhr.open('GET', src, true); |
| 258 | + |
| 259 | + xhr.onreadystatechange = function () { |
| 260 | + if (xhr.readyState == 4) { |
| 261 | + |
| 262 | + if (xhr.status < 400 && xhr.responseText) { |
| 263 | + code.textContent = xhr.responseText; |
| 264 | + |
| 265 | + Prism.highlightElement(code); |
| 266 | + } |
| 267 | + else if (xhr.status >= 400) { |
| 268 | + code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText; |
| 269 | + } |
| 270 | + else { |
| 271 | + code.textContent = '✖ Error: File does not exist, is empty or trying to view from localhost'; |
| 272 | + } |
| 273 | + } |
| 274 | + }; |
| 275 | + |
| 276 | + xhr.send(null); |
| 277 | + }); |
| 278 | + } |
| 279 | + |
| 280 | + var modals = document.querySelectorAll("[data-modal]"); |
| 281 | + |
| 282 | + modals.forEach(function (trigger) { |
| 283 | + trigger.addEventListener("click", function (event) { |
| 284 | + //event.preventDefault(); |
| 285 | + const modal = document.getElementById(trigger.dataset.modal); |
| 286 | + modal.classList.add("phpdocumentor-modal__open"); |
| 287 | + loadExternalCodeSnippets(trigger.dataset.line) |
| 288 | + const exits = modal.querySelectorAll("[data-exit-button]"); |
| 289 | + exits.forEach(function (exit) { |
| 290 | + exit.addEventListener("click", function (event) { |
| 291 | + event.preventDefault(); |
| 292 | + modal.classList.remove("phpdocumentor-modal__open"); |
| 293 | + }); |
| 294 | + }); |
| 295 | + }); |
| 296 | + }); |
| 297 | + </script> |
| 298 | + |
| 299 | + </article> |
| 300 | + <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden"> |
| 301 | + <section class="phpdocumentor-search-results__dialog"> |
| 302 | + <header class="phpdocumentor-search-results__header"> |
| 303 | + <h2 class="phpdocumentor-search-results__title">Search results</h2> |
| 304 | + <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button> |
| 305 | + </header> |
| 306 | + <section class="phpdocumentor-search-results__body"> |
| 307 | + <ul class="phpdocumentor-search-results__entries"></ul> |
| 308 | + </section> |
| 309 | + </section> |
| 310 | +</section> |
| 311 | + </div> |
| 312 | + </div> |
| 313 | + <a href="classes/CNIC-ClientFactory.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a> |
| 314 | + |
| 315 | + </main> |
| 316 | + |
| 317 | + <script> |
| 318 | + cssVars({}); |
| 319 | + </script> |
| 320 | + <script src=" https://cdn.jsdelivr.net/npm/[email protected]/prism.min.js" ></script> |
| 321 | + <script src=" https://cdn.jsdelivr.net/npm/[email protected]/plugins/autoloader/prism-autoloader.min.js" ></script> |
| 322 | + <script src=" https://cdn.jsdelivr.net/npm/[email protected]/plugins/line-numbers/prism-line-numbers.min.js" ></script> |
| 323 | + <script src=" https://cdn.jsdelivr.net/npm/[email protected]/plugins/line-highlight/prism-line-highlight.min.js" ></script> |
| 324 | +</body> |
| 325 | +</html> |
0 commit comments