OpenPGP_Message::parse_file PHP 메소드

parse_file() 정적인 공개 메소드

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;
        }
    }