|
|
@@ -4,10 +4,6 @@
|
|
|
require_once dirname(__FILE__) . '/../../common.php';
|
|
|
|
|
|
|
|
|
-$date = new Zend_Date();
|
|
|
-
|
|
|
-$date->setLocale(Demos_Zend_Service_LiveDocx_Helper::LOCALE);
|
|
|
-
|
|
|
$phpLiveDocx = new Zend_Service_LiveDocx_MailMerge();
|
|
|
|
|
|
$phpLiveDocx->setUsername(Demos_Zend_Service_LiveDocx_Helper::USERNAME)
|
|
|
@@ -18,8 +14,8 @@ $phpLiveDocx->setLocalTemplate('template.docx');
|
|
|
$phpLiveDocx->assign('software', 'Magic Graphical Compression Suite v1.9')
|
|
|
->assign('licensee', 'Henry Döner-Meyer')
|
|
|
->assign('company', 'Co-Operation')
|
|
|
- ->assign('date', $date->get(Zend_Date::DATE_LONG))
|
|
|
- ->assign('time', $date->get(Zend_Date::TIME_LONG))
|
|
|
+ ->assign('date', Zend_Date::now()->toString(Zend_Date::DATE_LONG))
|
|
|
+ ->assign('time', Zend_Date::now()->toString(Zend_Date::TIME_LONG))
|
|
|
->assign('city', 'Berlin')
|
|
|
->assign('country', 'Germany');
|
|
|
|
|
|
@@ -42,8 +38,8 @@ $fieldValues = array (
|
|
|
'software' => 'Magic Graphical Compression Suite v2.5',
|
|
|
'licensee' => 'Henry Döner-Meyer',
|
|
|
'company' => 'Megasoft Co-Operation',
|
|
|
- 'date' => $date->get(Zend_Date::DATE_LONG),
|
|
|
- 'time' => $date->get(Zend_Date::DATE_LONG),
|
|
|
+ 'date' => Zend_Date::now()->toString(Zend_Date::DATE_LONG),
|
|
|
+ 'time' => Zend_Date::now()->toString(Zend_Date::TIME_LONG),
|
|
|
'city' => 'Berlin',
|
|
|
'country' => 'Germany'
|
|
|
),
|
|
|
@@ -52,15 +48,14 @@ $fieldValues = array (
|
|
|
'software' => 'Magic CAD Suite v1.9',
|
|
|
'licensee' => 'Brüno Döner-Meyer',
|
|
|
'company' => 'Future Co-Operation',
|
|
|
- 'date' => $date->get(Zend_Date::DATE_LONG),
|
|
|
- 'time' => $date->get(Zend_Date::DATE_LONG),
|
|
|
+ 'date' => Zend_Date::now()->toString(Zend_Date::DATE_LONG),
|
|
|
+ 'time' => Zend_Date::now()->toString(Zend_Date::TIME_LONG),
|
|
|
'city' => 'Berlin',
|
|
|
'country' => 'Germany'
|
|
|
)
|
|
|
);
|
|
|
|
|
|
$phpLiveDocx->assign($fieldValues);
|
|
|
-
|
|
|
*/
|
|
|
|
|
|
$documentProperties = array (
|