1 | <?php |
||
10 | class Zookal_Mock_Model_Mocks_Mage_Payment extends Zookal_Mock_Model_Mocks_Abstract |
||
|
|||
11 | { |
||
12 | /** |
||
13 | * @var Mage_Core_Model_Store |
||
14 | */ |
||
15 | protected $_store = null; |
||
16 | |||
17 | public function __construct($helper = null, $store = null) |
||
24 | |||
25 | /** |
||
26 | * @return Mage_Core_Model_Store |
||
27 | */ |
||
28 | public function getStore() |
||
35 | |||
36 | /** |
||
37 | * @see Mage_Payment_Helper_Data |
||
38 | * Retrieve block type for display method information |
||
39 | * Only frontend layout generation checks if a block is an instance of Mage_Core_Block_Abstract |
||
40 | * therefore we need to separate. |
||
41 | * |
||
42 | * @return string |
||
43 | */ |
||
44 | public function getInfoBlockType() |
||
48 | |||
49 | /** |
||
50 | * @see Mage_Payment_Helper_Data |
||
51 | * |
||
52 | * Retreive payment method form html |
||
53 | * |
||
54 | * @return Zookal_Mock_Block_Payment_Backend |
||
55 | */ |
||
56 | public function getMethodFormBlock() |
||
60 | |||
61 | /** |
||
62 | * @see http://stackoverflow.com/questions/9693020/magento-request-frontend-or-backend thanks alan :-) |
||
63 | * @return bool |
||
64 | */ |
||
65 | protected function _isAdmin() |
||
69 | } |
||
70 |
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.