InitSystem
in package
Read onlyYes
FinalYes
Table of Contents
Methods
- __construct() : mixed
- load() : HtmlHeader|null}
- Initializes and loads the base, user, and header components required for the application.
Methods
__construct()
public
__construct() : mixed
load()
Initializes and loads the base, user, and header components required for the application.
public
load([string|null $getPage = '' ]) : HtmlHeader|null}
Depending on the context, the method either prepares data for an AJAX or JSON response, or initializes the necessary components for rendering a webpage.
Parameters
- $getPage : string|null = ''
-
The name of the page to load; defaults to the current file if not provided.
Return values
HtmlHeader|null} —Returns an array containing initialized objects in the following order: - InitBase: The base initialization object. - InitUser: The user initialization object, including user data. - HtmlHeader|null: The header data object for the webpage or null for AJAX requests.