ILIAS
eassessment Revision 61809
|
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. | |
_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 |
Static Private Member Functions | |
static | _readInt1 ($fh) |
Reads a signed char. | |
static | _readInt2 ($fh) |
Reads an unsigned short (2 octets). | |
static | _readInt4 ($fh) |
Reads an unsigned long (4 octets). |
PHPExcel_Shared_OLE::_getBlockOffset | ( | $blockId | ) |
int | block id |
int | byte offset from beginning of file public |
Definition at line 186 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 343 of file OLE.php.
Referenced by _readPpsWks().
|
staticprivate |
Reads a signed char.
resource | file handle |
Definition at line 228 of file OLE.php.
Referenced by _readPpsWks().
|
staticprivate |
Reads an unsigned short (2 octets).
resource | file handle |
Definition at line 240 of file OLE.php.
Referenced by _readPpsWks().
|
staticprivate |
Reads an unsigned long (4 octets).
resource | file handle |
Definition at line 252 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 266 of file OLE.php.
References $name, $pos, $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 446 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 410 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 430 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 197 of file OLE.php.
References $GLOBALS, and $path.
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 363 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 379 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 464 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 509 of file OLE.php.
Referenced by PHPExcel_Reader_Excel5\_readDocumentSummaryInformation(), _readPpsWks(), and PHPExcel_Reader_Excel5\_readSummaryInformation().
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 96 of file OLE.php.
References $file, $pos, _getBlockOffset(), _readInt4(), _readPpsWks(), and getStream().
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\_savePps().
const PHPExcel_Shared_OLE::OLE_PPS_TYPE_DIR = 1 |
Definition at line 41 of file OLE.php.
Referenced by 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(), and PHPExcel_Shared_OLE_PPS_Root\_makeSmallData().
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(), and PHPExcel_Shared_OLE_PPS_Root\_saveBigData().