roundcubemail/plugins/enigma/lib/enigma_driver_gnupg.php
protected function parse_signature($sig)
    {
        $data = new enigma_signature();

        $data->id          = $sig->getId() ?: $sig->getKeyId();
        $data->valid       = $sig->isValid();
        $data->fingerprint = $sig->getKeyFingerprint();
        $data->created     = $sig->getCreationDate();
        $data->expires     = $sig->getExpirationDate();

        // In case of ERRSIG user may not be set
        if ($user = $sig->getUserId()) {
            $data->name    = $user->getName();
            $data->comment = $user->getComment();
            $data->email   = $user->getEmail();
        }

        return $data;
    }
protected function parse_signature($sig)
    {
        $data = new enigma_signature();

        $data->id          = $sig->getId() ?: $sig->getKeyId();
        $data->valid       = $sig->isValid();
        $data->fingerprint = $sig->getKeyFingerprint();
        $data->created     = $sig->getCreationDate();
        $data->expires     = $sig->getExpirationDate();

        // In case of ERRSIG user may not be set
        if ($user = $sig->getUserId()) {
            $data->name    = $user->getName();
            $data->comment = $user->getComment();
            $data->email   = $user->getEmail();
        }

        return $data;
    }
protected function parse_signature ( $ sig ) { $ data = new enigma_signature ( ) ; $ data -> id = $ sig -> getId ( ) ? : $ sig -> getKeyId ( ) ; $ data -> valid = $ sig -> isValid ( ) ; $ data -> fingerprint = $ sig -> getKeyFingerprint ( ) ; $ data -> created = $ sig -> getCreationDate ( ) ; $ data -> expires = $ sig -> getExpirationDate ( ) ; // In case of ERRSIG user may not be set if ( $ user = $ sig -> getUserId ( ) ) { $ data -> name = $ user -> getName ( ) ; $ data -> comment = $ user -> getComment ( ) ; $ data -> email = $ user -> getEmail ( ) ; } return $ data ; }
Converts Crypt_GPG_Signature object into Enigma's signature object

@param Crypt_GPG_Signature Signature object

@return enigma_signature Signature object
Converts Crypt_GPG_Signature object into Enigma s signature object