$phpWord
$phpWord : \PhpOffice\PhpWord\PhpWord
PHPWord object
Word2007 writer
$phpWord : \PhpOffice\PhpWord\PhpWord
PHPWord object
getPhpWord() : \PhpOffice\PhpWord\PhpWord
Get PhpWord object
setPhpWord(\PhpOffice\PhpWord\PhpWord $phpWord = null) : self
Set PhpWord object
| \PhpOffice\PhpWord\PhpWord | $phpWord |
__construct(\PhpOffice\PhpWord\PhpWord $phpWord = null)
Create new Word2007 writer
| \PhpOffice\PhpWord\PhpWord | $phpWord |
| None found |
| None found |
| None found |
| None found |
getTempFile(string $filename) : string
Get temporary file name
If $filename is php://output or php://stdout, make it a temporary file
| string | $filename |
| None found |
cleanupTempFile()
Cleanup temporary file.
| None found |
| None found |
getZipArchive(string $filename) : \PhpOffice\PhpWord\Shared\ZipArchive
Get ZipArchive object
| string | $filename |
| None found |
openFile(string $filename) : resource
Open file for writing
| string | $filename |
| since | 0.11.0 |
|---|
writeFile(resource $fileHandle, string $content)
Write content to file.
| resource | $fileHandle | |
| string | $content |
| since | 0.11.0 |
|---|
addFilesToPackage(\PhpOffice\PhpWord\Shared\ZipArchive $zip, mixed $elements)
Add files to package.
| \PhpOffice\PhpWord\Shared\ZipArchive | $zip | |
| mixed | $elements |
| None found |
addFileToPackage(\PhpOffice\PhpWord\Shared\ZipArchive $zipPackage, string $source, string $target)
Add file to package.
Get the actual source from an archive image.
| \PhpOffice\PhpWord\Shared\ZipArchive | $zipPackage | |
| string | $source | |
| string | $target |
| None found |
| None found |
addHeaderFooterMedia(\PhpOffice\PhpWord\Shared\ZipArchive $zip, string $docPart)
Add header/footer media files, e.g. footer1.xml.rels.
| \PhpOffice\PhpWord\Shared\ZipArchive | $zip | |
| string | $docPart |
| None found |
addHeaderFooterContent(\PhpOffice\PhpWord\Element\Section $section, \PhpOffice\PhpWord\Shared\ZipArchive $zip, string $elmType, $rId)
Add header/footer content.
| \PhpOffice\PhpWord\Element\Section | $section | |
| \PhpOffice\PhpWord\Shared\ZipArchive | $zip | |
| string | $elmType | header|footer |
| $rId |
| None found |
addNotes(\PhpOffice\PhpWord\Shared\ZipArchive $zip, $rId, string $noteType = 'footnote')
Add footnotes/endnotes
| \PhpOffice\PhpWord\Shared\ZipArchive | $zip | |
| $rId | ||
| string | $noteType |
| None found |
addComments(\PhpOffice\PhpWord\Shared\ZipArchive $zip, $rId)
Add comments
| \PhpOffice\PhpWord\Shared\ZipArchive | $zip | |
| $rId |
| None found |
addChart(\PhpOffice\PhpWord\Shared\ZipArchive $zip, $rId)
Add chart.
| \PhpOffice\PhpWord\Shared\ZipArchive | $zip | |
| $rId |
| None found |
registerContentTypes(array $media)
Register content types for each media.
| array | $media |
| None found |