-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathIsotopeMailInsertTags.php
51 lines (46 loc) · 1.99 KB
/
IsotopeMailInsertTags.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php if (!defined('TL_ROOT')) die('You can not access this file directly!');
/**
* PHP version 5
* @copyright Copyright (C) 2013 Kirsten Roschanski
* @author Kirsten Roschanski <[email protected]>
* @license http://opensource.org/licenses/lgpl-3.0.html
* @package IsotopeInvoice
* @filesource https://github.com/katgirl/isotope_invoice
*/
/**
* Class IsotopeMailInsertTags
*
* @author Kirsten Roschanski <[email protected]>
* @package IsotopeInvoice
* @filesource https://github.com/katgirl/isotope_invoice
*/
class IsotopeMailInsertTags extends IsotopeOrder
{
/**
* Initialize the object
*/
public function __construct()
{
parent::__construct();
$this->import('Isotope');
}
/**
* Push new Insert Tags into Maildataarray
*/
public function getOrderEmailData(IsotopeOrder $objOrder, $arrData)
{
$arrData['note'] = $objOrder->notes;
$arrData['note_text'] = strip_tags($objOrder->notes);
$arrData['config_bank_name'] = strip_tags($this->Isotope->Config->bank_name);
$arrData['config_bank_id'] = strip_tags($this->Isotope->Config->bank_id);
$arrData['config_account_number'] = strip_tags($this->Isotope->Config->account_number);
$arrData['config_iban'] = strip_tags($this->Isotope->Config->iban);
$arrData['config_bic'] = strip_tags($this->Isotope->Config->bic);
$arrData['config_tax_number'] = strip_tags($this->Isotope->Config->tax_number);
$arrData['config_register'] = strip_tags($this->Isotope->Config->register);
$arrData['config_managing_directors'] = strip_tags($this->Isotope->Config->managing_directors);
$arrData['date_paid'] = $this->parseDate($GLOBALS['TL_CONFIG']['dateFormat'], $objOrder->date_paid);
$arrData['date_shipped'] = $this->parseDate($GLOBALS['TL_CONFIG']['dateFormat'], $objOrder->date_shipped);
return $arrData;
}
}