Scriptlog Docs

Scriptlog Documentation

Code reference for the Scriptlog codebase

User Tools

Site Tools


scriptlog:lib:core:authorization

Differences

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

Link to this comparison view

Next revision
Previous revision
scriptlog:lib:core:authorization [2026/09/26 09:09] – admin adminscriptlog:lib:core:authorization [2026/09/26 09:34] (current) – admin admin
Line 10: Line 10:
 ======= Docblock Metadata ======= ======= Docblock Metadata =======
  
-  ^ Tag ^ Value ^ +^ Tag ^ Value ^ 
-  | ''@category'' | core class | +| ''@category'' | core class | 
-  | ''@author'' | M.Noermoehammad | +| ''@author'' | M.Noermoehammad | 
-  | ''@license'' | MIT | +| ''@license'' | MIT | 
-  | ''@version'' | 1.0 |+| ''@version'' | 1.0 |
  
 ======= Inheritance ======= ======= Inheritance =======
Line 24: Line 24:
 //None.// //None.//
  
-======= Properties (0) =======+======= Properties (1) =======
  
-//None declared.//+^ Visibility ^ Type ^ Name ^ Default ^ Line ^ 
 +| ''private static'' | ''static'' | ''$authentication'' |  | 26 |
  
 ======= Methods (5) ======= ======= Methods (5) =======
  
-  ^ Visibility ^ Method ^ Summary ^ Line ^ +^ Visibility ^ Method ^ Summary ^ Line ^ 
-  | public | ''__construct()'' | (undocumented) | 28 | +| public | ''__construct()'' | (undocumented) | 28 | 
-  | public static | ''setAuthInstance()'' | Sets the Authentication instance | 41 | +| public static | ''setAuthInstance()'' | Sets the Authentication instance | 41 | 
-  | public static | ''getAuthInstance()'' | getAuthInstance | 57 | +| public static | ''getAuthInstance()'' | getAuthInstance | 57 | 
-  | public static | ''authorizeRole()'' | authorizeRole | 69 | +| public static | ''authorizeRole()'' | authorizeRole | 69 | 
-  | public static | ''authorizeLevel()'' | authorizeLevel | 83 |+| public static | ''authorizeLevel()'' | authorizeLevel | 83 |
  
  
Line 46: Line 47:
 //lines 28–31 (4)// //lines 28–31 (4)//
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$authentication'' | [[scriptlog:lib:core:authentication|''Authentication'']] | //required// | //none// |+|  ''$authentication'' |  [[scriptlog:lib:core:authentication|''Authentication'']] |  //required// |  //none// |
  
  
Line 60: Line 61:
 Sets the Authentication instance Sets the Authentication instance
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$authentication'' | ''(untyped)'' | //required// | Instance to set |+|  ''$authentication'' |  ''(untyped)'' |  //required// |  Instance to set |
  
 **Returns:** ''void'' — void **Returns:** ''void'' — void
Line 93: Line 94:
 authorizeRole authorizeRole
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$role'' | ''string'' | //required// | //none// |+|  ''$role'' |  ''string'' |  //required// |  //none// |
  
 **Returns:** ''bool'' — false|true **Returns:** ''bool'' — false|true
scriptlog/lib/core/authorization.1790413761.txt.gz · Last modified: by admin