[line 39]
Manage jobs and handle database communication.
Only one instance of this class should exist for one database connection, i.e. one instance of GALGallery. This is assured inside __construct(). Most work is done by inherited methods from GALTable.
This constructor shouldn't be called by a library user, the representations for the used tables are automatically created by the GALGallery object.
Check if an instance of Jobs already exists in the specified GALGallery. If this is the case, throw an GAL_EJob. If not, read necessary information for further initialization from $glb.
When processing a job, an instance is created, so many properties of a job correspond to an instance's properties. $values['x'] and $values['y] are used as size parameters for convert, so the resulting image's dimension is equal or lower than the specified values! After converting the image, the real values are determined using the identify utility from ImageMagick. The parameter $values is an associative array with the following fields:
$values['image'] GALImage required The image the new job is associated with.