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

📄 defaultlog.php

📁 一、修改产品详细页面的附件块 二、添加上浏览历史模块 三、在后台加入自定义首页、自定义页头、自定义页脚内容功能 四、在后台修改网站全局CSS样式文件功能 五、在后台修改每个模块的模板内容功能
💻 PHP
字号:
<?php/** * Swift Mailer Default Logger * Please read the LICENSE file * @copyright Chris Corbyn <chris@w3style.co.uk> * @author Chris Corbyn <chris@w3style.co.uk> * @package Swift_Log * @license GNU Lesser General Public License */require_once dirname(__FILE__) . "/../ClassLoader.php";Swift_ClassLoader::load("Swift_Log_Base");/** * The Default Logger class * @package Swift_Log * @author Chris Corbyn <chris@w3style.co.uk> */class Swift_Log_DefaultLog extends Swift_Log_Base{  /**   * Lines in the log   * @var array   */  protected $entries = array();    /**   * Add a log entry   * @param string The text for this entry   * @param string The label for the type of entry   */  public function add($text, $type)  {    $this->entries[] = $type . " " . $text;    if ($this->getMaxSize() > 0) $this->entries = array_slice($this->entries, (-1 * $this->getMaxSize()));  }  /**   * Dump the contents of the log to the browser   */  public function dump()  {    echo implode("\n", $this->entries);  }  /**   * Empty the log   */  public function clear()  {    $this->failedRecipients = null;    $this->failedRecipients = array();    $this->entries = null;    $this->entries = array();  }}

⌨️ 快捷键说明

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