1: <?php
2: /**
3: * Magento
4: *
5: * NOTICE OF LICENSE
6: *
7: * This source file is subject to the Open Software License (OSL 3.0)
8: * that is bundled with this package in the file LICENSE.txt.
9: * It is also available through the world-wide-web at this URL:
10: * http://opensource.org/licenses/osl-3.0.php
11: * If you did not receive a copy of the license and are unable to
12: * obtain it through the world-wide-web, please send an email
13: * to license@magentocommerce.com so we can send you a copy immediately.
14: *
15: * @category Phoenix
16: * @package Phoenix_Moneybookers
17: * @copyright Copyright (c) 2012 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
18: * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19: */
20: class Phoenix_Moneybookers_Block_Info extends Mage_Payment_Block_Info
21: {
22: /**
23: * Constructor. Set template.
24: */
25: protected function _construct()
26: {
27: parent::_construct();
28: $this->setTemplate('moneybookers/info.phtml');
29: }
30:
31: /**
32: * Returns code of payment method
33: *
34: * @return string
35: */
36: public function getMethodCode()
37: {
38: return $this->getInfo()->getMethodInstance()->getCode();
39: }
40:
41: /**
42: * Build PDF content of info block
43: *
44: * @return string
45: */
46: public function toPdf()
47: {
48: $this->setTemplate('moneybookers/pdf/info.phtml');
49: return $this->toHtml();
50: }
51: }
52: