You are here

class PHPExcel_Shared_OLE_PPS_File in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/OLE/PPS/File.php \PHPExcel_Shared_OLE_PPS_File

Class for creating File PPS's for OLE containers

@author Xavier Noguer <xnoguer@php.net> @category PHPExcel @package PHPExcel_Shared_OLE

Hierarchy

Expanded class hierarchy of PHPExcel_Shared_OLE_PPS_File

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/OLE/PPS/File.php, line 30

View source
class PHPExcel_Shared_OLE_PPS_File extends PHPExcel_Shared_OLE_PPS {

  /**
   * The constructor
   *
   * @access public
   * @param string $name The name of the file (in Unicode)
   * @see OLE::Asc2Ucs()
   */
  public function __construct($name) {
    parent::__construct(null, $name, PHPExcel_Shared_OLE::OLE_PPS_TYPE_FILE, null, null, null, null, null, '', array());
  }

  /**
   * Initialization method. Has to be called right after OLE_PPS_File().
   *
   * @access public
   * @return mixed true on success
   */
  public function init() {
    return true;
  }

  /**
   * Append data to PPS
   *
   * @access public
   * @param string $data The data to append
   */
  public function append($data) {
    $this->_data .= $data;
  }

  /**
   * Returns a stream for reading this file using fread() etc.
   * @return  resource  a read-only stream
   */
  public function getStream() {
    $this->ole
      ->getStream($this);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
PHPExcel_Shared_OLE_PPS::$children public property * Array of child PPS's (only used by Root and Dir PPS's) *
PHPExcel_Shared_OLE_PPS::$DirPps public property * The index of it's first child if this is a Dir or Root PPS *
PHPExcel_Shared_OLE_PPS::$Name public property * The PPS name (in Unicode) *
PHPExcel_Shared_OLE_PPS::$NextPps public property * The index of the next PPS *
PHPExcel_Shared_OLE_PPS::$No public property * The PPS index *
PHPExcel_Shared_OLE_PPS::$ole public property * Pointer to OLE container *
PHPExcel_Shared_OLE_PPS::$PrevPps public property * The index of the previous PPS *
PHPExcel_Shared_OLE_PPS::$Size public property * The size of the PPS's data (in bytes) *
PHPExcel_Shared_OLE_PPS::$Time1st public property * A timestamp *
PHPExcel_Shared_OLE_PPS::$Time2nd public property * A timestamp *
PHPExcel_Shared_OLE_PPS::$Type public property * The PPS type. Dir, Root or File *
PHPExcel_Shared_OLE_PPS::$_data public property * The PPS's data (only used if it's not using a temporary file) *
PHPExcel_Shared_OLE_PPS::$_StartBlock public property * Starting block (small or big) for this PPS's data inside the container *
PHPExcel_Shared_OLE_PPS::_DataLen public function * Returns the amount of data saved for this PPS * * @access public *
PHPExcel_Shared_OLE_PPS::_getPpsWk public function * Returns a string with the PPS's WK (What is a WK?) * * @access public *
PHPExcel_Shared_OLE_PPS::_savePpsSetPnt public static function * Updates index and pointers to previous, next and children PPS's for this * PPS. I don't think it'll work with Dir PPS's. * * @access public *
PHPExcel_Shared_OLE_PPS_File::append public function * Append data to PPS * * @access public *
PHPExcel_Shared_OLE_PPS_File::getStream public function * Returns a stream for reading this file using fread() etc. *
PHPExcel_Shared_OLE_PPS_File::init public function * Initialization method. Has to be called right after OLE_PPS_File(). * * @access public *
PHPExcel_Shared_OLE_PPS_File::__construct public function * The constructor * * @access public * Overrides PHPExcel_Shared_OLE_PPS::__construct