|
ILIAS
Release_4_0_x_branch Revision 61816
|
Inheritance diagram for OLE:
Collaboration diagram for OLE: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. | |
Public Member Functions inherited from PEAR | |
| PEAR ($error_class=null) | |
| Constructor. | |
| _PEAR () | |
| Destructor (the emulated type of...). | |
| & | getStaticProperty ($class, $var) |
| If you have a class that's mostly/entirely static, and you need static properties, you can use this method to simulate them. | |
| registerShutdownFunc ($func, $args=array()) | |
| Use this function to register a shutdown method for static classes. | |
| isError ($data, $code=null) | |
| Tell whether a value is a PEAR error. | |
| setErrorHandling ($mode=null, $options=null) | |
| Sets how errors generated by this object should be handled. | |
| expectError ($code= '*') | |
| This method is used to tell which errors you expect to get. | |
| popExpect () | |
| This method pops one element off the expected error codes stack. | |
| _checkDelExpect ($error_code) | |
| This method checks unsets an error code if available. | |
| delExpect ($error_code) | |
| This method deletes all occurences of the specified element from the expected error codes stack. | |
| & | raiseError ($message=null, $code=null, $mode=null, $options=null, $userinfo=null, $error_class=null, $skipmsg=false) |
| This method is a wrapper that returns an instance of the configured error class with this object's default error handling applied. | |
| & | throwError ($message=null, $code=null, $userinfo=null) |
| Simpler form of raiseError with fewer options. | |
| staticPushErrorHandling ($mode, $options=null) | |
| staticPopErrorHandling () | |
| pushErrorHandling ($mode, $options=null) | |
| Push a new error handler on top of the error handler options stack. | |
| popErrorHandling () | |
| Pop the last error handler used. | |
| loadExtension ($ext) | |
| OS independant PHP extension load. | |
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 | |
Data Fields inherited from PEAR | |
| $_debug = false | |
| $_default_error_mode = null | |
| $_default_error_options = null | |
| $_default_error_handler = '' | |
| $_error_class = 'PEAR_Error' | |
| $_expected_errors = array() | |
| 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().
Here is the caller graph for this function:| 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, $name, $size, $type, _ppsTreeComplete(), OLE2LocalDate(), OLE_PPS_SIZE, OLE_PPS_TYPE_DIR, OLE_PPS_TYPE_FILE, OLE_PPS_TYPE_ROOT, and PEAR\raiseError().
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.
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().
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| 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(), PEAR\isError(), OLE_LONG_INT_SIZE, and PEAR\raiseError().
Here is the call graph for this function: