Skip to content

Commit 4df0765

Browse files
committed
Updated API for commit 9972ca0fec7e919cbf39157d5c95141baab5cad2
1 parent ba093de commit 4df0765

File tree

2 files changed

+75
-6
lines changed

2 files changed

+75
-6
lines changed

docs/classes/CodeIgniter-Debug-ExceptionHandler.html

Lines changed: 70 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ <h2 class="phpdocumentor-content__title">
281281
<aside class="phpdocumentor-element-found-in">
282282
<abbr class="phpdocumentor-element-found-in__file" title="system/Debug/ExceptionHandler.php"><a href="files/system-debug-exceptionhandler.html"><abbr title="system/Debug/ExceptionHandler.php">ExceptionHandler.php</abbr></a></abbr>
283283
:
284-
<span class="phpdocumentor-element-found-in__line">29</span>
284+
<span class="phpdocumentor-element-found-in__line">30</span>
285285

286286
</aside>
287287

@@ -587,6 +587,13 @@ <h4 id="toc-methods">
587587
&nbsp;: bool </span>
588588
</dt>
589589

590+
<dt class="phpdocumentor-table-of-contents__entry -method -private">
591+
<a class="" href="classes/CodeIgniter-Debug-ExceptionHandler.html#method_sanitizeData">sanitizeData()</a>
592+
<span>
593+
&nbsp;: mixed </span>
594+
</dt>
595+
<dd>Sanitizes data to remove non-JSON-serializable values like resources and closures.</dd>
596+
590597
</dl>
591598

592599

@@ -856,7 +863,7 @@ <h4 class="phpdocumentor-element__name" id="property_request">
856863
<aside class="phpdocumentor-element-found-in">
857864
<abbr class="phpdocumentor-element-found-in__file" title="system/Debug/ExceptionHandler.php"><a href="files/system-debug-exceptionhandler.html"><abbr title="system/Debug/ExceptionHandler.php">ExceptionHandler.php</abbr></a></abbr>
858865
:
859-
<span class="phpdocumentor-element-found-in__line">36</span>
866+
<span class="phpdocumentor-element-found-in__line">37</span>
860867

861868
</aside>
862869

@@ -895,7 +902,7 @@ <h4 class="phpdocumentor-element__name" id="property_response">
895902
<aside class="phpdocumentor-element-found-in">
896903
<abbr class="phpdocumentor-element-found-in__file" title="system/Debug/ExceptionHandler.php"><a href="files/system-debug-exceptionhandler.html"><abbr title="system/Debug/ExceptionHandler.php">ExceptionHandler.php</abbr></a></abbr>
897904
:
898-
<span class="phpdocumentor-element-found-in__line">41</span>
905+
<span class="phpdocumentor-element-found-in__line">42</span>
899906

900907
</aside>
901908

@@ -983,7 +990,7 @@ <h4 class="phpdocumentor-element__name" id="method_handle">
983990
<aside class="phpdocumentor-element-found-in">
984991
<abbr class="phpdocumentor-element-found-in__file" title="system/Debug/ExceptionHandler.php"><a href="files/system-debug-exceptionhandler.html"><abbr title="system/Debug/ExceptionHandler.php">ExceptionHandler.php</abbr></a></abbr>
985992
:
986-
<span class="phpdocumentor-element-found-in__line">48</span>
993+
<span class="phpdocumentor-element-found-in__line">49</span>
987994

988995
</aside>
989996

@@ -1178,7 +1185,7 @@ <h4 class="phpdocumentor-element__name" id="method_determineView">
11781185
<aside class="phpdocumentor-element-found-in">
11791186
<abbr class="phpdocumentor-element-found-in__file" title="system/Debug/ExceptionHandler.php"><a href="files/system-debug-exceptionhandler.html"><abbr title="system/Debug/ExceptionHandler.php">ExceptionHandler.php</abbr></a></abbr>
11801187
:
1181-
<span class="phpdocumentor-element-found-in__line">134</span>
1188+
<span class="phpdocumentor-element-found-in__line">141</span>
11821189

11831190
</aside>
11841191

@@ -2419,7 +2426,7 @@ <h4 class="phpdocumentor-element__name" id="method_isDisplayErrorsEnabled">
24192426
<aside class="phpdocumentor-element-found-in">
24202427
<abbr class="phpdocumentor-element-found-in__file" title="system/Debug/ExceptionHandler.php"><a href="files/system-debug-exceptionhandler.html"><abbr title="system/Debug/ExceptionHandler.php">ExceptionHandler.php</abbr></a></abbr>
24212428
:
2422-
<span class="phpdocumentor-element-found-in__line">162</span>
2429+
<span class="phpdocumentor-element-found-in__line">169</span>
24232430

24242431
</aside>
24252432

