Skip to content

Commit

Permalink
Add alterPart to the activesync mime wrapper.
Browse files Browse the repository at this point in the history
Avoid having to implement/passthrough all the array access methods.
  • Loading branch information
mrubinsk committed Aug 18, 2019
1 parent 3e289de commit af5d396
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion lib/Horde/ActiveSync/Mime.php
Expand Up @@ -267,4 +267,15 @@ public function findBody($subtype = null)
return null;
}

}
/**
* Replace the specified MimePart with the provided part.
*
* @param string $id The part id of the part to replace.
* @param Horde_Mime_Part $newPart The new mimePart.
*/
public function alterPart($id, $newPart)
{
$this->_base[$id] = $newPart;
}

}

0 comments on commit af5d396

Please sign in to comment.