[*] 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
+13 -18
View File
@@ -86,6 +86,11 @@ class AdminGendersController extends AdminController
)
);
parent::__construct();
}
public function initForm()
{
$this->fields_form = array(
'legend' => array(
'title' => $this->l('Gender'),
@@ -153,26 +158,16 @@ class AdminGendersController extends AdminController
)
);
parent::__construct();
}
if (!($obj = $this->loadObject(true)))
return;
public function initContent()
{
if ($this->display != 'edit' && $this->display != 'add')
$this->display = 'list';
else
{
if (!($obj = $this->loadObject(true)))
return;
$this->fields_value = array(
'img_width' => $this->default_image_width,
'img_height' => $this->default_image_height,
'image' => $obj->getImage()
);
$this->fields_value = array(
'img_width' => $this->default_image_width,
'img_height' => $this->default_image_height,
'image' => $obj->getImage()
);
}
parent::initContent();
parent::initForm();
}
public function displayGenderType($value, $tr)