function infoFromAny($info)
    {
        if (is_string($info) && file_exists($info)) {
            $packagefile = &new PEAR_PackageFile($this->config);
            $pf = &$packagefile->fromAnyFile($info, PEAR_VALIDATE_NORMAL);
            if (PEAR::isError($pf)) {
                $errs = $pf->getUserinfo();
                if (is_array($errs)) {
                    foreach ($errs as $error) {
                        $e = $this->raiseError($error['message'], $error['code'], null, null, $error);
                    }
                }

                return $pf;
            }

            return $this->_postProcessValidPackagexml($pf);
        }

        return $info;
    }
function infoFromAny($info)
    {
        if (is_string($info) && file_exists($info)) {
            $packagefile = &new PEAR_PackageFile($this->config);
            $pf = &$packagefile->fromAnyFile($info, PEAR_VALIDATE_NORMAL);
            if (PEAR::isError($pf)) {
                $errs = $pf->getUserinfo();
                if (is_array($errs)) {
                    foreach ($errs as $error) {
                        $e = $this->raiseError($error['message'], $error['code'], null, null, $error);
                    }
                }

                return $pf;
            }

            return $this->_postProcessValidPackagexml($pf);
        }

        return $info;
    }
function infoFromAny ( $ info ) { if ( is_string ( $ info ) && file_exists ( $ info ) ) { $ packagefile = & new PEAR_PackageFile ( $ this -> config ) ; $ pf = & $ packagefile -> fromAnyFile ( $ info , PEAR_VALIDATE_NORMAL ) ; if ( PEAR :: isError ( $ pf ) ) { $ errs = $ pf -> getUserinfo ( ) ; if ( is_array ( $ errs ) ) { foreach ( $ errs as $ error ) { $ e = $ this -> raiseError ( $ error [ 'message' ] , $ error [ 'code' ] , null , null , $ error ) ; } } return $ pf ; } return $ this -> _postProcessValidPackagexml ( $ pf ) ; } return $ info ; }
Returns package information from different sources

This method is able to extract information about a package
from a .tgz archive or from a XML package definition file.

@access public
@param  string Filename of the source ('package.xml', '<package>.tgz')
@return string
@deprecated use PEAR_PackageFile->fromAnyFile() instead
Returns package information from different sources