@@ -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.
@@ -410,7 +410,7 @@ protected function getVariablesForPart($documentPartXML)
410
410
* @param integer $index
411
411
* @return string
412
412
*/
413
- private function getFooterName ($ index )
413
+ protected function getFooterName ($ index )
414
414
{
415
415
return sprintf ('word/footer%d.xml ' , $ index );
416
416
}
@@ -421,7 +421,7 @@ private function getFooterName($index)
421
421
* @param integer $index
422
422
* @return string
423
423
*/
424
- private function getHeaderName ($ index )
424
+ protected function getHeaderName ($ index )
425
425
{
426
426
return sprintf ('word/header%d.xml ' , $ index );
427
427
}
@@ -433,7 +433,7 @@ private function getHeaderName($index)
433
433
* @return integer
434
434
* @throws \PhpOffice\PhpWord\Exception\Exception
435
435
*/
436
- private function findRowStart ($ offset )
436
+ protected function findRowStart ($ offset )
437
437
{
438
438
$ rowStart = strrpos ($ this ->temporaryDocumentMainPart , '<w:tr ' , ((strlen ($ this ->temporaryDocumentMainPart ) - $ offset ) * -1 ));
439
439
@@ -453,7 +453,7 @@ private function findRowStart($offset)
453
453
* @param integer $offset
454
454
* @return integer
455
455
*/
456
- private function findRowEnd ($ offset )
456
+ protected function findRowEnd ($ offset )
457
457
{
458
458
return strpos ($ this ->temporaryDocumentMainPart , '</w:tr> ' , $ offset ) + 7 ;
459
459
}
@@ -465,7 +465,7 @@ private function findRowEnd($offset)
465
465
* @param integer $endPosition
466
466
* @return string
467
467
*/
468
- private function getSlice ($ startPosition , $ endPosition = 0 )
468
+ protected function getSlice ($ startPosition , $ endPosition = 0 )
469
469
{
470
470
if (!$ endPosition ) {
471
471
$ endPosition = strlen ($ this ->temporaryDocumentMainPart );
0 commit comments