OpenPGP_Message::parse_file PHP Method

parse_file() static public method

static public parse_file ( $path )
    static function parse_file($path)
    {
        if ($msg = self::parse(file_get_contents($path))) {
            $msg->uri = preg_match('!^[\\w\\d]+://!', $path) ? $path : 'file://' . realpath($path);
            return $msg;
        }
    }