Skip to content

Commit

Permalink
Fix variable names.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Dec 31, 2014
1 parent ca69c9e commit 500d85b
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions framework/Compress/lib/Horde/Compress/Tnef/Vtodo.php
Expand Up @@ -67,6 +67,27 @@ class Horde_Compress_Tnef_vTodo extends Horde_Compress_Tnef_Object
*/
protected $_percentComplete;

/**
* Plain body
*
* @var string
*/
protected $_bodyPlain;

/**
* HTML body.
*
* @var string
*/
protected $_bodyHtml;

/**
* Compressed RTF body.
*
* @var string
*/
protected $_rtfCompressed;

/**
* The MIME type of this object's content.
*
Expand Down Expand Up @@ -165,11 +186,11 @@ public function setMapiAttribute($type, $name, $value)
// regardless of where it comes from.
case Horde_Compress_Tnef::MAPI_TAG_BODY:
// plaintext?
$this->bodyPlain = $value;
$this->_bodyPlain = $value;
break;
case Horde_Compress_Tnef::MAPI_TAG_HTML:
// html
$this->bodyHtml = $value;
$this->_bodyHtml = $value;
break;
case Horde_Compress_Tnef::MAPI_TAG_RTF_COMPRESSED:
$this->_rtfCompressed = $value;
Expand Down Expand Up @@ -223,9 +244,9 @@ protected function _tovTodo()
}

// Figure out the body.
if ($this->bodyPlain) {
if ($this->_bodyPlain) {
$vtodo->setAttribute('DESCRIPTION', $this->bodyPlain);
} elseif ($this->bodyHtml) {
} elseif ($this->_bodyHtml) {
$vtodo->setAttribute(Horde_Text_Filter::filter($this->bodyHtml, 'html2text'));
} elseif ($this->_rtfCompressed) {
// @todo Decompress and parse using Horde_Mime_Viewer_Rtf?
Expand Down

0 comments on commit 500d85b

Please sign in to comment.