// Add currency to the warehouse - optimisation of form, list and option init in AdminController - list bug fix on StockManager

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9448 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
dSevere
2011-10-19 11:11:30 +00:00
parent af8cac9d64
commit 382f4678bf
3 changed files with 295 additions and 24 deletions
+30
View File
@@ -1014,6 +1014,9 @@ class AdminControllerCore extends Controller
if (!($obj = $this->loadObject(true)))
return;
// init form declaration
$this->initForm();
if (isset($this->fields_form))
{
$this->getlanguages();
@@ -1045,6 +1048,9 @@ class AdminControllerCore extends Controller
}
else if ($this->display == 'list')
{
// init list declaration
$this->initList();
$this->getList($this->context->language->id);
$helper = new HelperList();
@@ -1084,6 +1090,9 @@ class AdminControllerCore extends Controller
}
else if ($this->display == 'options')
{
// init options declaration
$this->initOptions();
$helper = new HelperOptions();
$this->content .= $helper->generateOptions();
}
@@ -1109,6 +1118,27 @@ class AdminControllerCore extends Controller
));
}
/**
* Function used to initialise the list to display for this controller
*/
public function initList()
{
}
/**
* Function used to initialise the form to display for this controller
*/
public function initForm()
{
}
/**
* Function used to initialise the options to display for this controller
*/
public function initOptions()
{
}
public function setMedia()
{
$this->addCSS(_PS_CSS_DIR_.'admin.css', 'all');