ILIAS
Release_4_0_x_branch Revision 61816
|
Public Member Functions | |
read ($file) | |
Reads an OLE container from the contents of the file given. | |
_getBlockOffset ($blockId) | |
getStream ($blockIdOrPps) | |
Returns a stream for use with fread() etc. | |
_readInt1 ($fh) | |
Reads a signed char. | |
_readInt2 ($fh) | |
Reads an unsigned short (2 octets). | |
_readInt4 ($fh) | |
Reads an unsigned long (4 octets). | |
_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. | |
_ppsTreeComplete ($index) | |
It checks whether the PPS tree is complete (all PPS's read) starting with the given PPS (not necessarily root) | |
isFile ($index) | |
Checks whether a PPS is a File PPS or not. | |
isRoot ($index) | |
Checks whether a PPS is a Root PPS or not. | |
ppsTotal () | |
Gives the total number of PPS's found in the OLE container. | |
getData ($index, $position, $length) | |
Gets data from a PPS If there is no PPS for the index given, it will return an empty string. | |
getDataLength ($index) | |
Gets the data length from a PPS If there is no PPS for the index given, it will return 0. |
Static Public Member Functions | |
static | Asc2Ucs ($ascii) |
Utility function to transform ASCII text to Unicode. | |
static | LocalDate2OLE ($date=null) |
Utility function Returns a string for the OLE container with the date given. | |
static | OLE2LocalDate ($string) |
Returns a timestamp from an OLE container's date. |
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 |
PHPExcel_Shared_OLE::_getBlockOffset | ( | $blockId | ) |
int | block id |
int | byte offset from beginning of file public |
Definition at line 199 of file OLE.php.
References $bigBlockSize.
Referenced by read().
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)
public
integer | $index | The index of the PPS from which we are checking |
Definition at line 356 of file OLE.php.
Referenced by _readPpsWks().
PHPExcel_Shared_OLE::_readInt1 | ( | $fh | ) |
Reads a signed char.
resource | file handle |
Definition at line 241 of file OLE.php.
Referenced by _readPpsWks().
PHPExcel_Shared_OLE::_readInt2 | ( | $fh | ) |
Reads an unsigned short (2 octets).
resource | file handle |
Definition at line 253 of file OLE.php.
Referenced by _readPpsWks(), and read().
PHPExcel_Shared_OLE::_readInt4 | ( | $fh | ) |
Reads an unsigned long (4 octets).
resource | file handle |
Definition at line 265 of file OLE.php.
Referenced by _readPpsWks(), and read().
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.
public
integer | the block id of the first block |
Definition at line 279 of file OLE.php.
References $name, $type, _ppsTreeComplete(), _readInt1(), _readInt2(), _readInt4(), getStream(), OLE2LocalDate(), OLE_PPS_TYPE_DIR, OLE_PPS_TYPE_FILE, and OLE_PPS_TYPE_ROOT.
Referenced by read().
|
static |
Utility function to transform ASCII text to Unicode.
public
string | $ascii | The ASCII string to transform |
Definition at line 459 of file OLE.php.
Referenced by PHPExcel_Shared_OLE_PPS_Root\__construct(), and PHPExcel_Writer_Excel5\save().
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.
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 423 of file OLE.php.
References $data, and getStream().
PHPExcel_Shared_OLE::getDataLength | ( | $index | ) |
Gets the data length from a PPS If there is no PPS for the index given, it will return 0.
public
integer | $index | The index for the PPS |
Definition at line 443 of file OLE.php.
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 210 of file OLE.php.
References $GLOBALS.
Referenced by _readPpsWks(), getData(), and read().
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.
public
integer | $index | The index for the PPS |
Definition at line 376 of file OLE.php.
References OLE_PPS_TYPE_FILE.
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.
public
integer | $index | The index for the PPS. |
Definition at line 392 of file OLE.php.
References OLE_PPS_TYPE_ROOT.
|
static |
Utility function Returns a string for the OLE container with the date given.
public
integer | $date | A timestamp |
Definition at line 477 of file OLE.php.
References $res.
Referenced by PHPExcel_Shared_OLE_PPS\_getPpsWk().
|
static |
Returns a timestamp from an OLE container's date.
public
integer | $string | A binary string with the encoded date |
Definition at line 522 of file OLE.php.
Referenced by _readPpsWks().
PHPExcel_Shared_OLE::ppsTotal | ( | ) |
PHPExcel_Shared_OLE::read | ( | $file | ) |
Reads an OLE container from the contents of the file given.
public
string | $file |
Definition at line 109 of file OLE.php.
References $file, _getBlockOffset(), _readInt2(), _readInt4(), _readPpsWks(), and getStream().
PHPExcel_Shared_OLE::$bigBlockSize |
Definition at line 94 of file OLE.php.
Referenced by _getBlockOffset().
const PHPExcel_Shared_OLE::OLE_DATA_SIZE_SMALL = 0x1000 |
Definition at line 56 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 57 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_TYPE_DIR = 1 |
Definition at line 54 of file OLE.php.
Referenced by PHPExcel_Shared_OLE_PPS_Root\_saveBigData().
const PHPExcel_Shared_OLE::OLE_PPS_TYPE_FILE = 2 |
Definition at line 55 of file OLE.php.
Referenced by PHPExcel_Shared_OLE_PPS_File\__construct(), PHPExcel_Shared_OLE_PPS_Root\_calcSize(), and PHPExcel_Shared_OLE_PPS_Root\_makeSmallData().
const PHPExcel_Shared_OLE::OLE_PPS_TYPE_ROOT = 5 |
Definition at line 53 of file OLE.php.
Referenced by PHPExcel_Shared_OLE_PPS_Root\__construct(), and PHPExcel_Shared_OLE_PPS_Root\_saveBigData().