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

📄 outputstream.php

📁 一、修改产品详细页面的附件块 二、添加上浏览历史模块 三、在后台加入自定义首页、自定义页头、自定义页脚内容功能 四、在后台修改网站全局CSS样式文件功能 五、在后台修改每个模块的模板内容功能
💻 PHP
字号:
<?php/** * Swift Mailer Output stream to read bytes from cached data * Please read the LICENSE file * @author Chris Corbyn <chris@w3style.co.uk> * @package Swift_Cache * @license GNU Lesser General Public License *//** * The wraps the streaming functionality of the cache * @package Swift_Cache * @author Chris Corbyn <chris@w3style.co.uk> */class Swift_Cache_OutputStream{  /**   * The key to read in the actual cache   * @var string   */  protected $key;  /**   * The cache object to read   * @var Swift_Cache   */  protected $cache;    /**   * Ctor.   * @param Swift_Cache The cache to read from   * @param string The key for the cached data   */  public function __construct(Swift_Cache $cache, $key)  {    $this->cache = $cache;    $this->key = $key;  }  /**   * Read bytes from the cache and seek through the buffer   * Returns false if EOF is reached   * @param int The number of bytes to read (could be ignored)   * @return string The read bytes   */  public function read($size=null)  {    return $this->cache->read($this->key, $size);  }  /**   * Read the entire cached data as one string   * @return string   */  public function readFull()  {    $ret = "";    while (false !== $bytes = $this->read())      $ret .= $bytes;    return $ret;  }}

⌨️ 快捷键说明

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