Skip to content

Commit

Permalink
Re-add fingerprint/id for the base key
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed May 5, 2015
1 parent 70c8404 commit 83ebac6
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions framework/Pgp/lib/Horde/Pgp/Element/Key.php
Expand Up @@ -19,6 +19,9 @@
* @copyright 2015 Horde LLC
* @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
* @package Pgp
*
* @property-read string $fingerprint Fingerprint of the base key.
* @property-read string $id ID of the base key.
*/
abstract class Horde_Pgp_Element_Key
extends Horde_Pgp_Element
Expand All @@ -37,6 +40,18 @@ abstract class Horde_Pgp_Element_Key
*/
protected $_cache;

/**
*/
public function __get($name)
{
switch ($name) {
case 'fingerprint':
case 'id':
$base = $this->getSignKeys();
return $base[0]->$name;
}
}

/**
* Return the list of key fingerprints.
*
Expand Down

0 comments on commit 83ebac6

Please sign in to comment.