forked from zendframework/zendframework
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of git://git.zendframework.com/zf into ZF2-13
- Loading branch information
Showing
3,410 changed files
with
118,101 additions
and
113,344 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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 |
---|---|---|
@@ -1,2 +1,4 @@ | ||
nbproject | ||
|
||
.buildpath | ||
.project | ||
.settings/ |
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 |
---|---|---|
|
@@ -14,7 +14,7 @@ read/subscribe to the following resources: | |
http://framework.zend.com/wiki/display/ZFDEV/Contributing+to+Zend+Framework | ||
|
||
* ZF Contributor's mailing list: | ||
Archives: http://short.ie/tc64rv | ||
Archives: http://zend-framework-community.634137.n4.nabble.com/ZF-Contributor-f680267.html | ||
Subscribe: [email protected] | ||
|
||
* ZF Contributor's IRC channel: | ||
|
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
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
13 changes: 13 additions & 0 deletions
13
demos/Zend/Service/LiveDocx/MailMerge/subtemplates/common.php
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,13 @@ | ||
<?php | ||
|
||
require_once dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'Bootstrap.php'; | ||
|
||
|
||
$templateFilename = 'maintemplate.docx'; | ||
$subTemplate1Filename = 'subtemplate1.docx'; | ||
$subTemplate2Filename = 'subtemplate2.docx'; | ||
|
||
$templateFilesnames = array(); | ||
$templateFilesnames[] = $templateFilename; | ||
$templateFilesnames[] = $subTemplate1Filename; | ||
$templateFilesnames[] = $subTemplate2Filename; |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 52 additions & 0 deletions
52
demos/Zend/Service/LiveDocx/MailMerge/subtemplates/set-ignore-sub-templates.php
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,52 @@ | ||
<?php | ||
|
||
require_once __DIR__ . '/common.php'; | ||
|
||
|
||
use Zend\Service\LiveDocx\MailMerge; | ||
|
||
// ----------------------------------------------------------------------------- | ||
|
||
$mailMerge = new MailMerge(); | ||
|
||
$mailMerge->setUsername(DEMOS_ZEND_SERVICE_LIVEDOCX_USERNAME) | ||
->setPassword(DEMOS_ZEND_SERVICE_LIVEDOCX_PASSWORD); | ||
|
||
// ----------------------------------------------------------------------------- | ||
|
||
foreach ($templateFilesnames as $_templateFilesname) { | ||
|
||
if ($mailMerge->templateExists($_templateFilesname)) { | ||
$mailMerge->deleteTemplate($_templateFilesname); | ||
} | ||
|
||
$mailMerge->uploadTemplate($_templateFilesname); | ||
} | ||
|
||
// ----------------------------------------------------------------------------- | ||
|
||
$mailMerge->setIgnoreSubTemplates(true); // <-- Does NOT include any sub-templates. | ||
|
||
$mailMerge->setRemoteTemplate($templateFilename); | ||
|
||
$mailMerge->createDocument(); | ||
|
||
$document = $mailMerge->retrieveDocument('pdf'); | ||
|
||
file_put_contents('document1.pdf', $document); | ||
|
||
// ----------------------------------------------------------------------------- | ||
|
||
$mailMerge->setIgnoreSubTemplates(false); // <-- Includes all sub-templates. | ||
// Default, when setIgnoreSubTemplates is not called. | ||
$mailMerge->setRemoteTemplate($templateFilename); | ||
|
||
$mailMerge->createDocument(); | ||
|
||
$document = $mailMerge->retrieveDocument('pdf'); | ||
|
||
file_put_contents('document2.pdf', $document); | ||
|
||
// ----------------------------------------------------------------------------- | ||
|
||
unset($mailMerge); |
65 changes: 65 additions & 0 deletions
65
demos/Zend/Service/LiveDocx/MailMerge/subtemplates/set-sub-template-ignore-list.php
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,65 @@ | ||
<?php | ||
|
||
require_once __DIR__ . '/common.php'; | ||
|
||
|
||
use Zend\Service\LiveDocx\MailMerge; | ||
|
||
// ----------------------------------------------------------------------------- | ||
|
||
$mailMerge = new MailMerge(); | ||
|
||
$mailMerge->setWsdl(DEMOS_ZEND_SERVICE_LIVEDOCX_PREMIUM_WSDL) | ||
->setUsername(DEMOS_ZEND_SERVICE_LIVEDOCX_PREMIUM_USERNAME) | ||
->setPassword(DEMOS_ZEND_SERVICE_LIVEDOCX_PREMIUM_PASSWORD); | ||
|
||
// ----------------------------------------------------------------------------- | ||
|
||
foreach ($templateFilesnames as $_templateFilesname) { | ||
|
||
if ($mailMerge->templateExists($_templateFilesname)) { | ||
$mailMerge->deleteTemplate($_templateFilesname); | ||
} | ||
|
||
$mailMerge->uploadTemplate($_templateFilesname); | ||
} | ||
|
||
// ----------------------------------------------------------------------------- | ||
|
||
$mailMerge->setSubTemplateIgnoreList(array($subTemplate1Filename, $subTemplate2Filename)); | ||
|
||
$mailMerge->setRemoteTemplate($templateFilename); | ||
|
||
$mailMerge->createDocument(); | ||
|
||
$document = $mailMerge->retrieveDocument('pdf'); | ||
|
||
file_put_contents('document1.pdf', $document); | ||
|
||
// ----------------------------------------------------------------------------- | ||
|
||
$mailMerge->setSubTemplateIgnoreList(array($subTemplate1Filename)); | ||
|
||
$mailMerge->setRemoteTemplate($templateFilename); | ||
|
||
$mailMerge->createDocument(); | ||
|
||
$document = $mailMerge->retrieveDocument('pdf'); | ||
|
||
file_put_contents('document2.pdf', $document); | ||
|
||
// ----------------------------------------------------------------------------- | ||
|
||
$mailMerge->setSubTemplateIgnoreList(array($subTemplate2Filename)); | ||
|
||
$mailMerge->setRemoteTemplate($templateFilename); | ||
|
||
$mailMerge->createDocument(); | ||
|
||
$document = $mailMerge->retrieveDocument('pdf'); | ||
|
||
file_put_contents('document3.pdf', $document); | ||
|
||
// ----------------------------------------------------------------------------- | ||
|
||
unset($mailMerge); |
Binary file not shown.
Binary file not shown.
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
Oops, something went wrong.