$phpWord
$phpWord : \PhpOffice\PhpWord\PhpWord
PHPWord object
ODText 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 ODText writer
| \PhpOffice\PhpWord\PhpWord | $phpWord |
| 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 |