[line 39]
Manage images 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 GALInstances already exists in the specified GALGallery. If this is the case, throw an GAL_EInstance. If not, read necessary information for further initialization from $glb.