[*] BO : #PSFV-481 - Refactor HelperList position management

This commit is contained in:
tDidierjean
2012-03-13 16:22:23 +00:00
parent ed21db27b6
commit b2e056ec8b
13 changed files with 39 additions and 47 deletions
@@ -28,6 +28,7 @@
class AdminAttributesGroupsControllerCore extends AdminController
{
protected $id_attribute;
protected $position_identifier = 'id_attribute_group';
public function __construct()
{
@@ -157,6 +158,7 @@ class AdminAttributesGroupsControllerCore extends AdminController
$helper->simple_header = true;
$helper->show_toolbar = false;
$helper->bulk_actions = $this->bulk_actions;
$helper->position_identifier = 'id_attribute';
$content = $helper->generateList($this->_list, $this->fieldsDisplay);
die (Tools::jsonEncode(array('use_parent_structure' => false, 'data' => $content)));
@@ -27,6 +27,8 @@
class AdminCarriersControllerCore extends AdminController
{
protected $position_identifier = 'id_carrier';
public function __construct()
{
$this->table = 'carrier';
@@ -31,6 +31,7 @@ class AdminCategoriesControllerCore extends AdminController
* @var object Category() instance for navigation
*/
private $_category = null;
protected $position_identifier = 'id_category_to_move';
public function __construct()
{
@@ -28,7 +28,9 @@
class AdminCmsCategoriesControllerCore extends AdminController
{
/** @var object CMSCategory() instance for navigation*/
private $_CMSCategory;
protected $_CMSCategory;
protected $position_identifier = 'id_cms_category_to_move';
public function __construct()
{
+2
View File
@@ -31,6 +31,8 @@ class AdminCmsControllerCore extends AdminController
public $id_cms_category;
protected $position_identifier = 'id_cms';
public function __construct()
{
$this->table = 'cms';
@@ -26,6 +26,8 @@
*/
class AdminFeaturesControllerCore extends AdminController
{
protected $position_identifier = 'id_feature';
public function __construct()
{
$this->table = 'feature';
@@ -68,6 +68,8 @@ class AdminProductsControllerCore extends AdminController
protected $available_tabs_lang = array();
protected $position_identifier = 'id_product';
public function __construct()
{
$this->table = 'product';
@@ -27,6 +27,8 @@
class AdminTabsControllerCore extends AdminController
{
protected $position_identifier = 'id_tab';
public function __construct()
{
$this->context = Context::getContext();
@@ -226,6 +228,7 @@ class AdminTabsControllerCore extends AdminController
$helper->currentIndex = self::$currentIndex;
$helper->token = $this->token;
$helper->table = $this->table;
$helper->position_identifier = $this->position_identifier;
// Force render - no filter, form, js, sorting ...
$helper->simple_header = true;
$content = $helper->generateList($this->_list, $this->fieldsDisplay);