Documentation

IOFactory

Table of Contents

createReader()  : ReaderInterface
Create new reader
createWriter()  : WriterInterface
Create new writer
load()  : PhpWord
Loads PhpWord from file
createObject()  : WriterInterface|ReaderInterface
Create new object
isConcreteClass()  : bool
Check if it's a concrete class (not abstract nor interface)

Methods

load()

Loads PhpWord from file

public static load(string $filename[, string $readerName = 'Word2007' ]) : PhpWord
Parameters
$filename : string

The name of the file

$readerName : string = 'Word2007'
Return values
PhpWord

$phpWord

isConcreteClass()

Check if it's a concrete class (not abstract nor interface)

private static isConcreteClass(string $class) : bool
Parameters
$class : string
Return values
bool

Search results