function __construct(Connection $db) { parent::__construct($db); }
/** * this is a legacy compatibility shim to make the legacy database available * * @param Connection $db reference to the {@link Connection} object */ public function __construct(Connection $db) { $this->db = XoopsDatabaseFactory::getDatabaseConnection(); // get legacy connection parent::__construct($db); }