Scriptlog Docs

Scriptlog Documentation

Code reference for the Scriptlog codebase

User Tools

Site Tools


scriptlog:lib:core:themehelper

ThemeHelper

Layer: Core · Source: lib/core/Theme/ThemeHelper.php:23 (lines 23–83)


final class ThemeHelper

ThemeHelper facade

Loads the shared theme view model classes once and exposes a lazily-created ThemeViewModelFactory. Both the blog and valdur themes (and third-party themes) require() this single file to get the same data shape and escaping boundary.

Docblock Metadata

Tag Value
@category Theme
@author M.Noermoehammad
@license MIT
@version 1.0

Inheritance

No parent, interface or trait. This is a root type.

Constants (0)

None.

Properties (2)

Visibility Type Name Default Line
private static static $factory null 26
private static static $loaded false 29

Methods (2)

Visibility Method Summary Line
public static loadShared() Load the shared theme VM classes (idempotent). 36
public static factory() Get a shared ThemeViewModelFactory instance. 73

loadShared()

public static function loadShared(): void

lines 36–66 (31)

Load the shared theme VM classes (idempotent).

Takes no parameters.

Returns: void — void

factory()

public static function factory(): ThemeViewModelFactory

lines 73–82 (10)

Get a shared ThemeViewModelFactory instance.

Takes no parameters.

Returns: ''ThemeViewModelFactory'' — ThemeViewModelFactory


This page is generated from source by 'tools/gendoc'. Edits will be overwritten.

scriptlog/lib/core/themehelper.txt · Last modified: by admin