class File extends PPS (View source)

Class for creating File PPS's for OLE containers.

Properties

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

Methods

__construct(string $name)

The constructor.

int
getDataLen()

Returns the amount of data saved for this PPS.

from PPS
string
_getPpsWk()

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

from PPS
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.

from PPS
mixed
init()

Initialization method. Has to be called right after OLE_PPS_File().

append(string $data)

Append data to PPS.

Details

__construct(string $name)

The constructor.

Parameters

string $name The PPS name

See also

OLE::ascToUcs

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

mixed init()

Initialization method. Has to be called right after OLE_PPS_File().

Return Value

mixed true on success

append(string $data)

Append data to PPS.

Parameters

string $data The data to append