Scriptlog Docs

Scriptlog Documentation

Code reference for the Scriptlog codebase

User Tools

Site Tools


scriptlog:lib:core:abstractthemeviewmodel

Differences

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

Link to this comparison view

Next revision
Previous revision
scriptlog:lib:core:abstractthemeviewmodel [2026/09/26 09:09] – admin adminscriptlog:lib:core:abstractthemeviewmodel [2026/09/26 09:34] (current) – admin admin
Line 16: Line 16:
 ======= Docblock Metadata ======= ======= Docblock Metadata =======
  
-  ^ Tag ^ Value ^ +^ Tag ^ Value ^ 
-  | ''@category'' | Theme | +| ''@category'' | Theme | 
-  | ''@author'' | M.Noermoehammad | +| ''@author'' | M.Noermoehammad | 
-  | ''@license'' | MIT | +| ''@license'' | MIT | 
-  | ''@version'' | 1.0 |+| ''@version'' | 1.0 |
  
 ======= Inheritance ======= ======= Inheritance =======
  
-  ^ Relation ^ Type ^ Meaning ^ +^ Relation ^ Type ^ Meaning ^ 
-  | implements | [[scriptlog:lib:core:themeviewmodelinterface|''ThemeViewModelInterface'']] | contract |+| implements | [[scriptlog:lib:core:themeviewmodelinterface|''ThemeViewModelInterface'']] | contract |
  
 ======= Constants (0) ======= ======= Constants (0) =======
Line 33: Line 33:
 ======= Properties (1) ======= ======= Properties (1) =======
  
-  ^ Visibility ^ Type ^ Name ^ Default ^ Line ^ +^ Visibility ^ Type ^ Name ^ Default ^ Line ^ 
-  | ''protected'' | ''(untyped)'' | ''$values'' | ''[];'' | 22 |+| ''protected'' | ''(untyped)'' | ''$values'' | ''[]'' | 22 |
  
 ======= Methods (4) ======= ======= Methods (4) =======
  
-  ^ Visibility ^ Method ^ Summary ^ Line ^ +^ Visibility ^ Method ^ Summary ^ Line ^ 
-  | public static | ''fromRow()'' | Build the view model from a prepared row, escaping each value once. | 31 | +| public static | ''fromRow()'' | Build the view model from a prepared row, escaping each value once. | 31 | 
-  | public | ''get()'' | Return the escaped value for a given key. | 42 | +| public | ''get()'' | Return the escaped value for a given key. | 42 | 
-  | public | ''toArray()'' | Return all escaped display values keyed by their public name. | 50 | +| public | ''toArray()'' | Return all escaped display values keyed by their public name. | 50 | 
-  | protected static | ''safe()'' | Escape a single raw value through the provided boundary. | 62 |+| protected static | ''safe()'' | Escape a single raw value through the provided boundary. | 62 |
  
  
Line 55: Line 55:
 Build the view model from a prepared row, escaping each value once. Build the view model from a prepared row, escaping each value once.
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$row'' | ''array'' | //required// | //none// | +|  ''$row'' |  ''array'' |  //required// |  //none// | 
-  | ''$escape'' | ''callable'' | //required// | //none// |+|  ''$escape'' |  ''callable'' |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' — static **Returns:** ''(none declared)'' — static
Line 72: Line 72:
 Return the escaped value for a given key. Return the escaped value for a given key.
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$key'' | ''string'' | //required// | //none// |+|  ''$key'' |  ''string'' |  //required// |  //none// |
  
 **Returns:** ''?string'' — string|null **Returns:** ''?string'' — string|null
Line 105: Line 105:
 Escape a single raw value through the provided boundary. Escape a single raw value through the provided boundary.
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$raw'' | ''(untyped)'' | //required// | //none// | +|  ''$raw'' |  ''(untyped)'' |  //required// |  //none// | 
-  | ''$escape'' | ''callable'' | //required// | //none// |+|  ''$escape'' |  ''callable'' |  //required// |  //none// |
  
 **Returns:** ''?string'' — string|null **Returns:** ''?string'' — string|null
scriptlog/lib/core/abstractthemeviewmodel.1790413762.txt.gz · Last modified: by admin