need to reimplement Clear methods from parent, to also clear our private addresses

This commit is contained in:
Ralf Becker 2013-08-05 08:47:19 +00:00
parent 188328b1d0
commit 57634dc01f

View File

@ -239,4 +239,40 @@ class egw_mailer extends PHPMailer
7 => 0 7 => 0
); );
} }
/**
* Clears all recipients assigned in the TO array. Returns void.
*/
public function ClearAddresses() {
$this->addresses['to'] = array();
parent::ClearAddresses();
}
/**
* Clears all recipients assigned in the CC array. Returns void.
*/
public function ClearCCs() {
$this->addresses['cc'] = array();
parent::ClearCCs();
}
/**
* Clears all recipients assigned in the BCC array. Returns void.
*/
public function ClearBCCs() {
$this->addresses['bcc'] = array();
parent::ClearBCCs();
}
/**
* Clears all recipients assigned in the TO, CC and BCC array. Returns void.
*/
public function ClearAllRecipients() {
$this->addresses = array();
parent::ClearAllRecipients();
}
} }