~primes2h/ubuntu-qa-website/bug_726645

« back to all changes in this revision

Viewing changes to module/FUNCTIONS

  • Committer: Stéphane Graber
  • Date: 2007-05-14 21:04:16 UTC
  • Revision ID: stgraber@ubuntu.com-20070514210416-jfhyej0vrh2isv6c
First upload

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
VARIABLES :
 
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
 
12
 
 
13
 
 
14
isotesting_help($section)
 
15
        Required by Drupal, informations show in the modules admin interface
 
16
 
 
17
isotesting_node_info()
 
18
        Definition of the functions name and node name
 
19
 
 
20
isotesting_perm()
 
21
        Access rights used by this module
 
22
 
 
23
isotesting_menu($may_cache)
 
24
        Menu entries
 
25
 
 
26
isotesting_main($show = "iso", $isoID = "0", $testcaseID = "0", $reportID = "0")
 
27
        Main function managing /isotesting/ and calling all the others functions
 
28
 
 
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.
 
32
 
 
33
isotesting_testlist($isoID)
 
34
        Generating the test list for a given ISO
 
35
 
 
36
isotesting_resultlist($isoID, $testcaseID)
 
37
        Generating the result list for a give ISO and test case
 
38
 
 
39
isotesting_addreport($reportID = 0, $admin = 0)
 
40
        The add report form
 
41
 
 
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
 
45
 
 
46
isotesting_isosummary($isoID, $testcaseID)
 
47
        Generate the ISO/test-case summary show at the top of the pages
 
48
 
 
49
isotesting_getbugs($isoID, $testcaseID, $reportID)
 
50
        Generate the bug ICONs list/links
 
51
 
 
52
isotesting_getpath($page, $isoID, $testcaseID, $reportID)
 
53
        Generate the "You are here" path shown at the top of the pages
 
54
 
 
55
isotesting_getisostat($distro, $arch, $variant, $isoID)
 
56
        Returns the number of testcase with a result and the total number of testcases
 
57
 
 
58
isotesting_getnumberreports($isoID, $testcaseID)
 
59
        Returns the number of report for a given ISO and testcase
 
60
 
 
61
isotesting_getstateimage($state, $type)
 
62
        Return the image for a give state number and the type of it
 
63
 
 
64
isotesting_check()
 
65
        Check the content of the POST datas and return a clean array of them
 
66
 
 
67
isotesting_adminui($page, $isoID = 0, $testcaseID = 0)
 
68
        Similar to isotesting_main but for the admin functions
 
69
 
 
70
isotesting_adminui_iso()
 
71
        Generate the form shown at the bottom of the ISO page (if you are admin)
 
72
 
 
73
isotesting_adminui_test($isoID)
 
74
        Generate the form shown at the bottom of the Test page (if you are admin)
 
75
 
 
76
isotesting_adminui_report($isoID, $testcaseID, $reportID)
 
77
        Call isotesting_addreport in edit mode and with the admin parameter so that you can edit
 
78
        any of the report.
 
79
        If it receives some POST datas, it'll forward them to isotesting_validreport still telling
 
80
        it it's in admin edit mode.
 
81
 
 
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
 
85