[ Index ] |
PHP Cross Reference of moodle-2.8 |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * Zend Framework 5 * 6 * LICENSE 7 * 8 * This source file is subject to the new BSD license that is bundled 9 * with this package in the file LICENSE.txt. 10 * It is also available through the world-wide-web at this URL: 11 * http://framework.zend.com/license/new-bsd 12 * If you did not receive a copy of the license and are unable to 13 * obtain it through the world-wide-web, please send an email 14 * to [email protected] so we can send you a copy immediately. 15 * 16 * @category Zend 17 * @package Zend_Gdata 18 * @subpackage Gdata 19 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) 20 * @license http://framework.zend.com/license/new-bsd New BSD License 21 * @version $Id$ 22 */ 23 24 /** 25 * A wrapper for strings for buffered reading. 26 * 27 * @category Zend 28 * @package Zend_Gdata 29 * @subpackage Gdata 30 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) 31 * @license http://framework.zend.com/license/new-bsd New BSD License 32 */ 33 class Zend_Gdata_MimeFile 34 { 35 36 /** 37 * A handle to the file that is part of the message. 38 * 39 * @var resource 40 */ 41 protected $_fileHandle = null; 42 43 /** 44 * Create a new MimeFile object. 45 * 46 * @param string $fileHandle An open file handle to the file being 47 * read. 48 */ 49 public function __construct($fileHandle) 50 { 51 $this->_fileHandle = $fileHandle; 52 } 53 54 /** 55 * Read the next chunk of the file. 56 * 57 * @param integer $bytesRequested The size of the chunk that is to be read. 58 * @return string A corresponding piece of the message. This could be 59 * binary or regular text. 60 */ 61 public function read($bytesRequested) 62 { 63 return fread($this->_fileHandle, $bytesRequested); 64 } 65 66 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |