Since: 2.4.0
Author: Michael Slusarz (slusarz@horde.org)
Example #1
0
 /**
  * Return the full rendered version of the Horde_Mime_Part object.
  *
  * @return array  See parent::render().
  */
 protected function _renderRaw()
 {
     $ret = array('data' => '', 'type' => 'text/plain; charset=' . $this->getConfigParam('charset'));
     switch ($this->_mimepart->getType()) {
         case 'application/pgp-signature':
             $parse = new Horde_Crypt_Pgp_Parse();
             $parts = $parse->parse($this->_mimepart->getContents());
             foreach (array_keys($parts) as $key) {
                 if ($parts[$key]['type'] == Horde_Crypt_Pgp::ARMOR_SIGNATURE) {
                     $ret['data'] = implode("\r\n", $parts[$key]['data']);
                     break;
                 }
             }
             break;
     }
     return array($this->_mimepart->getMimeId() => $ret);
 }
Example #2
0
File: Pgp.php Project: horde/horde
 /**
  * @deprecated  Use Horde_Crypt_Pgp_Parse instead.
  */
 public function parsePGPData($text)
 {
     $parse = new Horde_Crypt_Pgp_Parse();
     return $parse->parse($text);
 }