[*] BO : #PSFV-94 - changes to helpers

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9517 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
lLefevre
2011-10-20 15:37:26 +00:00
parent 1e9e80b266
commit 78dee05c5a
14 changed files with 231 additions and 271 deletions
+12 -19
View File
@@ -48,14 +48,6 @@ class AdminCountriesControllerCore extends AdminController
'dir' => 'st'
);
parent::__construct();
}
public function initList()
{
$this->_select = 'z.`name` AS zone';
$this->_join = 'LEFT JOIN `'._DB_PREFIX_.'zone` z ON (z.`id_zone` = a.`id_zone`)';
$this->fieldsDisplay = array(
'id_country' => array(
'title' => $this->l('ID'),
@@ -92,10 +84,7 @@ class AdminCountriesControllerCore extends AdminController
'filter_key' => 'a!active'
)
);
}
public function initOptions()
{
$this->options = array(
'general' => array(
'title' => $this->l('Countries options'),
@@ -118,6 +107,16 @@ class AdminCountriesControllerCore extends AdminController
'submit' => array()
)
);
parent::__construct();
}
public function initList()
{
$this->_select = 'z.`name` AS zone';
$this->_join = 'LEFT JOIN `'._DB_PREFIX_.'zone` z ON (z.`id_zone` = a.`id_zone`)';
parent::initList();
}
public function initForm()
@@ -353,6 +352,8 @@ class AdminCountriesControllerCore extends AdminController
'title' => $this->l(' Save '),
'class' => 'button'
);
parent::initForm();
}
public function postProcess()
@@ -401,14 +402,6 @@ class AdminCountriesControllerCore extends AdminController
}
}
public function initContent()
{
if ($this->display != 'edit' && $this->display != 'add')
$this->display = 'list';
parent::initContent();
}
private function displayValidFields()
{
$html = '<ul>';