\PhpOffice\PhpSpreadsheet\Shared\OLEPPS

Class for creating PPS's for OLE containers.

Summary

Methods
Properties
Constants
__construct()
getDataLen()
getPpsWk()
savePpsSetPnt()
$No
$Name
$Type
$PrevPps
$NextPps
$DirPps
$Time1st
$Time2nd
$startBlock
$Size
$_data
$children
$ole
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$No

$No : int

The PPS index.

Type

int

$Name

$Name : string

The PPS name (in Unicode).

Type

string

$Type

$Type : int

The PPS type. Dir, Root or File.

Type

int

$PrevPps

$PrevPps : int

The index of the previous PPS.

Type

int

$NextPps

$NextPps : int

The index of the next PPS.

Type

int

$DirPps

$DirPps : int

The index of it's first child if this is a Dir or Root PPS.

Type

int

$Time1st

$Time1st : int

A timestamp.

Type

int

$Time2nd

$Time2nd : int

A timestamp.

Type

int

$startBlock

$startBlock : int

Starting block (small or big) for this PPS's data inside the container.

Type

int

$Size

$Size : int

The size of the PPS's data (in bytes).

Type

int

$_data

$_data : string

The PPS's data (only used if it's not using a temporary file).

Type

string

$children

$children : array

Array of child PPS's (only used by Root and Dir PPS's).

Type

array

$ole

$ole : \PhpOffice\PhpSpreadsheet\Shared\OLE

Pointer to OLE container.

Type

OLE

Methods

__construct()

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

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

Returns

mixed —

getDataLen()

getDataLen() : int

Returns the amount of data saved for this PPS.

Returns

int —

The amount of data (in bytes)

getPpsWk()

getPpsWk() : string

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

Returns

string —

The binary string

savePpsSetPnt()

savePpsSetPnt(array  $raList, mixed  $to_save, mixed  $depth) : int

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

Reference to the array of PPS's for the whole OLE container

mixed $to_save
mixed $depth

Returns

int —

The index for this PPS