PPS
in package
Class for creating PPS's for OLE containers.
Tags
Table of Contents
Constants
- ALL_ONE_BITS = (PHP_INT_SIZE > 4) ? 0xffffffff : -1
Properties
- $_data : string
- The PPS's data (only used if it's not using a temporary file).
- $children : array<string|int, mixed>
- Array of child PPS's (only used by Root and Dir PPS's).
- $DirPps : int
- The index of it's first child if this is a Dir or Root PPS.
- $Name : string
- The PPS name (in Unicode).
- $NextPps : int
- The index of the next PPS.
- $No : int
- The PPS index.
- $ole : OLE
- Pointer to OLE container.
- $PrevPps : int
- The index of the previous PPS.
- $Size : int
- The size of the PPS's data (in bytes).
- $startBlock : int|null
- Starting block (small or big) for this PPS's data inside the container.
- $Time1st : float|int
- A timestamp.
- $Time2nd : float|int
- A timestamp.
- $Type : int
- The PPS type. Dir, Root or File.
Methods
- __construct() : mixed
- The constructor.
- getDataLen() : int
- Returns the amount of data saved for this PPS.
- getPpsWk() : string
- Returns a string with the PPS's WK (What is a WK?).
- savePpsSetPnt() : 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.
Constants
ALL_ONE_BITS
private
mixed
ALL_ONE_BITS
= (PHP_INT_SIZE > 4) ? 0xffffffff : -1
Properties
$_data
The PPS's data (only used if it's not using a temporary file).
public
string
$_data
= ''
$children
Array of child PPS's (only used by Root and Dir PPS's).
public
array<string|int, mixed>
$children
= []
$DirPps
The index of it's first child if this is a Dir or Root PPS.
public
int
$DirPps
$Name
The PPS name (in Unicode).
public
string
$Name
$NextPps
The index of the next PPS.
public
int
$NextPps
$No
The PPS index.
public
int
$No
$ole
Pointer to OLE container.
public
OLE
$ole
$PrevPps
The index of the previous PPS.
public
int
$PrevPps
$Size
The size of the PPS's data (in bytes).
public
int
$Size
$startBlock
Starting block (small or big) for this PPS's data inside the container.
public
int|null
$startBlock
= null
$Time1st
A timestamp.
public
float|int
$Time1st
$Time2nd
A timestamp.
public
float|int
$Time2nd
$Type
The PPS type. Dir, Root or File.
public
int
$Type
Methods
__construct()
The constructor.
public
__construct(int|null $No, string|null $name, int|null $type, int|null $prev, int|null $next, int|null $dir, null|float|int $time_1st, null|float|int $time_2nd, string|null $data, array<string|int, mixed> $children) : mixed
Parameters
- $No : int|null
-
The PPS index
- $name : string|null
-
The PPS name
- $type : int|null
-
The PPS type. Dir, Root or File
- $prev : int|null
-
The index of the previous PPS
- $next : int|null
-
The index of the next PPS
- $dir : int|null
-
The index of it's first child if this is a Dir or Root PPS
- $time_1st : null|float|int
-
A timestamp
- $time_2nd : null|float|int
-
A timestamp
- $data : string|null
-
The (usually binary) source data of the PPS
- $children : array<string|int, mixed>
-
Array containing children PPS for this PPS
getDataLen()
Returns the amount of data saved for this PPS.
public
getDataLen() : int
Return values
int —The amount of data (in bytes)
getPpsWk()
Returns a string with the PPS's WK (What is a WK?).
public
getPpsWk() : string
Return values
string —The binary string
savePpsSetPnt()
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.
public
static savePpsSetPnt(array<string|int, mixed> &$raList, mixed $to_save[, int $depth = 0 ]) : int
Parameters
- $raList : array<string|int, mixed>
-
Reference to the array of PPS's for the whole OLE container
- $to_save : mixed
- $depth : int = 0
Return values
int —The index for this PPS