ILIAS
Release_3_10_x_branch Revision 61812
|
Public Member Functions | |
OLE_PPS_Root ($time_1st, $time_2nd, $raChild) | |
Constructor. | |
setTempDir ($dir) | |
Sets the temp dir used for storing the OLE file. | |
save ($filename) | |
Method for saving the whole OLE container (including files). | |
_calcSize (&$raList) | |
Calculate some numbers. | |
_adjust2 ($i2) | |
Helper function for caculating a magic value for block sizes. | |
_saveHeader ($iSBDcnt, $iBBcnt, $iPPScnt) | |
Save OLE header. | |
_saveBigData ($iStBlk, &$raList) | |
Saving big data (PPS's with data bigger than OLE_DATA_SIZE_SMALL) | |
_makeSmallData (&$raList) | |
get small data (PPS's with data smaller than OLE_DATA_SIZE_SMALL) | |
_savePps (&$raList) | |
Saves all the PPS's WKs. | |
_saveBbd ($iSbdSize, $iBsize, $iPpsCnt) | |
Saving Big Block Depot. | |
Public Member Functions inherited from OLE_PPS | |
OLE_PPS ($No, $name, $type, $prev, $next, $dir, $time_1st, $time_2nd, $data, $children) | |
The constructor. | |
_DataLen () | |
Returns the amount of data saved for this PPS. | |
_getPpsWk () | |
Returns a string with the PPS's WK (What is a WK?) | |
_savePpsSetPnt (&$pps_array) | |
Updates index and pointers to previous, next and children PPS's for this PPS. |
Data Fields | |
$_tmp_dir | |
Data Fields inherited from OLE_PPS | |
$No | |
$Name | |
$Type | |
$PrevPps | |
$NextPps | |
$DirPps | |
$Time1st | |
$Time2nd | |
$_StartBlock | |
$Size | |
$_data | |
$children = array() |
OLE_PPS_Root::_adjust2 | ( | $i2 | ) |
Helper function for caculating a magic value for block sizes.
private
integer | $i2 | The argument |
Definition at line 190 of file Root.php.
Referenced by save().
OLE_PPS_Root::_calcSize | ( | & | $raList | ) |
Calculate some numbers.
private
array | $raList | Reference to an array of PPS's |
Definition at line 151 of file Root.php.
References OLE_DATA_SIZE_SMALL, OLE_LONG_INT_SIZE, OLE_PPS_SIZE, and OLE_PPS_TYPE_FILE.
Referenced by save().
OLE_PPS_Root::_makeSmallData | ( | & | $raList | ) |
get small data (PPS's with data smaller than OLE_DATA_SIZE_SMALL)
private
array | &$raList | Reference to array of PPS's |
Definition at line 344 of file Root.php.
References OLE_DATA_SIZE_SMALL, OLE_LONG_INT_SIZE, and OLE_PPS_TYPE_FILE.
Referenced by save().
OLE_PPS_Root::_saveBbd | ( | $iSbdSize, | |
$iBsize, | |||
$iPpsCnt | |||
) |
Saving Big Block Depot.
private
integer | $iSbdSize | |
integer | $iBsize | |
integer | $iPpsCnt |
Definition at line 432 of file Root.php.
References OLE_LONG_INT_SIZE.
Referenced by save().
OLE_PPS_Root::_saveBigData | ( | $iStBlk, | |
& | $raList | ||
) |
Saving big data (PPS's with data bigger than OLE_DATA_SIZE_SMALL)
private
integer | $iStBlk | |
array | &$raList | Reference to array of PPS's |
Definition at line 287 of file Root.php.
References OLE_DATA_SIZE_SMALL, OLE_PPS_TYPE_DIR, and OLE_PPS_TYPE_ROOT.
Referenced by save().
OLE_PPS_Root::_saveHeader | ( | $iSBDcnt, | |
$iBBcnt, | |||
$iPPScnt | |||
) |
Save OLE header.
private
integer | $iSBDcnt | |
integer | $iBBcnt | |
integer | $iPPScnt |
Definition at line 204 of file Root.php.
References OLE_LONG_INT_SIZE.
Referenced by save().
OLE_PPS_Root::_savePps | ( | & | $raList | ) |
Saves all the PPS's WKs.
private
array | $raList | Reference to an array with all PPS's |
Definition at line 407 of file Root.php.
References OLE_PPS\_getPpsWk(), and OLE_PPS_SIZE.
Referenced by save().
OLE_PPS_Root::OLE_PPS_Root | ( | $time_1st, | |
$time_2nd, | |||
$raChild | |||
) |
Constructor.
public
integer | $time_1st | A timestamp |
integer | $time_2nd | A timestamp |
Definition at line 47 of file Root.php.
References OLE\Asc2Ucs(), OLE_PPS\OLE_PPS(), and OLE_PPS_TYPE_ROOT.
OLE_PPS_Root::save | ( | $filename | ) |
Method for saving the whole OLE container (including files).
In fact, if called with an empty argument (or '-'), it saves to a temporary file and then outputs it's contents to stdout.
string | $filename | The name of the file where to save the OLE container public |
Definition at line 88 of file Root.php.
References $filename, _adjust2(), _calcSize(), _makeSmallData(), _saveBbd(), _saveBigData(), _saveHeader(), _savePps(), and OLE_PPS\_savePpsSetPnt().
OLE_PPS_Root::setTempDir | ( | $dir | ) |