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 " />
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,8 @@ <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 ">
5758 < h2 class ="phpdocumentor-sidebar__category-header "> Namespaces</ h2 >
5859 < h4 class ="phpdocumentor-sidebar__root-namespace ">
5960 < a href ="namespaces/horde.html " class =""> Horde</ a >
@@ -66,7 +67,7 @@ <h4 class="phpdocumentor-sidebar__root-namespace">
6667 </ ul >
6768
6869 </ section >
69- < section class ="phpdocumentor-sidebar__category ">
70+ < section class ="phpdocumentor-sidebar__category -packages ">
7071 < h2 class ="phpdocumentor-sidebar__category-header "> Packages</ h2 >
7172 < h4 class ="phpdocumentor-sidebar__root-namespace ">
7273 < a href ="packages/Application.html " class =""> Application</ a >
@@ -88,21 +89,22 @@ <h4 class="phpdocumentor-sidebar__root-namespace">
8889
8990 </ section >
9091
91- < section class ="phpdocumentor-sidebar__category ">
92+ < section class ="phpdocumentor-sidebar__category -reports ">
9293 < h2 class ="phpdocumentor-sidebar__category-header "> Reports</ h2 >
9394 < h3 class ="phpdocumentor-sidebar__root-package "> < a href ="reports/deprecated.html "> Deprecated</ a > </ h3 >
9495 < h3 class ="phpdocumentor-sidebar__root-package "> < a href ="reports/errors.html "> Errors</ a > </ h3 >
9596 < h3 class ="phpdocumentor-sidebar__root-package "> < a href ="reports/markers.html "> Markers</ a > </ h3 >
9697 </ section >
9798
98- < section class ="phpdocumentor-sidebar__category ">
99+ < section class ="phpdocumentor-sidebar__category -indices ">
99100 < h2 class ="phpdocumentor-sidebar__category-header "> Indices</ h2 >
100101 < h3 class ="phpdocumentor-sidebar__root-package "> < a href ="indices/files.html "> Files</ a > </ h3 >
101102 </ section >
102103</ aside >
103104
104- < div class ="phpdocumentor-column -eight phpdocumentor-content ">
105- < ul class ="phpdocumentor-breadcrumbs ">
105+ < div class ="phpdocumentor-column -nine phpdocumentor-content ">
106+ < section >
107+ < ul class ="phpdocumentor-breadcrumbs ">
106108 < li class ="phpdocumentor-breadcrumb "> < a href ="namespaces/horde.html "> Horde</ a > </ li >
107109 < li class ="phpdocumentor-breadcrumb "> < a href ="namespaces/horde-http.html "> Http</ a > </ li >
108110 < li class ="phpdocumentor-breadcrumb "> < a href ="namespaces/horde-http-server.html "> Server</ a > </ li >
@@ -126,8 +128,13 @@ <h2 class="phpdocumentor-content__title">
126128
127129 </ h2 >
128130
131+ < div class ="phpdocumentor-label-line ">
132+
133+
134+ </ div >
135+
129136 < aside class ="phpdocumentor-element-found-in ">
130- < abbr class ="phpdocumentor-element-found-in__file " title ="Exception.php "> < a href ="files/exception.html "> < abbr title ="Exception.php "> Exception.php</ abbr > </ a > </ abbr >
137+ < abbr class ="phpdocumentor-element-found-in__file " title ="src/ Exception.php "> < a href ="files/src- exception.html "> < abbr title ="src/ Exception.php "> Exception.php</ abbr > </ a > </ abbr >
131138 :
132139 < span class ="phpdocumentor-element-found-in__line "> 29</ span >
133140
@@ -136,9 +143,11 @@ <h2 class="phpdocumentor-content__title">
136143
137144
138145
146+
139147 < h5 class ="phpdocumentor-tag-list__heading " id ="tags ">
140148 Tags
141- < a href ="#tags " class ="headerlink "> < i class ="fas fa-link "> </ i > </ a >
149+ < a href ="classes/Horde-Http-Server-Exception.html#tags " class ="headerlink "> < i class ="fas fa-link "> </ i > </ a >
150+
142151 </ h5 >
143152 < dl class ="phpdocumentor-tag-list ">
144153 < dt class ="phpdocumentor-tag-list__entry ">
@@ -204,85 +213,148 @@ <h5 class="phpdocumentor-tag-list__heading" id="tags">
204213</ section >
205214
206215 </ dd >
207- </ dl >
216+ </ dl >
208217
209218
210219
211220
212221
222+ < h3 id ="toc ">
223+ Table of Contents
224+ < a href ="classes/Horde-Http-Server-Exception.html#toc " class ="headerlink "> < i class ="fas fa-link "> </ i > </ a >
225+
226+ </ h3 >
213227
214228
215229
216230
217-
218231
219-
220232
221-
222-
223- < script type ="text/javascript ">
224- function loadExternalCodeSnippets ( line ) {
225- Array . prototype . slice . call ( document . querySelectorAll ( 'pre[data-src]' ) ) . forEach ( ( pre ) => {
226- var src = pre . getAttribute ( 'data-src' ) . replace ( / \\ / g, '/' ) ;
227- var extension = ( src . match ( / \. ( \w + ) $ / ) || [ , '' ] ) [ 1 ] ;
228- var language = 'php' ;
229233
230- var code = document . createElement ( 'code' ) ;
231- code . className = 'language-' + language ;
232234
233- pre . textContent = '' ;
234235
235- pre . setAttribute ( 'data-line' , line )
236- code . textContent = 'Loading…' ;
237236
238- pre . appendChild ( code ) ;
239237
240- var xhr = new XMLHttpRequest ( ) ;
241238
242- xhr . open ( 'GET' , src , true ) ;
243239
244- xhr . onreadystatechange = function ( ) {
245- if ( xhr . readyState == 4 ) {
240+
241+
242+
243+
244+
245+ < div class ="phpdocumentor-modal " id ="source-view ">
246+ < div class ="phpdocumentor-modal-bg " data-exit-button > </ div >
247+ < div class ="phpdocumentor-modal-container ">
248+ < div class ="phpdocumentor-modal-content ">
249+ < pre style ="max-height: 500px; overflow-y: scroll " data-src ="files/src/Exception.php.txt " class ="language-php line-numbers linkable-line-numbers "> </ pre >
250+ </ div >
251+ < button data-exit-button class ="phpdocumentor-modal__close "> ×</ button >
252+ </ div >
253+ </ div >
254+
255+ < script type ="text/javascript ">
256+ ( function ( ) {
257+ function loadExternalCodeSnippet ( el , url , line ) {
258+ Array . prototype . slice . call ( el . querySelectorAll ( 'pre[data-src]' ) ) . forEach ( ( pre ) => {
259+ const src = url || pre . getAttribute ( 'data-src' ) . replace ( / \\ / g, '/' ) ;
260+ const language = 'php' ;
261+
262+ const code = document . createElement ( 'code' ) ;
263+ code . className = 'language-' + language ;
264+ pre . textContent = '' ;
265+ pre . setAttribute ( 'data-line' , line )
266+ code . textContent = 'Loading…' ;
267+ pre . appendChild ( code ) ;
268+
269+ var xhr = new XMLHttpRequest ( ) ;
270+
271+ xhr . open ( 'GET' , src , true ) ;
272+
273+ xhr . onreadystatechange = function ( ) {
274+ if ( xhr . readyState !== 4 ) {
275+ return ;
276+ }
246277
247278 if ( xhr . status < 400 && xhr . responseText ) {
248279 code . textContent = xhr . responseText ;
249-
250280 Prism . highlightElement ( code ) ;
281+ return ;
251282 }
252- else if ( xhr . status >= 400 ) {
253- code . textContent = '✖ Error ' + xhr . status + ' while fetching file: ' + xhr . statusText ;
283+
284+ if ( xhr . status === 404 ) {
285+ code . textContent = '✖ Error: File could not be found' ;
286+ return ;
254287 }
255- else {
256- code . textContent = '✖ Error: File does not exist, is empty or trying to view from localhost' ;
288+
289+ if ( xhr . status >= 400 ) {
290+ code . textContent = '✖ Error ' + xhr . status + ' while fetching file: ' + xhr . statusText ;
291+ return ;
257292 }
258- }
259- } ;
260293
261- xhr . send ( null ) ;
262- } ) ;
263- }
264-
265- var modals = document . querySelectorAll ( "[data-modal]" ) ;
266-
267- modals . forEach ( function ( trigger ) {
268- trigger . addEventListener ( "click" , function ( event ) {
269- //event.preventDefault();
270- const modal = document . getElementById ( trigger . dataset . modal ) ;
271- modal . classList . add ( "phpdocumentor-modal__open" ) ;
272- loadExternalCodeSnippets ( trigger . dataset . line )
273- const exits = modal . querySelectorAll ( "[data-exit-button]" ) ;
274- exits . forEach ( function ( exit ) {
275- exit . addEventListener ( "click" , function ( event ) {
276- event . preventDefault ( ) ;
277- modal . classList . remove ( "phpdocumentor-modal__open" ) ;
294+ code . textContent = '✖ Error: An unknown error occurred' ;
295+ } ;
296+
297+ xhr . send ( null ) ;
298+ } ) ;
299+ }
300+
301+ const modalButtons = document . querySelectorAll ( "[data-modal]" ) ;
302+ const openedAsLocalFile = window . location . protocol === 'file:' ;
303+ if ( modalButtons . length > 0 && openedAsLocalFile ) {
304+ console . warn (
305+ 'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
306+ 'browsers block XHR requests when a page is opened this way'
307+ ) ;
308+ }
309+
310+ modalButtons . forEach ( function ( trigger ) {
311+ if ( openedAsLocalFile ) {
312+ trigger . setAttribute ( "hidden" , "hidden" ) ;
313+ }
314+
315+ trigger . addEventListener ( "click" , function ( event ) {
316+ event . preventDefault ( ) ;
317+ const modal = document . getElementById ( trigger . dataset . modal ) ;
318+ if ( ! modal ) {
319+ console . error ( `Modal with id "${ trigger . dataset . modal } " could not be found` ) ;
320+ return ;
321+ }
322+ modal . classList . add ( "phpdocumentor-modal__open" ) ;
323+
324+ loadExternalCodeSnippet ( modal , trigger . dataset . src || null , trigger . dataset . line )
325+ const exits = modal . querySelectorAll ( "[data-exit-button]" ) ;
326+ exits . forEach ( function ( exit ) {
327+ exit . addEventListener ( "click" , function ( event ) {
328+ event . preventDefault ( ) ;
329+ modal . classList . remove ( "phpdocumentor-modal__open" ) ;
330+ } ) ;
278331 } ) ;
279332 } ) ;
280333 } ) ;
281- } ) ;
334+ } ) ( ) ;
282335 </ script >
283336
284337 </ article >
285- < section data-search-results class ="phpdocumentor-search-results phpdocumentor-search-results--hidden ">
338+ </ section >
339+ < section class ="phpdocumentor-on-this-page__sidebar ">
340+
341+ < section class ="phpdocumentor-on-this-page__content ">
342+ < strong class ="phpdocumentor-on-this-page__title "> On this page</ strong >
343+
344+ < ul class ="phpdocumentor-list -clean ">
345+ < li class ="phpdocumentor-on-this-page-section__title "> Table Of Contents</ li >
346+ < li >
347+ < ul class ="phpdocumentor-list -clean ">
348+ </ ul >
349+ </ li >
350+
351+
352+ </ ul >
353+ </ section >
354+
355+ </ section >
356+ </ div >
357+ < section data-search-results class ="phpdocumentor-search-results phpdocumentor-search-results--hidden ">
286358 < section class ="phpdocumentor-search-results__dialog ">
287359 < header class ="phpdocumentor-search-results__header ">
288360 < h2 class ="phpdocumentor-search-results__title "> Search results</ h2 >
@@ -293,7 +365,6 @@ <h2 class="phpdocumentor-search-results__title">Search results</h2>
293365 </ section >
294366 </ section >
295367</ section >
296- </ div >
297368 </ div >
298369 < a href ="classes/Horde-Http-Server-Exception.html#top " class ="phpdocumentor-back-to-top "> < i class ="fas fa-chevron-circle-up "> </ i > </ a >
299370
0 commit comments