allow override of module

set private methods to protected so we can take advantage of the new module overriding function from module.php
This commit is contained in:
Wayann
2015-02-27 15:48:20 +01:00
parent 024dc6d5c6
commit f651acbb77
+6 -6
View File
@@ -373,7 +373,7 @@ class Blocktopmenu extends Module
} }
} }
private function makeMenuOption() protected function makeMenuOption()
{ {
$id_shop = (int)Shop::getContextShopID(); $id_shop = (int)Shop::getContextShopID();
@@ -461,7 +461,7 @@ class Blocktopmenu extends Module
return $html.'</select>'; return $html.'</select>';
} }
private function makeMenu() protected function makeMenu()
{ {
$menu_items = $this->getMenuItems(); $menu_items = $this->getMenuItems();
$id_lang = (int)$this->context->language->id; $id_lang = (int)$this->context->language->id;
@@ -574,7 +574,7 @@ class Blocktopmenu extends Module
} }
} }
private function generateCategoriesOption($categories, $items_to_skip = null) protected function generateCategoriesOption($categories, $items_to_skip = null)
{ {
$html = ''; $html = '';
@@ -594,7 +594,7 @@ class Blocktopmenu extends Module
return $html; return $html;
} }
private function generateCategoriesMenu($categories, $is_children = 0) protected function generateCategoriesMenu($categories, $is_children = 0)
{ {
$html = ''; $html = '';
@@ -644,7 +644,7 @@ class Blocktopmenu extends Module
return $html; return $html;
} }
private function getCMSMenuItems($parent, $depth = 1, $id_lang = false) protected function getCMSMenuItems($parent, $depth = 1, $id_lang = false)
{ {
$id_lang = $id_lang ? (int)$id_lang : (int)Context::getContext()->language->id; $id_lang = $id_lang ? (int)$id_lang : (int)Context::getContext()->language->id;
@@ -683,7 +683,7 @@ class Blocktopmenu extends Module
} }
} }
private function getCMSOptions($parent = 0, $depth = 1, $id_lang = false, $items_to_skip = null) protected function getCMSOptions($parent = 0, $depth = 1, $id_lang = false, $items_to_skip = null)
{ {
$html = ''; $html = '';
$id_lang = $id_lang ? (int)$id_lang : (int)Context::getContext()->language->id; $id_lang = $id_lang ? (int)$id_lang : (int)Context::getContext()->language->id;