Skip to content

Commit 5f5001f

Browse files
author
PHPDOC CI Job
committed
Updated phpdoc for maintaina-com/Dns (FRAMEWORK_6_0 branch) from ci
1 parent 4705896 commit 5f5001f

File tree

100 files changed

+32065
-3654
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+32065
-3654
lines changed

FRAMEWORK_6_0/Dns/classes/Horde-DNS-Backend-Mock.html

Lines changed: 141 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<link rel="stylesheet" href="css/normalize.css">
1111
<link rel="stylesheet" href="css/base.css">
1212
<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">
13+
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;600;700&display=swap" rel="stylesheet">
1414
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
1515
<link rel="stylesheet" href="css/template.css">
1616
<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" />
@@ -19,6 +19,7 @@
1919
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/plugins/line-highlight/prism-line-highlight.css">
2020
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
2121
<script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
22+
<script src="js/template.js"></script>
2223
<script src="js/search.js"></script>
2324
<script defer src="js/searchIndex.js"></script>
2425
</head>
@@ -52,8 +53,21 @@ <h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Doc
5253
<label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
5354
Menu
5455
</label>
55-
<aside class="phpdocumentor-column -four phpdocumentor-sidebar">
56-
<section class="phpdocumentor-sidebar__category">
56+
<aside class="phpdocumentor-column -three phpdocumentor-sidebar">
57+
<section class="phpdocumentor-sidebar__category -namespaces">
58+
<h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
59+
<h4 class="phpdocumentor-sidebar__root-namespace">
60+
<a href="namespaces/horde.html" class="">Horde</a>
61+
</h4>
62+
<ul class="phpdocumentor-list">
63+
<li>
64+
<a href="namespaces/horde-dns.html" class="">Dns</a>
65+
66+
</li>
67+
</ul>
68+
69+
</section>
70+
<section class="phpdocumentor-sidebar__category -packages">
5771
<h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
5872
<h4 class="phpdocumentor-sidebar__root-namespace">
5973
<a href="packages/Application.html" class="">Application</a>
@@ -71,23 +85,22 @@ <h4 class="phpdocumentor-sidebar__root-namespace">
7185

7286
</section>
7387

74-
<section class="phpdocumentor-sidebar__category">
88+
<section class="phpdocumentor-sidebar__category -reports">
7589
<h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
7690
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
7791
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
7892
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
7993
</section>
8094

81-
<section class="phpdocumentor-sidebar__category">
95+
<section class="phpdocumentor-sidebar__category -indices">
8296
<h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
8397
<h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
8498
</section>
8599
</aside>
86100

87-
<div class="phpdocumentor-column -eight phpdocumentor-content">
88-
<ul class="phpdocumentor-breadcrumbs">
89-
<li class="phpdocumentor-breadcrumb"><a href="packages/horde.html">horde</a></li>
90-
<li class="phpdocumentor-breadcrumb"><a href="packages/horde-dns.html">dns</a></li>
101+
<div class="phpdocumentor-column -nine phpdocumentor-content">
102+
<section>
103+
<ul class="phpdocumentor-breadcrumbs">
91104
</ul>
92105

93106
<article class="phpdocumentor-element -class">
@@ -106,8 +119,13 @@ <h2 class="phpdocumentor-content__title">
106119

107120
</h2>
108121

122+
<div class="phpdocumentor-label-line">
123+
124+
125+
</div>
126+
109127
<aside class="phpdocumentor-element-found-in">
110-
<abbr class="phpdocumentor-element-found-in__file" title="Horde/DNS/Backend/Mock.php"><a href="files/horde-dns-backend-mock.html"><abbr title="Horde/DNS/Backend/Mock.php">Mock.php</abbr></a></abbr>
128+
<abbr class="phpdocumentor-element-found-in__file" title="lib/Horde/DNS/Backend/Mock.php"><a href="files/lib-horde-dns-backend-mock.html"><abbr title="lib/Horde/DNS/Backend/Mock.php">Mock.php</abbr></a></abbr>
111129
:
112130
<span class="phpdocumentor-element-found-in__line">16</span>
113131

@@ -116,14 +134,16 @@ <h2 class="phpdocumentor-content__title">
116134
<p class="phpdocumentor-summary">The Mock backend of the DNS service for testing purposes
117135
TODO: Needs content</p>
118136

137+
119138
<section class="phpdocumentor-description"><p>See the enclosed file LICENSE for license information (LGPL). If you
120139
did not receive this file, see http://www.horde.org/licenses/lgpl21.</p>
121140
</section>
122141

123142

124143
<h5 class="phpdocumentor-tag-list__heading" id="tags">
125144
Tags
126-
<a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
145+
<a href="classes/Horde-DNS-Backend-Mock.html#tags" class="headerlink"><i class="fas fa-link"></i></a>
146+
127147
</h5>
128148
<dl class="phpdocumentor-tag-list">
129149
<dt class="phpdocumentor-tag-list__entry">
@@ -153,85 +173,148 @@ <h5 class="phpdocumentor-tag-list__heading" id="tags">
153173
</section>
154174

155175
</dd>
156-
</dl>
176+
</dl>
157177

158178

159179

160180

161181

182+
<h3 id="toc">
183+
Table of Contents
184+
<a href="classes/Horde-DNS-Backend-Mock.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
185+
186+
</h3>
187+
188+
162189

163190

164191

165192

166-
167193

168-
169194

