Header
class Header (View source)
Class used to output the HTTP and HTML headers
Methods
No description
No description
Returns, as an array, a list of parameters used on the client side
Returns, as a string, a list of parameters used on the client side
Setter for the ID attribute in the BODY tag
Setter for the title of the page
Disables the display of the top menu
Disables the display of the top menu
Returns the message to be displayed at the top of the page, including the executed SQL query, if any.
No description
If the page is missing the title, this function will set it to something reasonable
No description
No description
Renders user configured footer
Details
__construct(Template $template, Console $console, Config $config, DatabaseInterface $dbi, Relation $relation, UserPreferences $userPreferences, UserPreferencesHandler $userPreferencesHandler)
No description
Scripts
getScripts()
No description
array
getJsParams()
Returns, as an array, a list of parameters used on the client side
string
getJsParamsCode()
Returns, as a string, a list of parameters used on the client side
Menu
getMenu()
No description
void
setBodyId(string $id)
Setter for the ID attribute in the BODY tag
void
setTitle(string $title)
Setter for the title of the page
void
disableMenuAndConsole()
Disables the display of the top menu
void
disableWarnings()
Disables the display of the top menu
array
getDisplay(ResponseRenderer $responseRenderer)
No description
string
getMessage()
Returns the message to be displayed at the top of the page, including the executed SQL query, if any.
array
getHttpHeaders(ClockInterface|null $clock = null)
No description
string
getPageTitle()
If the page is missing the title, this function will set it to something reasonable
void
setIsTransformationWrapper(bool $isTransformationWrapper)
No description
Console
getConsole()
No description
static string
renderHeader()
Renders user configured footer