keepassphp/lib/kphpdb.php
public static function createFromDatabase(Database $db, $dbFileHash,
		$keyFileHash)
	{
		return new KphpDB(self::DBTYPE_KDBX, $db, $dbFileHash, $keyFileHash);
	}
public static function createFromDatabase(Database $db, $dbFileHash,
		$keyFileHash)
	{
		return new KphpDB(self::DBTYPE_KDBX, $db, $dbFileHash, $keyFileHash);
	}
public static function createFromDatabase ( Database $ db , $ dbFileHash , $ keyFileHash ) { return new KphpDB ( self :: DBTYPE_KDBX , $ db , $ dbFileHash , $ keyFileHash ) ; }
Creates a new KphpDB instance that wraps a Database instance.
@param $db A Database instance.
@param $dbFileHash The hexadecimal hash of the original db file.
@param $keyFileHash A possible hexadecimal hash of an additional key
file if needed to decrypt the original db file.
@return A new KphpDB instance.
Creates a new KphpDB instance that wraps a Database instance .