Class dvtXMLForm

Description

Displays a form which allows the user to upload XML.

Located in /classes/class.dvt_xml_form.php (line 16)


	
			
Variable Summary
string $content
boolean $formOK
string $parseID
string $xml
Method Summary
dvtXMLForm dvtXMLForm ()
string form (array $benchMarks, [string $formComment = ''])
void loadFile (file $xmlName)
void loadText (string $xmlName)
void loadURL (string $xmlName)
string parseID (file $xml)
void writeXMLtoTemp (file $xml)
Variables
string $content (line 19)

HTML Formatted form

boolean $formOK (line 31)

Form OK

string $parseID (line 27)

unique MD5 hash representation of XML document

string $xml (line 23)

XML document name

Methods
Constructor dvtXMLForm (line 36)

create a new object

dvtXMLForm dvtXMLForm ()
form (line 46)

Display a form, called with array of benchmarks to generate a drop down list

string form (array $benchMarks, [string $formComment = ''])
  • array $benchMarks: array of benchmarks used to create drop down list
  • string $formComment: default ='' Main comment on form
loadFile (line 79)

Load an XML file

builds a form in $this->content saves XML file to temporary location specified by MD5 hash

void loadFile (file $xmlName)
  • file $xmlName: the file to process
loadText (line 131)

Load XML from post data specified by $xmlName

builds a form in $this->content

void loadText (string $xmlName)
  • string $xmlName: the POST data to be loaded
loadURL (line 106)

Loads an XML Document from a given URL

builds a form in $this->content

void loadURL (string $xmlName)
  • string $xmlName: the URL to be loaded
parseID (line 69)

Returns a unique MD5 value for a given XML document

string parseID (file $xml)
  • file $xml: the XML file for which to generate an MD5 hash
writeXMLtoTemp (line 150)

Writes XML document to a temporary location.

The location is speciifed in dvt.ini The filename is the MD5 # value for the XML file.

void writeXMLtoTemp (file $xml)
  • file $xml: the file to saved to temporary location

Documentation generated on Tue, 21 Sep 2004 13:46:04 +0100 by phpDocumentor 1.3.0RC3