class PPS (View source)

Class for creating PPS's for OLE containers.

Properties

int $No The PPS index.
string $Name The PPS name (in Unicode).
int $Type The PPS type. Dir, Root or File.
int $PrevPps The index of the previous PPS.
int $NextPps The index of the next PPS.
int $DirPps The index of it's first child if this is a Dir or Root PPS.
int $Time1st A timestamp.
int $Time2nd A timestamp.
int $startBlock Starting block (small or big) for this PPS's data inside the container.
int $Size The size of the PPS's data (in bytes).
string $_data The PPS's data (only used if it's not using a temporary file).
array $children Array of child PPS's (only used by Root and Dir PPS's).
OLE $ole Pointer to OLE container.

Methods

__construct(int $No, string $name, int $type, int $prev, int $next, int $dir, int $time_1st, int $time_2nd, string $data, array $children)

The constructor.

int
getDataLen()

Returns the amount of data saved for this PPS.

string
_getPpsWk()

Returns a string with the PPS's WK (What is a WK?).

static int
_savePpsSetPnt(array $raList, mixed $to_save, mixed $depth = 0)

Updates index and pointers to previous, next and children PPS's for this PPS. I don't think it'll work with Dir PPS's.

Details

__construct(int $No, string $name, int $type, int $prev, int $next, int $dir, int $time_1st, int $time_2nd, string $data, array $children)

The constructor.

Parameters

int $No The PPS index
string $name The PPS name
int $type The PPS type. Dir, Root or File
int $prev The index of the previous PPS
int $next The index of the next PPS
int $dir The index of it's first child if this is a Dir or Root PPS
int $time_1st A timestamp
int $time_2nd A timestamp
string $data The (usually binary) source data of the PPS
array $children Array containing children PPS for this PPS

int getDataLen()

Returns the amount of data saved for this PPS.

Return Value

int The amount of data (in bytes)

string _getPpsWk()

Returns a string with the PPS's WK (What is a WK?).

Return Value

string The binary string

static int _savePpsSetPnt(array $raList, mixed $to_save, mixed $depth = 0)

Updates index and pointers to previous, next and children PPS's for this PPS. I don't think it'll work with Dir PPS's.

Parameters

array $raList &$raList Reference to the array of PPS's for the whole OLE container
mixed $to_save
mixed $depth

Return Value

int The index for this PPS