2
$page -> Page name (iso, test, report, edit, ...)
3
$isoID -> Database ID of an ISO (often passed as parameter)
4
$testcaseID -> Database ID of a test-case (not iso-related) (often passed as parameter)
5
$reportID -> Database ID of a report (often passed as parameter)
6
NOTE : $isoID, $testcaseID and $reportID are = 0 if not used in the specific case (for example for isotesting_getpath (see below))
7
$content -> The HTML content which will be shown on the webpage
8
$item -> Object taken from a Database recordset, often used within a while loop
9
$user -> Object taken from Drupal representing the current user (if logged in) informations
10
$base_url -> Path to drupal
11
$admin -> Set to 1 if editing a report without being the poster
14
isotesting_help($section)
15
Required by Drupal, informations show in the modules admin interface
17
isotesting_node_info()
18
Definition of the functions name and node name
21
Access rights used by this module
23
isotesting_menu($may_cache)
26
isotesting_main($show = "iso", $isoID = "0", $testcaseID = "0", $reportID = "0")
27
Main function managing /isotesting/ and calling all the others functions
29
isotesting_isolist($archive = 0)
30
Generating the ISO list view (main page)
31
If archive is set to 1, show the archives instead of the current ISO list.
33
isotesting_testlist($isoID)
34
Generating the test list for a given ISO
36
isotesting_resultlist($isoID, $testcaseID)
37
Generating the result list for a give ISO and test case
39
isotesting_addreport($reportID = 0, $admin = 0)
42
isotesting_validreport($isoID, $testcaseID, $admin = 0, $reportID1 = 0)
43
Recheck the report and if correct add/update it in the Database
44
$reportID1 is used if $admin = 1 to directly give the ID of the report to edit
46
isotesting_isosummary($isoID, $testcaseID)
47
Generate the ISO/test-case summary show at the top of the pages
49
isotesting_getbugs($isoID, $testcaseID, $reportID)
50
Generate the bug ICONs list/links
52
isotesting_getpath($page, $isoID, $testcaseID, $reportID)
53
Generate the "You are here" path shown at the top of the pages
55
isotesting_getisostat($distro, $arch, $variant, $isoID)
56
Returns the number of testcase with a result and the total number of testcases
58
isotesting_getnumberreports($isoID, $testcaseID)
59
Returns the number of report for a given ISO and testcase
61
isotesting_getstateimage($state, $type)
62
Return the image for a give state number and the type of it
65
Check the content of the POST datas and return a clean array of them
67
isotesting_adminui($page, $isoID = 0, $testcaseID = 0)
68
Similar to isotesting_main but for the admin functions
70
isotesting_adminui_iso()
71
Generate the form shown at the bottom of the ISO page (if you are admin)
73
isotesting_adminui_test($isoID)
74
Generate the form shown at the bottom of the Test page (if you are admin)
76
isotesting_adminui_report($isoID, $testcaseID, $reportID)
77
Call isotesting_addreport in edit mode and with the admin parameter so that you can edit
79
If it receives some POST datas, it'll forward them to isotesting_validreport still telling
80
it it's in admin edit mode.
82
isotesting_adminui_addiso()
83
Show the add ISO form, the list of the possible distro+arch+variant and the checkboxes.
84
It also add them to the DB