Magic method to access this row's fields like native PHP properties.
Class Details
[line 246]
A Job is processed by processJobs to create a new GALInstance.
The core of the converting process is running convert from the ImageMagick project. The necessary information are the source file name, the desired resolution, the desired file extension (which determines which image type is created by convert) and the imageID and the instanceID of the new GALInstance. Normally you should not add a GALJob by hand. To create new instances of an image please use GALImage::addInstance().
This class provides various properties accessed via the magic methods GALJob::__get() and GALJob::__set(). Some of these properties correspond to database fields, some do not. The __get() and __set() methods internally use the GALJob::get() and GALJob::set() methods which provide access control - in contrast to the parent class's GALRow::get() and GALTableRow::set() methods. After performing the access control, these are used to read and write the properties corresponding to database fields. All properties corresponding to database fields are of type string, but instead database types are given here. (r indicates readable, w writable)
Properties corresponding to database fields:
INTEGER UNSIGNED jobID r The job's numerical ID, the primary key of the Jobs table.
INTEGER UNSIGNED imageID rw The numerical ID of the image the new instance will belong to.
First of all access control is performed. If successful, properties not corresponding to database fields are handled by this method itself. Properties corresponding to database fields are delegated to the inherited GALRow::get() method. It might seem strange that overriding access control is the default. It is like it is because GALRow::__construct() called by GALJob::__construct reads the row's primary key using the get() method. In our case the original get() method is overridden by the current one, so it has to work in this case without second parameter.
Overrides GALRow::get() (Returns the value of a field.)
This method provides access to the primary key without knowing the name of the primary key field. This method is implemented by all classes whose tables have a single numerical primary key. At the moment it is only used in GALComments::add(). (Better: It was introduced for GALComments::add() ;-) )
First of all access control is performed. If successful, properties not corresponding to database fields are handled by this method itself. Properties corresponding to database fields are delegated to the inherited GALTableRow::set() method. It also updates the changeDate property on every call.
Overrides GALTableRow::set() (Sets the specified field of this row to the specified value.)
It internally uses the GALJob::get() method with enforced access control. Library users should not explicitly call the __get() method - it is good for nothing. If you want to read a property with a method call, use get() instead. This method also provides overriding access control if required.
Tags:
return:
The propertie's value.
Overrides GALRow::__get() (Magic method to access this row's fields like native PHP properties.)