Scriptlog Docs

Scriptlog Documentation

Code reference for the Scriptlog codebase

User Tools

Site Tools


scriptlog:lib:core:localerouter

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
scriptlog:lib:core:localerouter [2026/09/26 09:09] – admin adminscriptlog:lib:core:localerouter [2026/09/26 09:34] (current) – admin admin
Line 16: Line 16:
 //None.// //None.//
  
-======= Properties (2) =======+======= Properties (3) =======
  
-  ^ Visibility ^ Type ^ Name ^ Default ^ Line ^ +^ Visibility ^ Type ^ Name ^ Default ^ Line ^ 
-  | ''private'' | ''(untyped)'' | ''$routes'' | ''[];'' | 9 | +| ''private'' | ''(untyped)'' | ''$routes'' | ''[]'' | 9 | 
-  | ''private'' | ''(untyped)'' | ''$availableLocales'' | ''[];'' | 11 |+| ''private'' | ''(untyped)'' | ''$detector'' |  | 10 | 
 +| ''private'' | ''(untyped)'' | ''$availableLocales'' | ''[]'' | 11 |
  
 ======= Methods (10) ======= ======= Methods (10) =======
  
-  ^ Visibility ^ Method ^ Summary ^ Line ^ +^ Visibility ^ Method ^ Summary ^ Line ^ 
-  | public | ''__construct()'' | (undocumented) | 13 | +| public | ''__construct()'' | (undocumented) | 13 | 
-  | private | ''registerDefaultRoutes()'' | (undocumented) | 20 | +| private | ''registerDefaultRoutes()'' | (undocumented) | 20 | 
-  | public | ''addRoute()'' | (undocumented) | 34 | +| public | ''addRoute()'' | (undocumented) | 34 | 
-  | public | ''extractLocale()'' | (undocumented) | 62 | +| public | ''extractLocale()'' | (undocumented) | 62 | 
-  | public | ''stripLocalePrefix()'' | (undocumented) | 75 | +| public | ''stripLocalePrefix()'' | (undocumented) | 75 | 
-  | public | ''buildUrl()'' | (undocumented) | 85 | +| public | ''buildUrl()'' | (undocumented) | 85 | 
-  | public | ''buildCurrentUrl()'' | (undocumented) | 93 | +| public | ''buildCurrentUrl()'' | (undocumented) | 93 | 
-  | public | ''getRoutes()'' | (undocumented) | 98 | +| public | ''getRoutes()'' | (undocumented) | 98 | 
-  | public | ''hasLocalePrefix()'' | (undocumented) | 103 | +| public | ''hasLocalePrefix()'' | (undocumented) | 103 | 
-  | public | ''getDetector()'' | (undocumented) | 108 |+| public | ''getDetector()'' | (undocumented) | 108 |
  
  
Line 45: Line 46:
 //lines 13–18 (6)// //lines 13–18 (6)//
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$detectorSettings'' | ''array'' | ''[]'' | //none// |+|  ''$detectorSettings'' |  ''array'' |  ''[]'' |  //none// |
  
  
Line 70: Line 71:
 //lines 34–37 (4)// //lines 34–37 (4)//
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$name'' | ''string'' | //required// | //none// | +|  ''$name'' |  ''string'' |  //required// |  //none// | 
-  | ''$pattern'' | ''string'' | //required// | //none// |+|  ''$pattern'' |  ''string'' |  //required// |  //none// |
  
 **Returns:** ''void'' **Returns:** ''void''
Line 85: Line 86:
 //lines 62–73 (12)// //lines 62–73 (12)//
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$path'' | ''string'' | //required// | //none// |+|  ''$path'' |  ''string'' |  //required// |  //none// |
  
 **Returns:** ''?string'' **Returns:** ''?string''
Line 99: Line 100:
 //lines 75–83 (9)// //lines 75–83 (9)//
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$path'' | ''string'' | //required// | //none// |+|  ''$path'' |  ''string'' |  //required// |  //none// |
  
 **Returns:** ''string'' **Returns:** ''string''
Line 113: Line 114:
 //lines 85–91 (7)// //lines 85–91 (7)//
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$path'' | ''string'' | //required// | //none// | +|  ''$path'' |  ''string'' |  //required// |  //none// | 
-  | ''$locale'' | ''?string'' | ''null'' | //none// |+|  ''$locale'' |  ''?string'' |  ''null'' |  //none// |
  
 **Returns:** ''string'' **Returns:** ''string''
Line 128: Line 129:
 //lines 93–96 (4)// //lines 93–96 (4)//
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$path'' | ''string'' | //required// | //none// |+|  ''$path'' |  ''string'' |  //required// |  //none// |
  
 **Returns:** ''string'' **Returns:** ''string''
Line 155: Line 156:
 //lines 103–106 (4)// //lines 103–106 (4)//
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$path'' | ''string'' | //required// | //none// |+|  ''$path'' |  ''string'' |  //required// |  //none// |
  
 **Returns:** ''bool'' **Returns:** ''bool''
scriptlog/lib/core/localerouter.1790413762.txt.gz · Last modified: by admin