170-
171-
172-
<script type="text/javascript">
173-
function loadExternalCodeSnippets(line) {
174-
Array.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach((pre) => {
175-
var src = pre.getAttribute('data-src').replace( /\\/g, '/');
176-
var extension = (src.match(/\.(\w+)$/) || [, ''])[1];
177-
var language = 'php';
178195

179-
var code = document.createElement('code');
180-
code.className = 'language-' + language;
181196

182-
pre.textContent = '';
183197

184-
pre.setAttribute('data-line', line)
185-
code.textContent = 'Loading…';
186198

187-
pre.appendChild(code);
188199

189-
var xhr = new XMLHttpRequest();
200+
190201

191-
xhr.open('GET', src, true);
202+
192203

193-
xhr.onreadystatechange = function () {
194-
if (xhr.readyState == 4) {
204+
205+
<div class="phpdocumentor-modal" id="source-view">
206+
<div class="phpdocumentor-modal-bg" data-exit-button></div>
207+
<div class="phpdocumentor-modal-container">
208+
<div class="phpdocumentor-modal-content">
209+
<pre style="max-height: 500px; overflow-y: scroll" data-src="files/lib/Horde/DNS/Backend/Mock.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
210+
</div>
211+
<button data-exit-button class="phpdocumentor-modal__close">&times;</button>
212+
</div>
213+
</div>
214+
215+
<script type="text/javascript">
216+
(function () {
217+
function loadExternalCodeSnippet(el, url, line) {
218+
Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
219+
const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
220+
const language = 'php';
221+
222+
const code = document.createElement('code');
223+
code.className = 'language-' + language;
224+
pre.textContent = '';
225+
pre.setAttribute('data-line', line)
226+
code.textContent = 'Loading…';
227+
pre.appendChild(code);
228+
229+
var xhr = new XMLHttpRequest();
230+
231+
xhr.open('GET', src, true);
232+
233+
xhr.onreadystatechange = function () {
234+
if (xhr.readyState !== 4) {
235+
return;
236+
}
195237

196238
if (xhr.status < 400 && xhr.responseText) {
197239
code.textContent = xhr.responseText;
198-
199240
Prism.highlightElement(code);
241+
return;
200242
}
201-
else if (xhr.status >= 400) {
202-
code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
243+
244+
if (xhr.status === 404) {
245+
code.textContent = '✖ Error: File could not be found';
246+
return;
203247
}
204-
else {
205-
code.textContent = '✖ Error: File does not exist, is empty or trying to view from localhost';
248+
249+
if (xhr.status >= 400) {
250+
code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
251+
return;
206252
}
207-
}
208-
};
209253

210-
xhr.send(null);
211-
});
212-
}
213-
214-
var modals = document.querySelectorAll("[data-modal]");
215-
216-
modals.forEach(function (trigger) {
217-
trigger.addEventListener("click", function (event) {
218-
//event.preventDefault();
219-
const modal = document.getElementById(trigger.dataset.modal);
220-
modal.classList.add("phpdocumentor-modal__open");
221-
loadExternalCodeSnippets(trigger.dataset.line)
222-
const exits = modal.querySelectorAll("[data-exit-button]");
223-
exits.forEach(function (exit) {
224-
exit.addEventListener("click", function (event) {
225-
event.preventDefault();
226-
modal.classList.remove("phpdocumentor-modal__open");
254+
code.textContent = '✖ Error: An unknown error occurred';
255+
};
256+
257+
xhr.send(null);
258+
});
259+
}
260+
261+
const modalButtons = document.querySelectorAll("[data-modal]");
262+
const openedAsLocalFile = window.location.protocol === 'file:';
263+
if (modalButtons.length > 0 && openedAsLocalFile) {
264+
console.warn(
265+
'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
266+
'browsers block XHR requests when a page is opened this way'
267+
);
268+
}
269+
270+
modalButtons.forEach(function (trigger) {
271+
if (openedAsLocalFile) {
272+
trigger.setAttribute("hidden", "hidden");
273+
}
274+
275+
trigger.addEventListener("click", function (event) {
276+
event.preventDefault();
277+
const modal = document.getElementById(trigger.dataset.modal);
278+
if (!modal) {
279+
console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
280+
return;
281+
}
282+
modal.classList.add("phpdocumentor-modal__open");
283+
284+
loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
285+
const exits = modal.querySelectorAll("[data-exit-button]");
286+
exits.forEach(function (exit) {
287+
exit.addEventListener("click", function (event) {
288+
event.preventDefault();
289+
modal.classList.remove("phpdocumentor-modal__open");
290+
});
227291
});
228292
});
229293
});
230-
});
294+
})();
231295
</script>
232296

233297
</article>
234-
<section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
298+
</section>
299+
<section class="phpdocumentor-on-this-page__sidebar">
300+
301+
<section class="phpdocumentor-on-this-page__content">
302+
<strong class="phpdocumentor-on-this-page__title">On this page</strong>
303+
304+
<ul class="phpdocumentor-list -clean">
305+
<li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
306+
<li>
307+
<ul class="phpdocumentor-list -clean">
308+
</ul>
309+
</li>
310+
311+
312+
</ul>
313+
</section>
314+
315+
</section>
316+
</div>
317+
<section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
235318
<section class="phpdocumentor-search-results__dialog">
236319
<header class="phpdocumentor-search-results__header">
237320
<h2 class="phpdocumentor-search-results__title">Search results</h2>
@@ -242,7 +325,6 @@ <h2 class="phpdocumentor-search-results__title">Search results</h2>
242325
</section>
243326
</section>
244327
</section>
245-
</div>
246328
</div>
247329
<a href="classes/Horde-DNS-Backend-Mock.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
248330

0 commit comments

Comments
 (0)