/** */ public function canRender($mode) { return $mode == 'inline' && !$this->_init(true) ? false : parent::canRender($mode); }
/** * Can this driver render the data? * * @param string $mode See parent::canRender(). * * @return boolean See parent::canRender(). */ public function canRender($mode) { switch ($mode) { case 'full': if ($this->_mimepart->getType() == 'application/pgp-keys') { return true; } break; case 'raw': if ($this->_mimepart->getType() == 'application/pgp-signature' && $this->_mimepart->getMetadata(Horde_Crypt_Pgp_Parse::SIG_RAW)) { return true; } break; } return parent::canRender($mode); }