You are here

public function PHPExcel_Reader_Excel5_Escher::load in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel5/Escher.php \PHPExcel_Reader_Excel5_Escher::load()

* Load Escher stream data. May be a partial Escher stream. * *

Parameters

string $data:

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel5/Escher.php, line 99

Class

PHPExcel_Reader_Excel5_Escher
PHPExcel_Reader_Excel5_Escher

Code

public function load($data) {
  $this->_data = $data;

  // total byte size of Excel data (workbook global substream + sheet substreams)
  $this->_dataSize = strlen($this->_data);
  $this->_pos = 0;

  // Parse Escher stream
  while ($this->_pos < $this->_dataSize) {

    // offset: 2; size: 2: Record Type
    $fbt = PHPExcel_Reader_Excel5::_GetInt2d($this->_data, $this->_pos + 2);
    switch ($fbt) {
      case self::DGGCONTAINER:
        $this
          ->_readDggContainer();
        break;
      case self::DGG:
        $this
          ->_readDgg();
        break;
      case self::BSTORECONTAINER:
        $this
          ->_readBstoreContainer();
        break;
      case self::BSE:
        $this
          ->_readBSE();
        break;
      case self::BLIPJPEG:
        $this
          ->_readBlipJPEG();
        break;
      case self::BLIPPNG:
        $this
          ->_readBlipPNG();
        break;
      case self::OPT:
        $this
          ->_readOPT();
        break;
      case self::TERTIARYOPT:
        $this
          ->_readTertiaryOPT();
        break;
      case self::SPLITMENUCOLORS:
        $this
          ->_readSplitMenuColors();
        break;
      case self::DGCONTAINER:
        $this
          ->_readDgContainer();
        break;
      case self::DG:
        $this
          ->_readDg();
        break;
      case self::SPGRCONTAINER:
        $this
          ->_readSpgrContainer();
        break;
      case self::SPCONTAINER:
        $this
          ->_readSpContainer();
        break;
      case self::SPGR:
        $this
          ->_readSpgr();
        break;
      case self::SP:
        $this
          ->_readSp();
        break;
      case self::CLIENTTEXTBOX:
        $this
          ->_readClientTextbox();
        break;
      case self::CLIENTANCHOR:
        $this
          ->_readClientAnchor();
        break;
      case self::CLIENTDATA:
        $this
          ->_readClientData();
        break;
      default:
        $this
          ->_readDefault();
        break;
    }
  }
  return $this->_object;
}