Returns a complete HTML form element from the template
string
getHTMLElement
(string $elementTag, string $elementName)
-
string
$elementTag: The type of element (i.e. table, input or div)
-
string
$elementName: The name of the element (name= attribute)
Returns a complete HTML form element from an HTML file
string
getHTMLElementFromFile
(string $elementTag, string $elementName, string $url)
-
string
$elementTag: The type of element (i.e. table, input or div)
-
string
$elementName: The name of the element (name= attribute)
-
string
$url: The URL location of the page to extract from
Returns a complete HTML form element from a string containing HTML
string
getHTMLElementFromString
(string $elementTag, string $elementName, string $html)
-
string
$elementTag: The type of element (i.e. table, input or div)
-
string
$elementName: The name of the element (name= attribute)
-
string
$html: A string containing HTML
Returns a complete HTML form element from a live URL
string
getHTMLElementFromURL
(string $elementTag, string $elementName, string $url)
-
string
$elementTag: The type of element (i.e. table, input or div)
-
string
$elementName: The name of the element (name= attribute)
-
string
$url: The URL location of the page to extract from
Returns an HTML form element tag from the template
string
getHTMLElementTag
(string $elementTag, string $elementName)
-
string
$elementTag: The type of element (i.e. table, input or div)
-
string
$elementName: The name of the element (name= attribute)
Returns an HTML form element tag from an HTML file
string
getHTMLElementTagFromFile
(string $elementTag, string $elementName, string $url)
-
string
$elementTag: The type of element (i.e. table, input or div)
-
string
$elementName: The name of the element (name= attribute)
-
string
$url: The URL location of the page to extract from
Returns an HTML form element tag from a string containing HTML
string
getHTMLElementTagFromString
(string $elementTag, string $elementName, string $html)
-
string
$elementTag: The type of element (i.e. table, input or div)
-
string
$elementName: The name of the element (name= attribute)
-
string
$html: A string containing HTML
Returns an HTML form element tag from a live URL
string
getHTMLElementTagFromURL
(string $elementTag, string $elementName, string $url)
-
string
$elementTag: The type of element (i.e. table, input or div)
-
string
$elementName: The name of the element (name= attribute)
-
string
$url: The URL location of the page to extract from
Checks to see if an HTML tag element exists
TRUE
hasHTMLTag
(string $elementTag, string $elementName)
-
string
$elementTag: The type of element (i.e. table, input or div)
-
string
$elementName: The name of the element (name= attribute)
Removes all comments from the document
void
removeAllComments
()
Removes an HTML form element
void
removeHTMLElement
(string $elementTag, string $elementName)
-
string
$elementTag: The type of element (i.e. table, input or div)
-
string
$elementName: The name of the element (name= attribute)
Removes data between an HTML from element opening and closing tag
void
removeHTMLElementData
(string $elementTag, string $elementName)
-
string
$elementTag: The type of element (i.e. table, input or div)
-
string
$elementName: The name of the element (name= attribute)
Removes an HTML form element tag
void
removeHTMLElementTag
(string $elementTag, string $elementName)
-
string
$elementTag: The type of element (i.e. table, input or div)
-
string
$elementName: The name of the element (name= attribute)
Replaces a template HTML form element with a string
void
replaceHTMLElement
(string $elementTag, string $elementName, string $newText, [boolean $fixHTML = false], [boolean $stripSlashes = false])
-
string
$elementTag: The type of element (i.e. table, input or div)
-
string
$elementName: The name of the element (name= attribute)
-
string
$newText: The replacement text
-
boolean
$fixHTML: Determines if the content should be formatted
-
boolean
$stripSlashes: Encodes the contect
Replaces template data between an opening and closing HTML form tag with a string
boolean
replaceHTMLElementData
(string $elementTag, string $elementName, string $newText, [boolean $fixHTML = false], [boolean $stripSlashes = false])
-
string
$elementTag: The type of element (i.e. table, input or div)
-
string
$elementName: The name of the element (name= attribute)
-
string
$newText: The replacement text
-
boolean
$fixHTML: Determines if the content should be formatted
-
boolean
$stripSlashes: Encodes the contect
Replaces template data between an opening and closing HTML form tag with data from a file
void
replaceHTMLElementDataFromFile
(string $elementTag, string $elementName, string $fileName, [boolean $fixHTML = false], [boolean $stripSlashes = false])
-
string
$elementTag: The type of element (i.e. table, input or div)
-
string
$elementName: The name of the element (name= attribute)
-
string
$fileName: The name of the file containing the data
-
boolean
$fixHTML: Determines if the content should be formatted
-
boolean
$stripSlashes: Encodes the contect
Replaces template data between an opening and closing HTML form tag with data from a live URL
void
replaceHTMLElementDataFromWeb
(string $elementTag, string $elementName, string $url, [boolean $fixHTML = false], [boolean $stripSlashes = false])
-
string
$elementTag: The type of element (i.e. table, input or div)
-
string
$elementName: The name of the element (name= attribute)
-
string
$url: The URL location of the page to extract from
-
boolean
$fixHTML: Determines if the content should be formatted
-
boolean
$stripSlashes: Encodes the contect
Replaces a template HTML form element with data from a file
void
replaceHTMLElementFromFile
(string $elementTag, string $elementName, string $fileName, [boolean $fixHTML = false], [boolean $stripSlashes = false])
-
string
$elementTag: The type of element (i.e. table, input or div)
-
string
$elementName: The name of the element (name= attribute)
-
string
$fileName: The name of the file containing the data
-
boolean
$fixHTML: Determines if the content should be formatted
-
boolean
$stripSlashes: Encodes the contect
Replaces a template HTML form element with data from a live URL
void
replaceHTMLElementFromWeb
(string $elementTag, string $elementName, string $url, [boolean $fixHTML = false], [boolean $stripSlashes = false])
-
string
$elementTag: The type of element (i.e. table, input or div)
-
string
$elementName: The name of the element (name= attribute)
-
string
$url: The URL location of the page to extract from
-
boolean
$fixHTML: Determines if the content should be formatted
-
boolean
$stripSlashes: Encodes the contect
Replaces a template HTML form element opening tag with a string
void
replaceHTMLElementTag
(string $elementTag, string $elementName, string $newText, [boolean $fixHTML = false], [boolean $stripSlashes = false])
-
string
$elementTag: The type of element (i.e. table, input or div)
-
string
$elementName: The name of the element (name= attribute)
-
string
$newText: The replacement text
-
boolean
$fixHTML: Determines if the content should be formatted
-
boolean
$stripSlashes: Encodes the contect
Replaces a template HTML form element opening tag with data from a file
void
replaceHTMLElementTagFromFile
(string $elementTag, string $elementName, string $fileName, [boolean $fixHTML = false], [boolean $stripSlashes = false])
-
string
$elementTag: The type of element (i.e. table, input or div)
-
string
$elementName: The name of the element (name= attribute)
-
string
$fileName: The name of the file containing the data
-
boolean
$fixHTML: Determines if the content should be formatted
-
boolean
$stripSlashes: Encodes the contect
Replaces a template HTML form element opening tag with data from a live URL
void
replaceHTMLElementTagFromWeb
(string $elementTag, string $elementName, string $url, [boolean $fixHTML = false], [boolean $stripSlashes = false])
-
string
$elementTag: The type of element (i.e. table, input or div)
-
string
$elementName: The name of the element (name= attribute)
-
string
$url: The URL location of the page to extract from
-
boolean
$fixHTML: Determines if the content should be formatted
-
boolean
$stripSlashes: Encodes the contect
Replaces the list data in an existing HTML SELECT within the template
boolean
replaceHTMLSelectData
(string $htmlSelectName, array $array, string/integer $displayColumn, [string $valueColumn = ''], [string $selectedValue = ''], [boolean $caseSensitive = false], integer $indent)
-
string
$htmlSelectName: The name of the SELECT element
-
array
$array: An array containing numbered or associated arrays (rows)
-
string/integer
$displayColumn: The column in the arrays that contains the displayed text
-
string
$valueColumn: The column in the arrays that contains the form return values
-
string
$selectedValue: The default selected item in the list
-
boolean
$caseSensitive: TRUE if the selected item is chosen using case sensitivity
-
integer
$indent: The number of tabs to indent
Replaces the table data in an existing HTML table within the template
boolean
replaceHTMLTableData
(string $htmlTableName, array $array, [boolean $showAssocArrayColumnTitles = true], integer $indent, [string $optionalRowHeadingTags = ''], [string $optionalCellHeadingTags = ''], [string $optionalRowTags = ''], [string $optionalCellTags = ''], [string $optionalRowTags2 = ''], [string $optionalCellTags2 = ''])
-
string
$htmlTableName: The name of the table (i.e. name=)
-
array
$array: An array containing numbered or associated arrays (rows)
-
boolean
$showAssocArrayColumnTitles: TRUE if you would like to display heading titles. NOTE: This only works with associated arrays that contain key values
-
integer
$indent: The number of tabs to indent
-
string
$optionalRowHeadingTags: Tag attributes for row headings (i.e. style or class)
-
string
$optionalCellHeadingTags: Tag attributes for cells (i.e. style or class)
-
string
$optionalRowTags: Tag attributes for rows (i.e. style or class)
-
string
$optionalCellTags: Tag attributes for cells (i.e. style or class)
-
string
$optionalRowTags2: Tag attributes for alternating rows (i.e. style or class)
-
string
$optionalCellTags2: Tag attributes for alternating row cells (i.e. style or class)
Inherited Methods
Inherited From Template
Template::__construct()
Template::createHTMLSelectData()
Template::createHTMLTableData()
Template::getFormValue()
Template::getHTMLChecked()
Template::getPage()
Template::hasTag()
Template::loadPage()
Template::removeAllTags()
Template::removeTag()
Template::replaceTag()
Template::replaceTagFromFile()
Template::replaceTagFromWeb()
Template::setPage()
Template::showPage()