1 | <?php |
||
16 | class Zookal_Mock_Block_Payment_Frontend extends Mage_Core_Block_Abstract |
||
|
|||
17 | { |
||
18 | /** |
||
19 | * @var Mage_Sales_Model_Order_Payment |
||
20 | */ |
||
21 | protected $_payment = null; |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $_html = '{{method}}'; |
||
27 | |||
28 | /** |
||
29 | * Please use event core_block_abstract_to_html_before |
||
30 | * |
||
31 | * @return string |
||
32 | */ |
||
33 | protected function _toHtml() |
||
41 | |||
42 | /** |
||
43 | * @param Mage_Sales_Model_Order_Payment $payment |
||
44 | * |
||
45 | * @return $this |
||
46 | */ |
||
47 | public function setInfo(Mage_Sales_Model_Order_Payment $payment) |
||
52 | |||
53 | /** |
||
54 | * @return Mage_Sales_Model_Order_Payment |
||
55 | */ |
||
56 | public function getInfo() |
||
60 | |||
61 | /** |
||
62 | * @param string $html |
||
63 | */ |
||
64 | public function setHtml($html) |
||
68 | |||
69 | /** |
||
70 | * @return string |
||
71 | */ |
||
72 | public function getHtml() |
||
76 | } |
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.