Changes between Version 9 and Version 10 of BossaReference


Ignore:
Timestamp:
Jul 18, 2008, 9:45:39 PM (16 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BossaReference

    v9 v10  
    99
    1010Each of these is represented by a table in a MySQL database.
     11
     12Each application has an associated "time estimate" - shown to user - and
     13"time limit"; if an instance is not completed within the time limit,
     14is is considered "timed out".
    1115
    1216Jobs may be marked as '''calibration jobs'''.
     
    7781Initial priorities are one.
    7882Returns true on success.
     83
     84== Application functions ==
     85
     86Each application must define a set of functions, listed below.
     87These are stored in a file '''project/html/inc/APPNAME.inc''',
     88where APPNAME is the application's short name.
     89
     90{{{
     91bool job_show(object $job, object $instance, object $user)
     92}}}
     93
     94Display the given job instance to the given user.
     95Return true on success.
     96
     97A job may consist of a single web page or a sequence of web pages.
     98In either case the "done" action on the final page must go to the URL
     99'''bossa_job_finished.php''', passing it a GET argument '''bji''' consisting
     100of the ID of the job instance.
     101
     102{{{
     103job_issued(object $job, object $inst, object $user)
     104}}}
     105Called when the given instance has timed out.
     106
     107{{{
     108job_finished(object $job, object $inst, object $user)
     109}}}
     110
     111Called when the given instance has finished.
     112
     113{{{
     114job_timed_out(object $job, object $inst, object $user)
     115}}}
     116
     117Called when the given instance has timed out.
     118
     119{{{
     120string job_summary(object $job)
     121}}}
     122
     123Return a short string describing the job,
     124for use in administrative pages.
     125For example, this might return an image name hyperlinked to the image.
     126
     127{{{
     128string instance_summary(object $info)
     129}}}
     130
     131Return a string summarizing the app data for an instance.
     132
     133{{{
     134string user_summary(object $user)
     135}}}
     136
     137Return a string summarizing the app data for a user.