\PhpOffice\PhpWord\ReaderODText

Reader for ODText

Summary

Methods
Properties
Constants
isReadDataOnly()
setReadDataOnly()
canRead()
getReadDataOnly()
load()
No public properties found
No constants found
openFile()
$readDataOnly
$fileHandle
N/A
readPart()
readRelationships()
No private properties found
N/A

Properties

$readDataOnly

$readDataOnly : boolean

Read data only?

Type

boolean

$fileHandle

$fileHandle : boolean|resource

File pointer

Type

boolean|resource

Methods

isReadDataOnly()

isReadDataOnly() : boolean

Read data only?

Returns

boolean

setReadDataOnly()

setReadDataOnly(boolean  $value = true) : self

Set read data only

Parameters

boolean $value

Returns

self

canRead()

canRead(string  $filename) : boolean

Can the current ReaderInterface read the file?

Parameters

string $filename

Returns

boolean

getReadDataOnly()

getReadDataOnly() 

Read data only?

load()

load(string  $docFile) : \PhpOffice\PhpWord\PhpWord

Loads PhpWord from file

Parameters

string $docFile

Returns

\PhpOffice\PhpWord\PhpWord

openFile()

openFile(string  $filename) : resource

Open file for reading

Parameters

string $filename

Throws

\PhpOffice\PhpWord\Exception\Exception

Returns

resource

readPart()

readPart(\PhpOffice\PhpWord\PhpWord  $phpWord, array  $relationships, string  $partName, string  $docFile, string  $xmlFile) 

Read document part.

Parameters

\PhpOffice\PhpWord\PhpWord $phpWord
array $relationships
string $partName
string $docFile
string $xmlFile

readRelationships()

readRelationships(string  $docFile) : array

Read all relationship files

Parameters

string $docFile

Returns

array