Update DataGenerator.class.php

Added the private data compression flag to this class. Coded constructor to initialize this flag based on POST data. Also included a public getter method for the compression flag.