Skip to content

Commit 9be2544

Browse files
author
Roman Syroeshko
committed
Merged #498.
1 parent 8dc276a commit 9be2544

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/PhpWord/TemplateProcessor.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,33 +30,33 @@ class TemplateProcessor
3030
*
3131
* @var mixed
3232
*/
33-
private $zipClass;
33+
protected $zipClass;
3434

3535
/**
3636
* @var string Temporary document filename (with path).
3737
*/
38-
private $temporaryDocumentFilename;
38+
protected $temporaryDocumentFilename;
3939

4040
/**
4141
* Content of main document part (in XML format) of the temporary document.
4242
*
4343
* @var string
4444
*/
45-
private $temporaryDocumentMainPart;
45+
protected $temporaryDocumentMainPart;
4646

4747
/**
4848
* Content of headers (in XML format) of the temporary document.
4949
*
5050
* @var string[]
5151
*/
52-
private $temporaryDocumentHeaders = array();
52+
protected $temporaryDocumentHeaders = array();
5353

5454
/**
5555
* Content of footers (in XML format) of the temporary document.
5656
*
5757
* @var string[]
5858
*/
59-
private $temporaryDocumentFooters = array();
59+
protected $temporaryDocumentFooters = array();
6060

6161
/**
6262
* @since 0.12.0 Throws CreateTemporaryFileException and CopyFileException instead of Exception.
@@ -413,7 +413,7 @@ protected function getVariablesForPart($documentPartXML)
413413
* @param integer $index
414414
* @return string
415415
*/
416-
private function getFooterName($index)
416+
protected function getFooterName($index)
417417
{
418418
return sprintf('word/footer%d.xml', $index);
419419
}
@@ -424,7 +424,7 @@ private function getFooterName($index)
424424
* @param integer $index
425425
* @return string
426426
*/
427-
private function getHeaderName($index)
427+
protected function getHeaderName($index)
428428
{
429429
return sprintf('word/header%d.xml', $index);
430430
}
@@ -436,7 +436,7 @@ private function getHeaderName($index)
436436
* @return integer
437437
* @throws \PhpOffice\PhpWord\Exception\Exception
438438
*/
439-
private function findRowStart($offset)
439+
protected function findRowStart($offset)
440440
{
441441
$rowStart = strrpos($this->temporaryDocumentMainPart, '<w:tr ', ((strlen($this->temporaryDocumentMainPart) - $offset) * -1));
442442

@@ -456,7 +456,7 @@ private function findRowStart($offset)
456456
* @param integer $offset
457457
* @return integer
458458
*/
459-
private function findRowEnd($offset)
459+
protected function findRowEnd($offset)
460460
{
461461
return strpos($this->temporaryDocumentMainPart, '</w:tr>', $offset) + 7;
462462
}
@@ -468,7 +468,7 @@ private function findRowEnd($offset)
468468
* @param integer $endPosition
469469
* @return string
470470
*/
471-
private function getSlice($startPosition, $endPosition = 0)
471+
protected function getSlice($startPosition, $endPosition = 0)
472472
{
473473
if (!$endPosition) {
474474
$endPosition = strlen($this->temporaryDocumentMainPart);

0 commit comments

Comments
 (0)