Skip to content

Commit

Permalink
Merge branch 'master' of git://git.zendframework.com/zf into ZF2-13
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-mabe committed Jul 22, 2011
2 parents 54380b8 + 3c971e8 commit b9441a2
Show file tree
Hide file tree
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.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
nbproject

.buildpath
.project
.settings/
2 changes: 1 addition & 1 deletion README-DEV.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion README-GIT.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ github or other public site, or setup/use your own repository.
Option 2: Personal Repository
-----------------------------

We assume you will use gitosis (http://short.e/m6t2pn) or gitolite
We assume you will use gitosis (http://progit.org/book/ch4-7.html) or gitolite
(http://progit.org/book/ch4-8.html) to host your own repository. If
you go this route, we will assume you have the knowledge to do so, or
know where to obtain it. We will not assist you in setting up such a
Expand Down
14 changes: 5 additions & 9 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,19 @@ Welcome to the Zend Framework 2.0.0 Release!

RELEASE INFORMATION
---------------
Zend Framework 2.0.0dev2
Zend Framework 2.0.0dev3

THIS RELEASE IS A DEVELOPMENT RELEASE AND NOT INTENDED FOR PRODUCTION USE.
PLEASE USE AT YOUR OWN RISK.

NEW FEATURES
------------

This release concludes two different milestones:
This release contains the following:

- Autoloading and Plugin Loading:
http://framework.zend.com/wiki/display/ZFDEV2/Zend+Framework+2.0+Milestones#ZendFramework2.0Milestones-Milestone%3AAutoloading%26PluginLoading
- Exceptions
http://framework.zend.com/wiki/display/ZFDEV2/Zend+Framework+2.0+Milestones#ZendFramework2.0Milestones-Milestone%3AExceptions

Several components are still in progress, or were skipped due to planned
rewrites later.
- EventManager component (Zend\EventManager)
- Initial prototype/development of a comprehensive Dependency Injection
component (Zend\Di)

SYSTEM REQUIREMENTS
-------------------
Expand Down
1 change: 1 addition & 0 deletions bin/zf.php
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,7 @@ protected function _runTool()
$configOptions['classesToLoad'] = 'Zend\Tool\Project\Provider\Manifest';

$autoloader = new Zend\Loader\StandardAutoloader();
$autoloader->setFallbackAutoloader(true);
$autoloader->register();

$console = new Zend\Tool\Framework\Client\Console\Console($configOptions);
Expand Down
3 changes: 2 additions & 1 deletion bin/zfals.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
}

// Setup autoloading
$loader = new Zend\Loader\StandardAutoloader();
require_once 'Zend/Loader/StandardAutoloader.php';

$loader = new Zend\Loader\StandardAutoloader();
$loader->register();

$rules = array(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

$mailMerge = new MailMerge();

$mailMerge->setWSDL(DEMOS_ZEND_SERVICE_LIVEDOCX_PREMIUM_WSDL)
$mailMerge->setWsdl(DEMOS_ZEND_SERVICE_LIVEDOCX_PREMIUM_WSDL)
->setUsername(DEMOS_ZEND_SERVICE_LIVEDOCX_PREMIUM_USERNAME)
->setPassword(DEMOS_ZEND_SERVICE_LIVEDOCX_PREMIUM_PASSWORD);

Expand All @@ -27,7 +27,7 @@
PHP_EOL,
$mailMerge->getPassword(),
PHP_EOL,
$mailMerge->getWSDL(),
$mailMerge->getWsdl(),
PHP_EOL,
PHP_EOL
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
PHP_EOL,
$mailMerge->getPassword(),
PHP_EOL,
$mailMerge->getWSDL(),
$mailMerge->getWsdl(),
PHP_EOL,
PHP_EOL
);
Expand Down
4 changes: 2 additions & 2 deletions demos/Zend/Service/LiveDocx/MailMerge/constructors/public.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
PHP_EOL,
$mailMerge->getPassword(),
PHP_EOL,
$mailMerge->getWSDL(),
$mailMerge->getWsdl(),
PHP_EOL,
PHP_EOL
);
Expand All @@ -51,7 +51,7 @@
PHP_EOL,
$mailMerge->getPassword(),
PHP_EOL,
$mailMerge->getWSDL(),
$mailMerge->getWsdl(),
PHP_EOL,
PHP_EOL
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
$mailMerge = new MailMerge();

// Set WSDL of your *premium* service server
$mailMerge->setWSDL(DEMOS_ZEND_SERVICE_LIVEDOCX_PREMIUM_WSDL);
$mailMerge->setWsdl(DEMOS_ZEND_SERVICE_LIVEDOCX_PREMIUM_WSDL);

// Set username and password of your *premium* service server
$mailMerge->setUsername(DEMOS_ZEND_SERVICE_LIVEDOCX_PREMIUM_USERNAME)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
$mailMerge = new MailMerge();

// Set WSDL of your *premium* service server
$mailMerge->setWSDL(DEMOS_ZEND_SERVICE_LIVEDOCX_PREMIUM_WSDL);
$mailMerge->setWsdl(DEMOS_ZEND_SERVICE_LIVEDOCX_PREMIUM_WSDL);

// Set username and password of your *premium* service server
$mailMerge->setUsername(DEMOS_ZEND_SERVICE_LIVEDOCX_PREMIUM_USERNAME)
Expand Down
13 changes: 13 additions & 0 deletions demos/Zend/Service/LiveDocx/MailMerge/subtemplates/common.php
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.
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);
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.
4 changes: 2 additions & 2 deletions demos/Zend/Service/LiveDocx/check-environment.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@
$mailMerge = new MailMerge();
$mailMerge->setUsername(DEMOS_ZEND_SERVICE_LIVEDOCX_USERNAME)
->setPassword(DEMOS_ZEND_SERVICE_LIVEDOCX_PASSWORD)
->logIn();
->listTemplates();
$duration = microtime(true) - $microtime;
unset($mailMerge);
} catch (Exception $e) {
Expand Down Expand Up @@ -319,7 +319,7 @@
$mailMerge->setWsdl(DEMOS_ZEND_SERVICE_LIVEDOCX_PREMIUM_WSDL)
->setUsername(DEMOS_ZEND_SERVICE_LIVEDOCX_PREMIUM_USERNAME)
->setPassword(DEMOS_ZEND_SERVICE_LIVEDOCX_PREMIUM_PASSWORD)
->logIn();
->listTemplates();
$duration = microtime(true) - $microtime;
unset($mailMerge);
} catch (Exception $e) {
Expand Down
Loading

0 comments on commit b9441a2

Please sign in to comment.