1 | <?php |
||
17 | class Toonvd_Recentlyviewed_Block_Options extends Mage_Core_Block_Template |
||
|
|||
18 | { |
||
19 | /** |
||
20 | * @var Mage_Catalog_Model_Product |
||
21 | */ |
||
22 | protected $product; |
||
23 | |||
24 | /** |
||
25 | * Initializes product object if it exists |
||
26 | */ |
||
27 | public function __construct() |
||
36 | |||
37 | /** |
||
38 | * Gets recently viewed block title. |
||
39 | * |
||
40 | * @return mixed |
||
41 | */ |
||
42 | public function getListBlockTitle() |
||
46 | |||
47 | /** |
||
48 | * Returns scope type and current scope id. |
||
49 | * |
||
50 | * @return string |
||
51 | */ |
||
52 | public function getDesiredScopeAndId() |
||
70 | |||
71 | /** |
||
72 | * Fetches the product url for images and links. |
||
73 | * |
||
74 | * @return string |
||
75 | */ |
||
76 | public function getProductUrl() |
||
80 | |||
81 | /** |
||
82 | * Fetches the product image. |
||
83 | * |
||
84 | * @return Mage_Catalog_Helper_Image |
||
85 | */ |
||
86 | public function getProductImage() |
||
91 | |||
92 | /** |
||
93 | * Fetches the product name the core way. |
||
94 | * |
||
95 | * @return string |
||
96 | */ |
||
97 | public function getProductName() |
||
101 | |||
102 | /** |
||
103 | * Fetches the product id. |
||
104 | * |
||
105 | * @return mixed |
||
106 | */ |
||
107 | public function getProductId() |
||
111 | |||
112 | /** |
||
113 | * Fetches max recently viewed list length. |
||
114 | * |
||
115 | * @return mixed |
||
116 | */ |
||
117 | public function getMaxLength() |
||
121 | |||
122 | /** |
||
123 | * Gets configuration by path. |
||
124 | * |
||
125 | * @param $configPath |
||
126 | * @return mixed |
||
127 | */ |
||
128 | protected function getConfig($configPath) |
||
133 | } |
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.