psf
|
Represent a single Html page. More...
Public Member Functions | |
__construct ($_title, $_parent=NULL) | |
PrintHtml () | |
Prints a html source code of a page into stdout. | |
ToHtml () | |
Return whole html page as a string. | |
Public Member Functions inherited from HtmlContainer | |
__construct ($_parent=NULL) | |
AppendHtmlLine ($html, $indent=-1) | |
Insert a line of html into body of a page (to bottom of the body). If $indent contains anything else than -1 it's indented by that value, if it's -1 the indentation is automatic. | |
AppendHeader ($text, $level=1) | |
Insert a header on bottom of current body of the page. | |
AppendHtml ($html, $indent=-1) | |
AppendParagraph ($text, $class=NULL) | |
AppendPreformatted ($text) | |
AppendPre ($text) | |
AppendLine () | |
AppendLineBreak () | |
AppendObject ($object, $indent=-1, $force=false) | |
AddChild ($_child) | |
_gen_html_tag ($name, $value, $param="") | |
html_b ($text) | |
html_div ($text) | |
html_font ($text, $param="") | |
html_p ($text, $class=NULL) | |
InsertFileToBody ($f) | |
ToHtml () | |
Public Member Functions inherited from HtmlElement | |
__clone () | |
ToHtml () | |
DisableIndenting () | |
Public Member Functions inherited from PsfObject | |
__construct ($_parent=NULL) | |
SetParent ($_parent) | |
GetParent ($_parent) | |
AddChild ($_child) | |
Public Attributes | |
$Title | |
Title of the page. | |
$Body | |
Body of a page (not a full html source code, but user defined body), in most cases you never need to directly use this. | |
$UseTidy = false | |
If enabled php module "tidy" will be used to format the output source code, it needs to be installed on server. | |
$Language | |
$TextEncoding | |
$CssFile = NULL | |
$InternalCss = array() | |
$ExternalCss = array() | |
$Style = NULL | |
$ExternalJs = array() | |
$Prefix_Head = '' | |
$Suffix_Head = '' | |
$InternalJs = array() | |
$HtmlVersion = 5 | |
$Encoding = "UTF-8" | |
$AutoRefresh = 0 | |
$Header_Meta = array() | |
Public Attributes inherited from HtmlContainer | |
$AutoInsertChilds = false | |
Public Attributes inherited from HtmlElement | |
$Indentation = 0 | |
$Indent = True | |
$Style = NULL | |
$ClassName = NULL | |
The class of html element, if HTML5, this will be added as <element class="text"> if not NULL. | |
Additional Inherited Members | |
Protected Member Functions inherited from HtmlContainer | |
ReplaceControl ($text) | |
Protected Attributes inherited from HtmlContainer | |
$Items = array() | |
$cIndent = 4 | |
Protected Attributes inherited from PsfObject | |
$Parent = NULL | |
Represent a single Html page.
In order to create and print htmlpage with title Hello world you just do:
Definition at line 32 of file htmlpage.php.