⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 verbosesending.php

📁 一、修改产品详细页面的附件块 二、添加上浏览历史模块 三、在后台加入自定义首页、自定义页头、自定义页脚内容功能 四、在后台修改网站全局CSS样式文件功能 五、在后台修改每个模块的模板内容功能
💻 PHP
字号:
<?php/** * Swift Mailer Verbose Sending Plugin. * Please read the LICENSE file * @author Chris Corbyn <chris@w3style.co.uk> * @package Swift_Plugin * @subpackage VerboseSending * @license GNU Lesser General Public License */require_once dirname(__FILE__) . "/../ClassLoader.php";Swift_ClassLoader::load("Swift_Events_SendListener");Swift_ClassLoader::load("Swift_Plugin_VerboseSending_DefaultView");/** * Verbose Sending plugin for Swift Mailer. * Displays "pass" or "fail" messages in realtime as the messages are sent. * @package Swift_Plugin * @subpackage VerboseSending * @author Chris Corbyn <chris@w3style.co.uk> */class Swift_Plugin_VerboseSending implements Swift_Events_SendListener{  /**   * The view layer which displays the results.   * @var Swift_Plugin_VerboseSending_AbstractView   */  protected $view;    /**   * Ctor.   * @param Swift_Plugin_VerboseSending_AbstractView The view object to display the result   */  public function __construct(Swift_Plugin_VerboseSending_AbstractView $view)  {    $this->setView($view);  }  /**   * Part of the interface which is notified when a message has been sent.   * @param Swift_Events_SendEvent   */  public function sendPerformed(Swift_Events_SendEvent $e)  {    $recipients = $e->getRecipients();    $failed = $e->getFailedRecipients();    $it = $recipients->getIterator("to");    while ($it->hasNext())    {      $it->next();      $address = $it->getValue();      $pass = !in_array($address->getAddress(), $failed);      $this->getView()->paintResult($address->getAddress(), $pass);    }    $it = $recipients->getIterator("cc");    while ($it->hasNext())    {      $it->next();      $address = $it->getValue();      $pass = !in_array($address->getAddress(), $failed);      $this->getView()->paintResult($address->getAddress(), $pass);    }    $it = $recipients->getIterator("bcc");    while ($it->hasNext())    {      $it->next();      $address = $it->getValue();      $pass = !in_array($address->getAddress(), $failed);      $this->getView()->paintResult($address->getAddress(), $pass);    }  }  /**   * Set the View component to display results.   * @param Swift_Plugin_VerboseSending_AbstractView The view object to display the result   */  public function setView(Swift_Plugin_VerboseSending_AbstractView $view)  {    $this->view = $view;  }  /**   * Get the View component.   * @return Swift_Plugin_VerboseSending_AbstractView   */  public function getView()  {    return $this->view;  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -