@@ -30,33 +30,33 @@ class TemplateProcessor
30
30
*
31
31
* @var mixed
32
32
*/
33
- private $ zipClass ;
33
+ protected $ zipClass ;
34
34
35
35
/**
36
36
* @var string Temporary document filename (with path).
37
37
*/
38
- private $ temporaryDocumentFilename ;
38
+ protected $ temporaryDocumentFilename ;
39
39
40
40
/**
41
41
* Content of main document part (in XML format) of the temporary document.
42
42
*
43
43
* @var string
44
44
*/
45
- private $ temporaryDocumentMainPart ;
45
+ protected $ temporaryDocumentMainPart ;
46
46
47
47
/**
48
48
* Content of headers (in XML format) of the temporary document.
49
49
*
50
50
* @var string[]
51
51
*/
52
- private $ temporaryDocumentHeaders = array ();
52
+ protected $ temporaryDocumentHeaders = array ();
53
53
54
54
/**
55
55
* Content of footers (in XML format) of the temporary document.
56
56
*
57
57
* @var string[]
58
58
*/
59
- private $ temporaryDocumentFooters = array ();
59
+ protected $ temporaryDocumentFooters = array ();
60
60
61
61
/**
62
62
* @since 0.12.0 Throws CreateTemporaryFileException and CopyFileException instead of Exception.
@@ -413,7 +413,7 @@ protected function getVariablesForPart($documentPartXML)
413
413
* @param integer $index
414
414
* @return string
415
415
*/
416
- private function getFooterName ($ index )
416
+ protected function getFooterName ($ index )
417
417
{
418
418
return sprintf ('word/footer%d.xml ' , $ index );
419
419
}
@@ -424,7 +424,7 @@ private function getFooterName($index)
424
424
* @param integer $index
425
425
* @return string
426
426
*/
427
- private function getHeaderName ($ index )
427
+ protected function getHeaderName ($ index )
428
428
{
429
429
return sprintf ('word/header%d.xml ' , $ index );
430
430
}
@@ -436,7 +436,7 @@ private function getHeaderName($index)
436
436
* @return integer
437
437
* @throws \PhpOffice\PhpWord\Exception\Exception
438
438
*/
439
- private function findRowStart ($ offset )
439
+ protected function findRowStart ($ offset )
440
440
{
441
441
$ rowStart = strrpos ($ this ->temporaryDocumentMainPart , '<w:tr ' , ((strlen ($ this ->temporaryDocumentMainPart ) - $ offset ) * -1 ));
442
442
@@ -456,7 +456,7 @@ private function findRowStart($offset)
456
456
* @param integer $offset
457
457
* @return integer
458
458
*/
459
- private function findRowEnd ($ offset )
459
+ protected function findRowEnd ($ offset )
460
460
{
461
461
return strpos ($ this ->temporaryDocumentMainPart , '</w:tr> ' , $ offset ) + 7 ;
462
462
}
@@ -468,7 +468,7 @@ private function findRowEnd($offset)
468
468
* @param integer $endPosition
469
469
* @return string
470
470
*/
471
- private function getSlice ($ startPosition , $ endPosition = 0 )
471
+ protected function getSlice ($ startPosition , $ endPosition = 0 )
472
472
{
473
473
if (!$ endPosition ) {
474
474
$ endPosition = strlen ($ this ->temporaryDocumentMainPart );
0 commit comments