本文整理匯總了PHP中CI_Email::clear方法的典型用法代碼示例。如果您正苦於以下問題:PHP CI_Email::clear方法的具體用法?PHP CI_Email::clear怎麽用?PHP CI_Email::clear使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CI_Email
的用法示例。
在下文中一共展示了CI_Email::clear方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: clear
/**
* Initialize the Email Data
*
* @access public
* @return void
*/
function clear($clear_attachments = FALSE)
{
// patch for bug # 7826
// http://codeigniter.com/bug_tracker/bug/7826/
if ($this->_get_protocol() == "smtp") {
$this->_cc_array = array();
$this->_bcc_array = array();
}
parent::clear($clear_attachments);
}
示例2: clear
public function clear($clear_attachments = FALSE)
{
$clear_attachments = !empty($clear_attachments);
parent::clear($clear_attachments);
if ($this->mailer_engine == 'phpmailer') {
$this->phpmailer->clearAllRecipients();
$this->phpmailer->clearReplyTos();
if ($clear_attachments) {
$this->phpmailer->clearAttachments();
}
$this->phpmailer->clearCustomHeaders();
$this->phpmailer->Subject = '';
$this->phpmailer->Body = '';
$this->phpmailer->AltBody = '';
}
return $this;
}
示例3: clear
/**
* Extends basic CI_Email clear function with app_email clear data.
*/
public function clear()
{
parent::clear();
// empty app_email specifics
$this->_data = array();
}