|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Collaboration diagram for PHPExcel_Shared_OLE:Public Member Functions | |
| read ($file) | |
| Reads an OLE container from the contents of the file given. More... | |
| _getBlockOffset ($blockId) | |
| getStream ($blockIdOrPps) | |
| Returns a stream for use with fread() etc. More... | |
| _readPpsWks ($blockId) | |
| Gets information about all PPS's on the OLE container from the PPS WK's creates an OLE_PPS object for each one. More... | |
| _ppsTreeComplete ($index) | |
| It checks whether the PPS tree is complete (all PPS's read) starting with the given PPS (not necessarily root) More... | |
| isFile ($index) | |
| Checks whether a PPS is a File PPS or not. More... | |
| isRoot ($index) | |
| Checks whether a PPS is a Root PPS or not. More... | |
| ppsTotal () | |
| Gives the total number of PPS's found in the OLE container. More... | |
| getData ($index, $position, $length) | |
| Gets data from a PPS If there is no PPS for the index given, it will return an empty string. More... | |
| getDataLength ($index) | |
| Gets the data length from a PPS If there is no PPS for the index given, it will return 0. More... | |
Static Public Member Functions | |
| static | Asc2Ucs ($ascii) |
| Utility function to transform ASCII text to Unicode. More... | |
| static | LocalDate2OLE ($date=null) |
| Utility function Returns a string for the OLE container with the date given. More... | |
| static | OLE2LocalDate ($string) |
| Returns a timestamp from an OLE container's date. More... | |
Data Fields | |
| const | OLE_PPS_TYPE_ROOT = 5 |
| const | OLE_PPS_TYPE_DIR = 1 |
| const | OLE_PPS_TYPE_FILE = 2 |
| const | OLE_DATA_SIZE_SMALL = 0x1000 |
| const | OLE_LONG_INT_SIZE = 4 |
| const | OLE_PPS_SIZE = 0x80 |
| $_file_handle | |
| $_list = array() | |
| $root | |
| $bbat | |
| $sbat | |
| $bigBlockSize | |
| $smallBlockSize | |
Static Private Member Functions | |
| static | _readInt1 ($fh) |
| Reads a signed char. More... | |
| static | _readInt2 ($fh) |
| Reads an unsigned short (2 octets). More... | |
| static | _readInt4 ($fh) |
| Reads an unsigned long (4 octets). More... | |
| PHPExcel_Shared_OLE::_getBlockOffset | ( | $blockId | ) |
| int | block id |
| int | byte offset from beginning of file @access public |
Definition at line 186 of file OLE.php.
References $bigBlockSize.
Referenced by read().
Here is the caller graph for this function:| PHPExcel_Shared_OLE::_ppsTreeComplete | ( | $index | ) |
It checks whether the PPS tree is complete (all PPS's read) starting with the given PPS (not necessarily root)
@access public
| integer | $index | The index of the PPS from which we are checking |
Definition at line 343 of file OLE.php.
References $index.
Referenced by _readPpsWks().
Here is the caller graph for this function:
|
staticprivate |
Reads a signed char.
| resource | file handle |
Definition at line 228 of file OLE.php.
References $fh.
Referenced by _readPpsWks().
Here is the caller graph for this function:
|
staticprivate |
Reads an unsigned short (2 octets).
| resource | file handle |
Definition at line 240 of file OLE.php.
References $fh.
Referenced by _readPpsWks().
Here is the caller graph for this function:
|
staticprivate |
Reads an unsigned long (4 octets).
| resource | file handle |
Definition at line 252 of file OLE.php.
References $fh.
Referenced by _readPpsWks(), and read().
Here is the caller graph for this function:| PHPExcel_Shared_OLE::_readPpsWks | ( | $blockId | ) |
Gets information about all PPS's on the OLE container from the PPS WK's creates an OLE_PPS object for each one.
@access public
| integer | the block id of the first block |
Definition at line 266 of file OLE.php.
References $fh, $name, $type, _ppsTreeComplete(), _readInt1(), _readInt2(), _readInt4(), getStream(), OLE2LocalDate(), OLE_PPS_TYPE_DIR, OLE_PPS_TYPE_FILE, and OLE_PPS_TYPE_ROOT.
Referenced by read().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Utility function to transform ASCII text to Unicode.
@access public
| string | $ascii | The ASCII string to transform |
Definition at line 446 of file OLE.php.
References $i.
Referenced by PHPExcel_Shared_OLE_PPS_Root\__construct(), and PHPExcel_Writer_Excel5\save().
Here is the caller graph for this function:| PHPExcel_Shared_OLE::getData | ( | $index, | |
| $position, | |||
| $length | |||
| ) |
Gets data from a PPS If there is no PPS for the index given, it will return an empty string.
@access public
| integer | $index | The index for the PPS |
| integer | $position | The position from which to start reading (relative to the PPS) |
| integer | $length | The amount of bytes to read (at most) |
Definition at line 410 of file OLE.php.
References $data, $fh, $index, and getStream().
Here is the call graph for this function:| PHPExcel_Shared_OLE::getDataLength | ( | $index | ) |
| PHPExcel_Shared_OLE::getStream | ( | $blockIdOrPps | ) |
Returns a stream for use with fread() etc.
External callers should use PHPExcel_Shared_OLE_PPS_File::getStream().
| int|PPS | block id or PPS |
Definition at line 197 of file OLE.php.
References $GLOBALS, and $path.
Referenced by _readPpsWks(), getData(), and read().
Here is the caller graph for this function:| PHPExcel_Shared_OLE::isFile | ( | $index | ) |
Checks whether a PPS is a File PPS or not.
If there is no PPS for the index given, it will return false.
@access public
| integer | $index | The index for the PPS |
Definition at line 363 of file OLE.php.
References $index.
| PHPExcel_Shared_OLE::isRoot | ( | $index | ) |
Checks whether a PPS is a Root PPS or not.
If there is no PPS for the index given, it will return false.
@access public
| integer | $index | The index for the PPS. |
Definition at line 379 of file OLE.php.
References $index.
|
static |
Utility function Returns a string for the OLE container with the date given.
@access public
| integer | $date | A timestamp |
Definition at line 464 of file OLE.php.
References $i, $res, and date.
Referenced by PHPExcel_Shared_OLE_PPS\_getPpsWk(), and PHPExcel_Writer_Excel5\_writeSummaryInformation().
Here is the caller graph for this function:
|
static |
Returns a timestamp from an OLE container's date.
@access public
| integer | $string | A binary string with the encoded date |
Definition at line 509 of file OLE.php.
Referenced by PHPExcel_Reader_Excel5\_readDocumentSummaryInformation(), _readPpsWks(), and PHPExcel_Reader_Excel5\_readSummaryInformation().
Here is the caller graph for this function:| PHPExcel_Shared_OLE::ppsTotal | ( | ) |
| PHPExcel_Shared_OLE::read | ( | $file | ) |
Reads an OLE container from the contents of the file given.
@acces public
| string | $file |
Definition at line 96 of file OLE.php.
References $fh, $file, $i, _getBlockOffset(), _readInt4(), _readPpsWks(), and getStream().
Here is the call graph for this function:| PHPExcel_Shared_OLE::$bigBlockSize |
Definition at line 81 of file OLE.php.
Referenced by _getBlockOffset().
| const PHPExcel_Shared_OLE::OLE_DATA_SIZE_SMALL = 0x1000 |
Definition at line 43 of file OLE.php.
Referenced by PHPExcel_Shared_OLE_PPS_Root\_calcSize(), PHPExcel_Shared_OLE_PPS_Root\_makeSmallData(), and PHPExcel_Shared_OLE_PPS_Root\_saveBigData().
| const PHPExcel_Shared_OLE::OLE_LONG_INT_SIZE = 4 |
Definition at line 44 of file OLE.php.
Referenced by PHPExcel_Shared_OLE_PPS_Root\_calcSize(), PHPExcel_Shared_OLE_PPS_Root\_makeSmallData(), PHPExcel_Shared_OLE_PPS_Root\_saveBbd(), and PHPExcel_Shared_OLE_PPS_Root\_saveHeader().
| const PHPExcel_Shared_OLE::OLE_PPS_SIZE = 0x80 |
Definition at line 45 of file OLE.php.
Referenced by PHPExcel_Shared_OLE_PPS_Root\_calcSize(), and PHPExcel_Shared_OLE_PPS_Root\_savePps().
| const PHPExcel_Shared_OLE::OLE_PPS_TYPE_DIR = 1 |
Definition at line 41 of file OLE.php.
Referenced by _readPpsWks(), and PHPExcel_Shared_OLE_PPS_Root\_saveBigData().
| const PHPExcel_Shared_OLE::OLE_PPS_TYPE_FILE = 2 |
Definition at line 42 of file OLE.php.
Referenced by PHPExcel_Shared_OLE_PPS_File\__construct(), PHPExcel_Shared_OLE_PPS_Root\_calcSize(), PHPExcel_Shared_OLE_PPS_Root\_makeSmallData(), and _readPpsWks().
| const PHPExcel_Shared_OLE::OLE_PPS_TYPE_ROOT = 5 |
Definition at line 40 of file OLE.php.
Referenced by PHPExcel_Shared_OLE_PPS_Root\__construct(), _readPpsWks(), and PHPExcel_Shared_OLE_PPS_Root\_saveBigData().