Ejemplo n.º 1
0
<?php

// require_once dirname(__FILE__) . '/../../common.php';
system('clear');
print Demos_Zend_Service_LiveDocx_Helper::wrapLine(PHP_EOL . 'Deleting All Remotely Stored Templates' . PHP_EOL . PHP_EOL);
$mailMerge = new Zend_Service_LiveDocx_MailMerge();
$mailMerge->setUsername(DEMOS_ZEND_SERVICE_LIVEDOCX_USERNAME)->setPassword(DEMOS_ZEND_SERVICE_LIVEDOCX_PASSWORD);
$counter = 1;
foreach ($mailMerge->listTemplates() as $result) {
    printf('%d) %s', $counter, $result['filename']);
    $mailMerge->deleteTemplate($result['filename']);
    print ' - DELETED.' . PHP_EOL;
    $counter++;
}
print PHP_EOL;
unset($mailMerge);
Ejemplo n.º 2
0
<?php

require_once dirname(__FILE__) . '/../../common.php';
system('clear');
print Demos_Zend_Service_LiveDocx_Helper::wrapLine(PHP_EOL . 'Deleting All Remotely Stored Templates' . PHP_EOL . PHP_EOL);
$phpLiveDocx = new Zend_Service_LiveDocx_MailMerge();
$phpLiveDocx->setUsername(DEMOS_ZEND_SERVICE_LIVEDOCX_USERNAME)->setPassword(DEMOS_ZEND_SERVICE_LIVEDOCX_PASSWORD);
$counter = 1;
foreach ($phpLiveDocx->listTemplates() as $result) {
    printf('%d) %s', $counter, $result['filename']);
    $phpLiveDocx->deleteTemplate($result['filename']);
    print ' - DELETED.' . PHP_EOL;
    $counter++;
}
print PHP_EOL;
unset($phpLiveDocx);
Ejemplo n.º 3
0
Archivo: list.php Proyecto: netvlies/zf
<?php

// require_once dirname(__FILE__) . '/../../common.php';
system('clear');
print Demos_Zend_Service_LiveDocx_Helper::wrapLine(PHP_EOL . 'Remotely Stored Templates' . PHP_EOL . PHP_EOL . 'The following templates are currently stored on the LiveDocx server:' . PHP_EOL . PHP_EOL);
$mailMerge = new Zend_Service_LiveDocx_MailMerge();
$mailMerge->setUsername(DEMOS_ZEND_SERVICE_LIVEDOCX_USERNAME)->setPassword(DEMOS_ZEND_SERVICE_LIVEDOCX_PASSWORD);
print Demos_Zend_Service_LiveDocx_Helper::listDecorator($mailMerge->listTemplates());
unset($mailMerge);
Ejemplo n.º 4
0
<?php

require_once dirname(__FILE__) . '/../../common.php';
system('clear');
print Demos_Zend_Service_LiveDocx_Helper::wrapLine(PHP_EOL . 'Remotely Stored Templates' . PHP_EOL . PHP_EOL . 'The following templates are currently stored on the LiveDocx server:' . PHP_EOL . PHP_EOL);
$phpLiveDocx = new Zend_Service_LiveDocx_MailMerge();
$phpLiveDocx->setUsername(DEMOS_ZEND_SERVICE_LIVEDOCX_USERNAME)->setPassword(DEMOS_ZEND_SERVICE_LIVEDOCX_PASSWORD);
print Demos_Zend_Service_LiveDocx_Helper::listDecorator($phpLiveDocx->listTemplates());
unset($phpLiveDocx);