__construct() __construct(resource $db) Constructor. Sets the database conection and the language. Parameters resource $db Connection to the database.