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

📄 cachefactory.php

📁 一、修改产品详细页面的附件块 二、添加上浏览历史模块 三、在后台加入自定义首页、自定义页头、自定义页脚内容功能 四、在后台修改网站全局CSS样式文件功能 五、在后台修改每个模块的模板内容功能
💻 PHP
字号:
<?php/** * Swift Mailer Cache Factory class * Please read the LICENSE file * @author Chris Corbyn <chris@w3style.co.uk> * @package Swift_Cache * @license GNU Lesser General Public License */require_once dirname(__FILE__) . "/ClassLoader.php";/** * Makes instances of the cache the user has defined * @package Swift_Cache * @author Chris Corbyn <chris@w3style.co.uk> */class Swift_CacheFactory{  /**   * The name of the class which defines the cache   * @var string Case SenSITivE   */  protected static $className = "Swift_Cache_Memory";    /**   * Set the name of the class which is supposed to be used   * This also includes the file   * @param string The class name   */  public static function setClassName($name)  {    Swift_ClassLoader::load($name);    self::$className = $name;  }  /**   * Return a new instance of the cache object   * @return Swift_Cache   */  public static function getCache()  {    $className = self::$className;    Swift_ClassLoader::load($className);    $instance = new $className();    return $instance;  }}

⌨️ 快捷键说明

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