class Headless extends Headless (View source)

The GUI\Headless class provides helpers for the headless mode and extends the Core\Headless class.

Methods

static string
getTemplate()

Checks whether a custom headless template exists and returns its path.

from Headless
static string
loadTemplate()

Get the content of the template in use.

static boolean
resetTemplate()

Reset the headless template by deleting the custom template file.

Details

static string getTemplate()

Checks whether a custom headless template exists and returns its path.

In case there is no custom template, the path to the default template is returned.

Return Value

string The path to the template file

static string loadTemplate()

Get the content of the template in use.

Return Value

string The content of the template in use

static boolean resetTemplate()

Reset the headless template by deleting the custom template file.

Return Value

boolean Returns true it the file existed and was deleted