$front
$front :
This class contains the non-accelerated runtime code. This code must never be accessed during 'fast path' scenarios.
Each \PHK\Backend instance is associated with a 'front-end' PHK instance (accelerated or not).
showInfoLine(boolean $html, string $string, string|boolean $value, string|null $url = null, boolean $newwin = true) : void
<Info> Displays an information line
In html mode, the information is displayed in a table. This table must have been opened by a previous call to \PHK::startInfoTable().
Note: The URLs starting with a '/' char are internal (generated by \PHK\Web\Info ) and, so, are displayed in html mode only.
boolean | $html | Whether to display in html or raw text |
string | $string | The left side (without ':') |
string|boolean | $value | The value to display. If boolean, displays 'Yes' or 'No'. |
string|null | $url | An URL to associate with this value. Null if no URL. |
boolean | $newwin | Used in html mode only. Whether the URL link opens a new window when clicked. |
autoFile(string $prefix) : string|null
Returns a subfile content for a multi-type metafile
File name :
A text file can be transformed to html, but the opposite is not possible.
Type is determined by the SAPI type (CLI => txt, else => htm).
string | $prefix | Prefix to search for |
The requested content or null if not found
pluginInfo(boolean $html) : void
<Info> Displays information about the plugin
If the plugin object defines a method name '_webinfo', this method is called with the $html parameter.
If the plugin is not defined, just displays a small informative message
boolean | $html | Whether to display in html or raw text |
showOption(boolean $html, string $opt, $default = null) : void
<Info> Displays an option and its value
An URL can be set in an option. Syntax: 'text to display
boolean | $html | Whether to display in html or raw text |
string | $opt | Option name |
$default |