@@ -2442,6 +2449,62 @@ <h5 class="phpdocumentor-return-value__heading">Return values</h5>
24422449
<span class="phpdocumentor-signature__response_type">bool</span>
24432450
</section>
24442451

2452+
</article>
2453+
<article
2454+
class="phpdocumentor-element
2455+
-method
2456+
-private
2457+
"
2458+
>
2459+
<h4 class="phpdocumentor-element__name" id="method_sanitizeData">
2460+
sanitizeData()
2461+
<a href="classes/CodeIgniter-Debug-ExceptionHandler.html#method_sanitizeData" class="headerlink"><i class="fas fa-link"></i></a>
2462+
2463+
</h4>
2464+
<aside class="phpdocumentor-element-found-in">
2465+
<abbr class="phpdocumentor-element-found-in__file" title="system/Debug/ExceptionHandler.php"><a href="files/system-debug-exceptionhandler.html"><abbr title="system/Debug/ExceptionHandler.php">ExceptionHandler.php</abbr></a></abbr>
2466+
:
2467+
<span class="phpdocumentor-element-found-in__line">184</span>
2468+
2469+
</aside>
2470+
2471+
<p class="phpdocumentor-summary">Sanitizes data to remove non-JSON-serializable values like resources and closures.</p>
2472+
2473+
<code class="phpdocumentor-code phpdocumentor-signature ">
2474+
<span class="phpdocumentor-signature__visibility">private</span>
2475+
<span class="phpdocumentor-signature__name">sanitizeData</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$data</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">array&lt;int, bool&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__reference-operator">&amp;</span><span class="phpdocumentor-signature__argument__name">$seen</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">[]</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
2476+
2477+
<div class="phpdocumentor-label-line">
2478+
</div>
2479+
2480+
<section class="phpdocumentor-description"><p>This is necessary for API responses that need to be JSON/XML encoded.</p>
2481+
</section>
2482+
2483+
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
2484+
<dl class="phpdocumentor-argument-list">
2485+
<dt class="phpdocumentor-argument-list__entry">
2486+
<span class="phpdocumentor-signature__argument__name">$data</span>
2487+
: <span class="phpdocumentor-signature__argument__return-type">mixed</span>
2488+
</dt>
2489+
<dd class="phpdocumentor-argument-list__definition">
2490+
2491+
</dd>
2492+
<dt class="phpdocumentor-argument-list__entry">
2493+
<span class="phpdocumentor-signature__argument__name">$seen</span>
2494+
: <span class="phpdocumentor-signature__argument__return-type">array&lt;int, bool&gt;</span>
2495+
= <span class="phpdocumentor-signature__argument__default-value">[]</span> </dt>
2496+
<dd class="phpdocumentor-argument-list__definition">
2497+
<section class="phpdocumentor-description"><p>Used internally to prevent infinite recursion</p>
2498+
</section>
2499+
2500+
</dd>
2501+
</dl>
2502+
2503+
2504+
2505+
2506+
2507+
24452508
</article>
24462509
</section>
24472510

@@ -2597,6 +2660,7 @@ <h5 class="phpdocumentor-return-value__heading">Return values</h5>
25972660
<li class=""><a href="classes/CodeIgniter-API-ResponseTrait.html#method_respondUpdated">respondUpdated()</a></li>
25982661
<li class=""><a href="classes/CodeIgniter-API-ResponseTrait.html#method_setResponseFormat">setResponseFormat()</a></li>
25992662
<li class=""><a href="classes/CodeIgniter-Debug-ExceptionHandler.html#method_isDisplayErrorsEnabled">isDisplayErrorsEnabled()</a></li>
2663+
<li class=""><a href="classes/CodeIgniter-Debug-ExceptionHandler.html#method_sanitizeData">sanitizeData()</a></li>
26002664
</ul>
26012665
</li>
26022666
</ul>

docs/js/searchIndex.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11755,6 +11755,11 @@ Search.appendIndex(
1175511755
"name": "isDisplayErrorsEnabled",
1175611756
"summary": "",
1175711757
"url": "classes/CodeIgniter-Debug-ExceptionHandler.html#method_isDisplayErrorsEnabled"
11758+
}, {
11759+
"fqsen": "\\CodeIgniter\\Debug\\ExceptionHandler\u003A\u003AsanitizeData\u0028\u0029",
11760+
"name": "sanitizeData",
11761+
"summary": "Sanitizes\u0020data\u0020to\u0020remove\u0020non\u002DJSON\u002Dserializable\u0020values\u0020like\u0020resources\u0020and\u0020closures.",
11762+
"url": "classes/CodeIgniter-Debug-ExceptionHandler.html#method_sanitizeData"
1175811763
}, {
1175911764
"fqsen": "\\CodeIgniter\\Debug\\ExceptionHandler\u003A\u003A\u0024request",
1176011765
"name": "request",

0 commit comments

Comments
 (0)