@@ -442,10 +442,10 @@ protected function getHeaderName($index)
442
442
*/
443
443
protected function findRowStart ($ offset )
444
444
{
445
- $ rowStart = strrpos ($ this ->temporaryDocumentMainPart , '<w:tr ' , ((strlen ($ this ->temporaryDocumentMainPart ) - $ offset ) * -1 ));
445
+ $ rowStart = strrpos ($ this ->tempDocumentMainPart , '<w:tr ' , ((strlen ($ this ->tempDocumentMainPart ) - $ offset ) * -1 ));
446
446
447
447
if (!$ rowStart ) {
448
- $ rowStart = strrpos ($ this ->temporaryDocumentMainPart , '<w:tr> ' , ((strlen ($ this ->temporaryDocumentMainPart ) - $ offset ) * -1 ));
448
+ $ rowStart = strrpos ($ this ->tempDocumentMainPart , '<w:tr> ' , ((strlen ($ this ->tempDocumentMainPart ) - $ offset ) * -1 ));
449
449
}
450
450
if (!$ rowStart ) {
451
451
throw new Exception ('Can not find the start position of the row to clone. ' );
@@ -462,7 +462,7 @@ protected function findRowStart($offset)
462
462
*/
463
463
protected function findRowEnd ($ offset )
464
464
{
465
- return strpos ($ this ->temporaryDocumentMainPart , '</w:tr> ' , $ offset ) + 7 ;
465
+ return strpos ($ this ->tempDocumentMainPart , '</w:tr> ' , $ offset ) + 7 ;
466
466
}
467
467
468
468
/**
@@ -475,9 +475,9 @@ protected function findRowEnd($offset)
475
475
protected function getSlice ($ startPosition , $ endPosition = 0 )
476
476
{
477
477
if (!$ endPosition ) {
478
- $ endPosition = strlen ($ this ->temporaryDocumentMainPart );
478
+ $ endPosition = strlen ($ this ->tempDocumentMainPart );
479
479
}
480
480
481
- return substr ($ this ->temporaryDocumentMainPart , $ startPosition , ($ endPosition - $ startPosition ));
481
+ return substr ($ this ->tempDocumentMainPart , $ startPosition , ($ endPosition - $ startPosition ));
482
482
}
483
483
}
0 commit comments