WebPage
|
This class provides methods in order to ease the production of a HTML5 Web page using the Bootstrap 4 framework. More...
Public Member Functions | |
__construct (string $title="", string $lang="fr") | |
Constructor. More... | |
![]() | |
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 | getLastModification () |
Get main script last modification date. More... | |
static | escapeString (string $string) |
Protect WebPage content against special characters ("<", ">", ...). More... | |
This class provides methods in order to ease the production of a HTML5 Web page using the Bootstrap 4 framework.
MaterialWebPage::__construct | ( | string | $title = "" , |
string | $lang = "fr" |
||
) |
Constructor.
string | $title | Page title (mandatory) |
string | $lang | Language global attribute |
Reimplemented from WebPageEnhanced.