html Class Reference

Detailed Description

Can be used to insert custom HTML between rendered HTML elements.

Class for custom HTML code sections.

Usage

<?php
$form = new depage\htmlform\htmlform('myform');
// add HTML
$form->addHtml('<div id="myimage"></div>');
// process form
$form->process();
// Display the form.
echo ($form);

Definition at line 34 of file html.php.

Public Member Functions

 __construct ($htmlString)
 html class constructor More...
 
 __toString ()
 Renders element to HTML. More...
 

Constructor & Destructor Documentation

__construct (   $htmlString)

html class constructor

Parameters
string$htmlStringHTML to be printed

Definition at line 46 of file html.php.

Member Function Documentation

__toString ( )

Renders element to HTML.

Returns
string $this->htmlString HTML-rendered element

Definition at line 56 of file html.php.


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