1 | <?php |
||
10 | class Zookal_Mock_Block_Payment_Backend extends Zookal_Mock_Model_Mocks_Abstract |
||
|
|||
11 | { |
||
12 | /** |
||
13 | * @var Mage_Sales_Model_Order_Payment |
||
14 | */ |
||
15 | protected $_payment = null; |
||
16 | |||
17 | protected $_html = '<strong>Mock Payment Info:</strong>{{paymentInfo}}'; |
||
18 | |||
19 | /** |
||
20 | * @param Mage_Sales_Model_Order_Payment $payment |
||
21 | * |
||
22 | * @return $this |
||
23 | */ |
||
24 | public function setInfo(Mage_Sales_Model_Order_Payment $payment) |
||
29 | |||
30 | /** |
||
31 | * @return string |
||
32 | */ |
||
33 | public function toHtml() |
||
45 | |||
46 | /** |
||
47 | * Moving that into a phtml file could be a little bit complicated and it's only backend ;-) |
||
48 | * Use the observer to change the content. |
||
49 | * |
||
50 | * @return string |
||
51 | */ |
||
52 | protected function _getPaymentInfoTable() |
||
63 | |||
64 | /** |
||
65 | * you can translate here the column names into nicer names via the .csv files for the backend users |
||
66 | * |
||
67 | * @param string $k |
||
68 | * @param string $v |
||
69 | * |
||
70 | * @return string |
||
71 | */ |
||
72 | protected function _getPaymentInfoTableRow($k, $v) |
||
77 | |||
78 | /** |
||
79 | * @return array |
||
80 | */ |
||
81 | protected function _getPaymentDebug() |
||
92 | |||
93 | /** |
||
94 | * @param string $html |
||
95 | */ |
||
96 | public function setHtml($html) |
||
100 | |||
101 | /** |
||
102 | * @return string |
||
103 | */ |
||
104 | public function getHtml() |
||
108 | |||
109 | /** |
||
110 | * Render as PDF |
||
111 | * @return string |
||
112 | */ |
||
113 | public function toPdf() |
||
117 | } |
||
118 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.