| // | | // +----------------------------------------------------------------------+ // require_once "PEAR/Common.php"; /** * Administration class used to install PEAR packages and maintain the * installed package database. * * @since PHP 4.0.2 * @author Stig Bakken */ class PEAR_Uploader extends PEAR_Common { // {{{ properties var $_tempfiles = array(); // }}} // {{{ constructor function PEAR_Uploader() { $this->PEAR_Common(); } // }}} function upload($pkgfile, $infofile = null) { if ($infofile === null) { $info = $this->infoFromTarBall($pkgfile); } else { $info = $this->infoFromDescriptionFile($infofile); } if (PEAR::isError($info)) { return $info; } } } ?>