$phpWord
$phpWord : \PhpOffice\PhpWord\PhpWord
PHPWord object
HTML writer
Not supported: PreserveText, PageBreak, Object
$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 instance
\PhpOffice\PhpWord\PhpWord | $phpWord |
None found |
save(string $filename = null)
Save PhpWord to file.
string | $filename |
None found |
since | 0.11.0 |
---|
None found |
None found |
addNote(integer $noteId, string $noteMark)
Add note.
integer | $noteId | |
string | $noteMark |
None found |
codeCoverageIgnore |
---|
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 |