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 -packages ">
5758 < h2 class ="phpdocumentor-sidebar__category-header "> Packages</ h2 >
5859 < h4 class ="phpdocumentor-sidebar__root-namespace ">
5960 < a href ="packages/Application.html " class =""> Application</ a >
@@ -65,21 +66,22 @@ <h4 class="phpdocumentor-sidebar__root-namespace">
6566
6667 </ section >
6768
68- < section class ="phpdocumentor-sidebar__category ">
69+ < section class ="phpdocumentor-sidebar__category -reports ">
6970 < h2 class ="phpdocumentor-sidebar__category-header "> Reports</ h2 >
7071 < h3 class ="phpdocumentor-sidebar__root-package "> < a href ="reports/deprecated.html "> Deprecated</ a > </ h3 >
7172 < h3 class ="phpdocumentor-sidebar__root-package "> < a href ="reports/errors.html "> Errors</ a > </ h3 >
7273 < h3 class ="phpdocumentor-sidebar__root-package "> < a href ="reports/markers.html "> Markers</ a > </ h3 >
7374 </ section >
7475
75- < section class ="phpdocumentor-sidebar__category ">
76+ < section class ="phpdocumentor-sidebar__category -indices ">
7677 < h2 class ="phpdocumentor-sidebar__category-header "> Indices</ h2 >
7778 < h3 class ="phpdocumentor-sidebar__root-package "> < a href ="indices/files.html "> Files</ a > </ h3 >
7879 </ section >
7980</ aside >
8081
81- < div class ="phpdocumentor-column -eight phpdocumentor-content ">
82- < ul class ="phpdocumentor-breadcrumbs ">
82+ < div class ="phpdocumentor-column -nine phpdocumentor-content ">
83+ < section >
84+ < ul class ="phpdocumentor-breadcrumbs ">
8385 < li class ="phpdocumentor-breadcrumb "> < a href ="packages/SessionHandler.html "> SessionHandler</ a > </ li >
8486 </ ul >
8587
@@ -101,15 +103,21 @@ <h2 class="phpdocumentor-content__title">
101103
102104 </ h2 >
103105
106+ < div class ="phpdocumentor-label-line ">
107+
108+
109+ </ div >
110+
104111 < aside class ="phpdocumentor-element-found-in ">
105- < abbr class ="phpdocumentor-element-found-in__file " title ="Horde/SessionHandler/Exception.php "> < a href ="files/horde-sessionhandler-exception.html "> < abbr title ="Horde/SessionHandler/Exception.php "> Exception.php</ abbr > </ a > </ abbr >
112+ < abbr class ="phpdocumentor-element-found-in__file " title ="lib/ Horde/SessionHandler/Exception.php "> < a href ="files/lib- horde-sessionhandler-exception.html "> < abbr title ="lib/ Horde/SessionHandler/Exception.php "> Exception.php</ abbr > </ a > </ abbr >
106113 :
107114 < span class ="phpdocumentor-element-found-in__line "> 14</ span >
108115
109116 </ aside >
110117
111118 < p class ="phpdocumentor-summary "> Exception handler for the SessionHandler package.</ p >
112119
120+
113121 < section class ="phpdocumentor-description "> < p > Copyright 2010-2017 Horde LLC (http://www.horde.org/)</ p >
114122< p > See the enclosed file LICENSE for license information (LGPL). If you
115123did not receive this file, see http://www.horde.org/licenses/lgpl21.</ p >
@@ -118,7 +126,8 @@ <h2 class="phpdocumentor-content__title">
118126
119127 < h5 class ="phpdocumentor-tag-list__heading " id ="tags ">
120128 Tags
121- < a href ="#tags " class ="headerlink "> < i class ="fas fa-link "> </ i > </ a >
129+ < a href ="classes/Horde-SessionHandler-Exception.html#tags " class ="headerlink "> < i class ="fas fa-link "> </ i > </ a >
130+
122131 </ h5 >
123132 < dl class ="phpdocumentor-tag-list ">
124133 < dt class ="phpdocumentor-tag-list__entry ">
@@ -139,85 +148,148 @@ <h5 class="phpdocumentor-tag-list__heading" id="tags">
139148</ section >
140149
141150 </ dd >
142- </ dl >
151+ </ dl >
143152
144153
145154
146155
147156
157+ < h3 id ="toc ">
158+ Table of Contents
159+ < a href ="classes/Horde-SessionHandler-Exception.html#toc " class ="headerlink "> < i class ="fas fa-link "> </ i > </ a >
160+
161+ </ h3 >
162+
163+
148164
149165
150166
151167
152-
153168
154-
155169
156-
157-
158- < script type ="text/javascript ">
159- function loadExternalCodeSnippets ( line ) {
160- Array . prototype . slice . call ( document . querySelectorAll ( 'pre[data-src]' ) ) . forEach ( ( pre ) => {
161- var src = pre . getAttribute ( 'data-src' ) . replace ( / \\ / g, '/' ) ;
162- var extension = ( src . match ( / \. ( \w + ) $ / ) || [ , '' ] ) [ 1 ] ;
163- var language = 'php' ;
164170
165- var code = document . createElement ( 'code' ) ;
166- code . className = 'language-' + language ;
167171
168- pre . textContent = '' ;
169172
170- pre . setAttribute ( 'data-line' , line )
171- code . textContent = 'Loading…' ;
172173
173- pre . appendChild ( code ) ;
174174
175- var xhr = new XMLHttpRequest ( ) ;
175+
176+
177+
176178
177- xhr . open ( 'GET' , src , true ) ;
179+
180+ < div class ="phpdocumentor-modal " id ="source-view ">
181+ < div class ="phpdocumentor-modal-bg " data-exit-button > </ div >
182+ < div class ="phpdocumentor-modal-container ">
183+ < div class ="phpdocumentor-modal-content ">
184+ < pre style ="max-height: 500px; overflow-y: scroll " data-src ="files/lib/Horde/SessionHandler/Exception.php.txt " class ="language-php line-numbers linkable-line-numbers "> </ pre >
185+ </ div >
186+ < button data-exit-button class ="phpdocumentor-modal__close "> ×</ button >
187+ </ div >
188+ </ div >
178189
179- xhr . onreadystatechange = function ( ) {
180- if ( xhr . readyState == 4 ) {
190+ < script type ="text/javascript ">
191+ ( function ( ) {
192+ function loadExternalCodeSnippet ( el , url , line ) {
193+ Array . prototype . slice . call ( el . querySelectorAll ( 'pre[data-src]' ) ) . forEach ( ( pre ) => {
194+ const src = url || pre . getAttribute ( 'data-src' ) . replace ( / \\ / g, '/' ) ;
195+ const language = 'php' ;
196+
197+ const code = document . createElement ( 'code' ) ;
198+ code . className = 'language-' + language ;
199+ pre . textContent = '' ;
200+ pre . setAttribute ( 'data-line' , line )
201+ code . textContent = 'Loading…' ;
202+ pre . appendChild ( code ) ;
203+
204+ var xhr = new XMLHttpRequest ( ) ;
205+
206+ xhr . open ( 'GET' , src , true ) ;
207+
208+ xhr . onreadystatechange = function ( ) {
209+ if ( xhr . readyState !== 4 ) {
210+ return ;
211+ }
181212
182213 if ( xhr . status < 400 && xhr . responseText ) {
183214 code . textContent = xhr . responseText ;
184-
185215 Prism . highlightElement ( code ) ;
216+ return ;
186217 }
187- else if ( xhr . status >= 400 ) {
188- code . textContent = '✖ Error ' + xhr . status + ' while fetching file: ' + xhr . statusText ;
218+
219+ if ( xhr . status === 404 ) {
220+ code . textContent = '✖ Error: File could not be found' ;
221+ return ;
189222 }
190- else {
191- code . textContent = '✖ Error: File does not exist, is empty or trying to view from localhost' ;
223+
224+ if ( xhr . status >= 400 ) {
225+ code . textContent = '✖ Error ' + xhr . status + ' while fetching file: ' + xhr . statusText ;
226+ return ;
192227 }
193- }
194- } ;
195228
196- xhr . send ( null ) ;
197- } ) ;
198- }
199-
200- var modals = document . querySelectorAll ( "[data-modal]" ) ;
201-
202- modals . forEach ( function ( trigger ) {
203- trigger . addEventListener ( "click" , function ( event ) {
204- //event.preventDefault();
205- const modal = document . getElementById ( trigger . dataset . modal ) ;
206- modal . classList . add ( "phpdocumentor-modal__open" ) ;
207- loadExternalCodeSnippets ( trigger . dataset . line )
208- const exits = modal . querySelectorAll ( "[data-exit-button]" ) ;
209- exits . forEach ( function ( exit ) {
210- exit . addEventListener ( "click" , function ( event ) {
211- event . preventDefault ( ) ;
212- modal . classList . remove ( "phpdocumentor-modal__open" ) ;
229+ code . textContent = '✖ Error: An unknown error occurred' ;
230+ } ;
231+
232+ xhr . send ( null ) ;
233+ } ) ;
234+ }
235+
236+ const modalButtons = document . querySelectorAll ( "[data-modal]" ) ;
237+ const openedAsLocalFile = window . location . protocol === 'file:' ;
238+ if ( modalButtons . length > 0 && openedAsLocalFile ) {
239+ console . warn (
240+ 'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
241+ 'browsers block XHR requests when a page is opened this way'
242+ ) ;
243+ }
244+
245+ modalButtons . forEach ( function ( trigger ) {
246+ if ( openedAsLocalFile ) {
247+ trigger . setAttribute ( "hidden" , "hidden" ) ;
248+ }
249+
250+ trigger . addEventListener ( "click" , function ( event ) {
251+ event . preventDefault ( ) ;
252+ const modal = document . getElementById ( trigger . dataset . modal ) ;
253+ if ( ! modal ) {
254+ console . error ( `Modal with id "${ trigger . dataset . modal } " could not be found` ) ;
255+ return ;
256+ }
257+ modal . classList . add ( "phpdocumentor-modal__open" ) ;
258+
259+ loadExternalCodeSnippet ( modal , trigger . dataset . src || null , trigger . dataset . line )
260+ const exits = modal . querySelectorAll ( "[data-exit-button]" ) ;
261+ exits . forEach ( function ( exit ) {
262+ exit . addEventListener ( "click" , function ( event ) {
263+ event . preventDefault ( ) ;
264+ modal . classList . remove ( "phpdocumentor-modal__open" ) ;
265+ } ) ;
213266 } ) ;
214267 } ) ;
215268 } ) ;
216- } ) ;
269+ } ) ( ) ;
217270 </ script >
218271
219272 </ article >
220- < section data-search-results class ="phpdocumentor-search-results phpdocumentor-search-results--hidden ">
273+ </ section >
274+ < section class ="phpdocumentor-on-this-page__sidebar ">
275+
276+ < section class ="phpdocumentor-on-this-page__content ">
277+ < strong class ="phpdocumentor-on-this-page__title "> On this page</ strong >
278+
279+ < ul class ="phpdocumentor-list -clean ">
280+ < li class ="phpdocumentor-on-this-page-section__title "> Table Of Contents</ li >
281+ < li >
282+ < ul class ="phpdocumentor-list -clean ">
283+ </ ul >
284+ </ li >
285+
286+
287+ </ ul >
288+ </ section >
289+
290+ </ section >
291+ </ div >
292+ < section data-search-results class ="phpdocumentor-search-results phpdocumentor-search-results--hidden ">
221293 < section class ="phpdocumentor-search-results__dialog ">
222294 < header class ="phpdocumentor-search-results__header ">
223295 < h2 class ="phpdocumentor-search-results__title "> Search results</ h2 >
@@ -228,7 +300,6 @@ <h2 class="phpdocumentor-search-results__title">Search results</h2>
228300 </ section >
229301 </ section >
230302</ section >
231- </ div >
232303 </ div >
233304 < a href ="classes/Horde-SessionHandler-Exception.html#top " class ="phpdocumentor-back-to-top "> < i class ="fas fa-chevron-circle-up "> </ i > </ a >
234305
0 commit comments