XMLExport Class Reference

General XML export calss. More...

Public Member Functions

 openHeader ($action)
 Function wich open XML header This function will open XML header and set header information.
 createPages ($page, $page_count)
 Function wich creates page list.
 closeHeader ()
 Function to close XML export header.
 createAppInfo ($id, $verid, $name, $desc, $category, $url, $versions_list="", $category_list="", $test_results="", $comment_list="", $verinfo="", $bugs_list="")
 Function wich creates application XML info.
 createAppVersionInfo ($verid, $appver, $rating, $winever)
 Function wich creates app version XML view.
 createAppTestingInfo ($testid, $rating, $winever, $works, $notworks, $nottested, $comment, $vername, $lic)
 Function wich creates app version XML view.
 createTop5TestResults ($testid, $rating, $winever, $testdate, $distrib, $installs, $runs, $curr)
 Function wich gets top 5 test results XML view.
 createCategoryInfo ($id, $name, $desc)
 Function wich gets category XML view.
 createCategoryAppInfo ($id, $name, $desc)
 Function wich gets category appinfo XML view.
 createComment ($id, $parent, $user, $subject, $body, $time)
 Function wich gets comment XML view.
 createBugList ($bug_id, $bug_status, $resolution, $short_desc)
 Function wich gets bugs XML view.

Detailed Description

General XML export calss.

This class provides general xml view generation functions

Author:
Malakhov Alexey

Definition at line 35 of file xml.php.


Member Function Documentation

closeHeader (  ) 

Function to close XML export header.

Definition at line 74 of file xml.php.

createAppInfo ( id,
verid,
name,
desc,
category,
url,
versions_list = "",
category_list = "",
test_results = "",
comment_list = "",
verinfo = "",
bugs_list = "" 
)

Function wich creates application XML info.

Parameters:
id application id
verid application version id
name application name
desc application desc
category application category
url application web page url
versions_list application versions list, defalut empty
category_list application category list, defalut empty
test_results application test results list list, defalut empty
comment_list application comment list, defalut empty
verinfo application version info, defalut empty
bugs_list application bugs list, defalut empty
Returns:
ret string containg full XML view

Definition at line 97 of file xml.php.

createAppTestingInfo ( testid,
rating,
winever,
works,
notworks,
nottested,
comment,
vername,
lic 
)

Function wich creates app version XML view.

Parameters:
testid application test id
rating application test rating
winever wine test version
works what works
notworks what not works
nottested what not tested
comment comment
vername version name
lic license
Returns:
ret string containg full XML view

Definition at line 180 of file xml.php.

createAppVersionInfo ( verid,
appver,
rating,
winever 
)

Function wich creates app version XML view.

Parameters:
verid application version id
appver application id
rating application test rating
winever wine version
Returns:
ret string containg full XML view

Definition at line 156 of file xml.php.

createBugList ( bug_id,
bug_status,
resolution,
short_desc 
)

Function wich gets bugs XML view.

Parameters:
bug_id bug id
bug_status bug status
resolution bug resolution
short_desc bug short description
Returns:
ret string containg full XML view

Definition at line 308 of file xml.php.

createCategoryAppInfo ( id,
name,
desc 
)

Function wich gets category appinfo XML view.

Parameters:
id application id
name application name
desc application description
Returns:
ret string containg full XML view

Definition at line 259 of file xml.php.

createCategoryInfo ( id,
name,
desc 
)

Function wich gets category XML view.

Parameters:
id application id
name application name
desc application description
Returns:
ret string containg full XML view

Definition at line 242 of file xml.php.

createComment ( id,
parent,
user,
subject,
body,
time 
)

Function wich gets comment XML view.

Parameters:
id comment id
parent comment parent id
user commented user
subject comment subject
body comment body
time comment time
Returns:
ret string containg full XML view

Definition at line 279 of file xml.php.

createPages ( page,
page_count 
)

Function wich creates page list.

Parameters:
page current page
page_count total page count
Returns:
ret string containg full XML view

Definition at line 64 of file xml.php.

createTop5TestResults ( testid,
rating,
winever,
testdate,
distrib,
installs,
runs,
curr 
)

Function wich gets top 5 test results XML view.

Parameters:
testid application test id
rating application test rating
winever wine test version
testdate test date
distrib distribution
installs did installs?
runs did runs?
curr is current test?
Returns:
ret string containg full XML view

Definition at line 208 of file xml.php.

openHeader ( action  ) 

Function wich open XML header This function will open XML header and set header information.

Parameters:
action XML export action description
action 1 -- search app by name or toggle page
action 3 -- view app by id
action 4 -- view app test results by id
action 5 -- view category info
Returns:
ret string containg full XML view

Definition at line 50 of file xml.php.


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

Generated on Tue Jan 12 15:28:46 2010 for Wine AppDB xmlexport by  doxygen 1.6.1