Display

API Documentation

\GSPPanel\Display

This class control the display and templating system for GSP-Panel

Methods

AddDisplay(string $file) : void

Adds a template file to be displayed

$file:

  • The file will be added to an array to be displayed when calling Display.
  • The files are displayed in the order they are added
Parameters
NameTypeDescription
$filestring
AddVariable(string $key, string $val) : void

Adds a smarty variable

Parameters
NameTypeDescription
$keystring
  • Key name
$valstring
  • Value of the key
DisplayFooter( $footer) : void

Changes the option to display the footer

Parameters
NameTypeDescription
$footer
Details
Access
private  
DisplayHeader( $header) : void

Changes the option to display the header

Parameters
NameTypeDescription
$header
Details
Access
private  
DisplayType(string $type) : void

Changes the display type

$type: Can be one of the following

  • login(Will display header and footer)
  • client(Will display header and footer)
  • admin(Will display header and footer)
  • ajax(Will not display header and footer)
Parameters
NameTypeDescription
$typestring
Output(string $template = "") : void

Displays the template file specified or the templates from calling AddDisplay This will display any associated headers and footers with the DisplayType specified

Ths template parameter is not required if files are added from AddDisplay

Parameters
NameTypeDescription
$templatestring
getInstance() : \GSPPanel\display

Returns the instance of the display class

Returns
TypeDescription
\GSPPanel\display
getSmartyInstance() : \GSPPanel\smarty

Returns the instance of the smarty class

Returns
TypeDescription
\GSPPanel\smarty
Documentation was generated by phpDocumentor 2.9.0.