scriptlog:lib:core:apihelper
Table of Contents
ApiHelper
Layer: Core · Source: lib/core/ApiHelper.php:20 (lines 20–48)
class ApiHelper
ApiHelper
Shared static helpers for the REST API layer. Centralizes app URL resolution so that config.php is read exactly once and cached via Registry.
Docblock Metadata
| Tag | Value |
|---|---|
@category | Core Class |
@author | Blogware Team |
@license | MIT |
@version | 1.0 |
@since | Since Release 1.0 |
Inheritance
No parent, interface or trait. This is a root type.
Constants (0)
None.
Properties (0)
None declared.
Methods (1)
| Visibility | Method | Summary | Line |
|---|---|---|---|
| public static | getAppUrl() | Get the application base URL. | 31 |
getAppUrl()
public static function getAppUrl()
lines 31–47 (17)
Get the application base URL.
Reads from config.php and caches the result in Registry under the key 'app_url' so that every caller uses the same resolved value.
Takes no parameters.
Returns: (none declared) — string
This page is generated from source by 'tools/gendoc'. Edits will be overwritten.
scriptlog/lib/core/apihelper.txt · Last modified: by admin
