WebPage
Public Member Functions | List of all members
MaterialWebPage Class Reference

This class provides methods in order to ease the production of a HTML5 Web page using the Bootstrap 4 framework. More...

Inheritance diagram for MaterialWebPage:
[legend]
Collaboration diagram for MaterialWebPage:
[legend]

Public Member Functions

 __construct (string $title="", string $lang="fr")
 Constructor. More...
 
- Public Member Functions inherited from WebPageEnhanced
 getHead ()
 Return the $head string. More...
 
 getBody ()
 Return the $body string. More...
 
 getTitle ()
 Return the $title string. More...
 
 getBodyScripts ()
 Return the $bodyScripts string. More...
 
 setLanguage (string $lang)
 Set the language in which the content is written. More...
 
 setTitle (string $title)
 Set the title of the Web page. More...
 
 setAuthor (string $authorName)
 Set the author of the Web page. More...
 
 setKeywords (string $keywordList)
 Attach a list of keywords to the Web page. More...
 
 setDescription (string $descriptionText)
 Add a short description to the Web page. More...
 
 appendToHead (string $content)
 Add content nested in the <head> element. More...
 
 appendCss (string $css)
 Add CSS code nested in the <head> element. More...
 
 appendCssUrl (string $url)
 Add the URL of an external CSS file. More...
 
 appendScriptToBody (string $rawText)
 Add raw text to $bodyScripts attribute. More...
 
 appendJs (string $js)
 Add JavaScript code. More...
 
 appendJsUrl (string $url)
 Add the URL of an external JavaScript file. More...
 
 appendContent (string $content)
 Add content nested in the <body> element. More...
 
 toHTML ()
 Generate the HTML5 code of the Web page as a string. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from WebPageEnhanced
static getLastModification ()
 Get main script last modification date. More...
 
static escapeString (string $string)
 Protect WebPage content against special characters ("<", ">", ...). More...
 

Detailed Description

This class provides methods in order to ease the production of a HTML5 Web page using the Bootstrap 4 framework.

Author
Olivier Nocent (olivi.nosp@m.er.n.nosp@m.ocent.nosp@m.@uni.nosp@m.v-rei.nosp@m.ms.f.nosp@m.r)
Jérôme Cutrona (jerom.nosp@m.e.cu.nosp@m.trona.nosp@m.@uni.nosp@m.v-rei.nosp@m.ms.f.nosp@m.r)
Version
1.1

Constructor & Destructor Documentation

◆ __construct()

MaterialWebPage::__construct ( string  $title = "",
string  $lang = "fr" 
)

Constructor.

Parameters
string$titlePage title (mandatory)
string$langLanguage global attribute

Reimplemented from WebPageEnhanced.


The documentation for this class was generated from the following file: