Documentation

File extends PPS
in package

Class for creating File PPS's for OLE containers.

Tags
author

Xavier Noguer xnoguer@php.net

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.
append()  : void
Append data to PPS.
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?).
init()  : bool
Initialization method. Has to be called right after OLE_PPS_File().
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(string $name) : mixed
Parameters
$name : string

The name of the file (in Unicode)

Tags
see
OLE::ascToUcs()

append()

Append data to PPS.

public append(string $data) : void
Parameters
$data : string

The data to append

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

init()

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

public init() : bool
Return values
bool

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


        
On this page

Search results