/** * this is a legacy compatibility shim to make the legacy database available * * @param Connection $db reference to the {@link Connection} object */ protected function __construct(Connection $db = null, $table = '', $className = '', $keyName = '', $identifierName = '') { if ($db === null) { $this->db2 = \Xoops\Core\Database\Factory::getConnection(); $db = $this->db2; } $this->db = XoopsDatabaseFactory::getDatabaseConnection(); // get legacy connection parent::__construct($db, $table, $className, $keyName, $identifierName); }
function __construct(\Xoops\Core\Database\Connection $db, $table = '', $className = '', $keyName = '', $identifierName = '') { parent::__construct($db, $table, $className, $keyName, $identifierName); }