/** * Constructor * * Set supplied parameters. * * @access public * @param array $params associative array of parameters * * <b>one of:</b> * o 'file' => path to file for download * o 'data' => raw data for download * o 'resource' => resource handle for download * <br/> * <b>and any of:</b> * o 'cache' => whether to allow cs caching * o 'gzip' => whether to gzip the download * o 'lastmodified' => unix timestamp * o 'contenttype' => content type of download * o 'contentdisposition' => content disposition * o 'buffersize' => amount of bytes to buffer * o 'throttledelay' => amount of secs to sleep * * <br /> * 'Content-Disposition' is not HTTP compliant, but most browsers * follow this header, so it was borrowed from MIME standard. * * It looks like this: <br /> * "Content-Disposition: attachment; filename=example.tgz". * * @see HTTP_Download::setContentDisposition() */ function HTTP_Download($params = array()) { HTTP_Download::__construct($params); }