/** * Set the database object for communication with the database of this class. * @param object $database An object of the class Database. This should be the global $gDb object. */ public function setDatabase(&$database) { parent::setDatabase($database); if (is_object($this->mAutoLogin)) { $this->mAutoLogin->setDatabase($database); } }