Docs Goabase

SinglePage
in package
uses TraitUser

Read onlyYes
FinalYes

Table of Contents

Methods

__construct()  : mixed
getUserInstance()  : User
openPage()  : void
Opens and processes the specified page based on the given parameters.

Methods

openPage()

Opens and processes the specified page based on the given parameters.

public openPage(HtmlHeader $htmlHeader[, string $pageType = '' ]) : void

This method dynamically determines the content and metadata of a page (e.g., about_netiquette, donate_cancel, games, unsubscribe) and applies custom logic for each page type. It uses the HtmlHeader object to set page-specific styles and content, as well as to handle redirects when required.

Parameters
$htmlHeader : HtmlHeader

An instance of the HtmlHeader class used to manage the page's metadata, styles, and output content.

$pageType : string = ''

The identifier of the page to be processed. Defaults to an empty string, indicating the default behavior.

Return values
void

No value is returned, as this method focuses on setting the page's content and output configurations.


        
On this page

Search results