ILIAS
Release_3_10_x_branch Revision 61812
|
Public Member Functions | |
OLE () | |
Creates a new OLE object Remember to use ampersand when creating an OLE object ($my_ole =& new OLE();) public. | |
read ($file) | |
Reads an OLE container from the contents of the file given. | |
_OLE () | |
Destructor (using PEAR) Just closes the file handle on the OLE file. | |
_readPpsWks ($pps_wk_start, $big_block_size) | |
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 | |
Asc2Ucs ($ascii) | |
Utility function to transform ASCII text to Unicode. | |
LocalDate2OLE ($date=null) | |
Utility function Returns a string for the OLE container with the date given. | |
OLE2LocalDate ($string) | |
Returns a timestamp from an OLE container's date. |
Data Fields | |
$_file_handle | |
$_list |
OLE::_OLE | ( | ) |
OLE::_ppsTreeComplete | ( | $index | ) |
It checks whether the PPS tree is complete (all PPS's read) starting with the given PPS (not necessarily root)
private
integer | $index | The index of the PPS from which we are checking |
Definition at line 197 of file OLE.php.
Referenced by _readPpsWks().
OLE::_readPpsWks | ( | $pps_wk_start, | |
$big_block_size | |||
) |
Gets information about all PPS's on the OLE container from the PPS WK's creates an OLE_PPS object for each one.
private
integer | $pps_wk_start | Position inside the OLE file where PPS WK's start |
integer | $big_block_size | Size of big blobks in the OLE file |
Definition at line 143 of file OLE.php.
References $dir, $size, _ppsTreeComplete(), OLE2LocalDate(), OLE_PPS_SIZE, 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 307 of file OLE.php.
Referenced by Spreadsheet_Excel_Writer_Workbook\_storeOLEFile(), and OLE_PPS_Root\OLE_PPS_Root().
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 272 of file OLE.php.
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 291 of file OLE.php.
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 226 of file OLE.php.
References OLE_PPS_TYPE_FILE.
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 242 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 325 of file OLE.php.
References $res.
Referenced by OLE_PPS\_getPpsWk().
OLE::OLE | ( | ) |
|
static |
Returns a timestamp from an OLE container's date.
public
integer | $string | A binary string with the encoded date |
Definition at line 372 of file OLE.php.
Referenced by _readPpsWks().
OLE::ppsTotal | ( | ) |
OLE::read | ( | $file | ) |
Reads an OLE container from the contents of the file given.
public
string | $file |
Definition at line 74 of file OLE.php.
References $file, $ret, _readPpsWks(), and OLE_LONG_INT_SIZE.