Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#52] fix applying document-template and other preFormat elements whe…
…n placeholders tag is missing
- Loading branch information
Showing
9 changed files
with
153 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.pdf binary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ CHANGELOG | |
|
||
* 1.2.4-DEV (???) | ||
|
||
* (nothing) | ||
* [#52] fix document-template support | ||
|
||
* 1.2.3 (2014-03-15) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
|
||
|
||
namespace PHPPdf\Core\Parser; | ||
|
||
|
||
class DocumentParsingContext | ||
{ | ||
private $inPlaceholder = false; | ||
private $inBehaviour = false; | ||
|
||
public function isInPlaceholder() | ||
{ | ||
return $this->inPlaceholder; | ||
} | ||
|
||
public function isInBehaviour() | ||
{ | ||
return $this->inBehaviour; | ||
} | ||
|
||
public function enterPlaceholder() | ||
{ | ||
$this->inPlaceholder = true; | ||
} | ||
|
||
public function exitPlaceholder() | ||
{ | ||
$this->inPlaceholder = false; | ||
} | ||
|
||
public function enterBehaviour() | ||
{ | ||
$this->inBehaviour = true; | ||
} | ||
|
||
public function exitBehaviour() | ||
{ | ||
$this->inBehaviour = false; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters