new RecordPic - jcobban/Genealogy GitHub Wiki
new RecordPic($dbrow, $newTable)
Up: class RecordPic
New instances of RecordPic are created using the constructor function. This constructor is normally only called from the constructors of classes derived from RecordPic. The parameters for this constructor are:
parameter | description |
---|---|
$dbrow | This is normally an associative array object as returned as a row from a database query. All of the field names in this array must be in lower case. This is stored in $this->row. This can also be a partial array containing only enough field values to identify a single record from the database. In this case the case of the field names is unimportant. |
$newTable | The name of the table from which the above array object was retrieved. To ensure that the functionality works on Linux based servers this name must be in mixed case. This is stored in $this->table. |
If a problem occurs in this constructor, it throws an Exception. The include files for the derived classes should be viewed to see examples of the use of this constructor.