// Rename AdminController methods initForm() initList() etc. to renderForm() renderList()

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10799 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean
2011-11-30 11:06:38 +00:00
parent 12261242e3
commit f9c4410e8d
70 changed files with 328 additions and 327 deletions
+6 -6
View File
@@ -343,7 +343,7 @@ class AdminImportController extends AdminController
parent::__construct();
}
public function initForm()
public function renderForm()
{
if (!is_writable(_PS_ADMIN_DIR_.'/import/'))
$this->displayWarning($this->l('directory import on admin directory must be writable (CHMOD 755 / 777)'));
@@ -380,10 +380,10 @@ class AdminImportController extends AdminController
'available_fields' => $this->getAvailableFields()
);
return parent::initForm();
return parent::renderForm();
}
public function initView()
public function renderView()
{
$this->addJS(_PS_JS_DIR_.'adminImport.js');
@@ -421,7 +421,7 @@ class AdminImportController extends AdminController
'data' => $data
);
return parent::initView();
return parent::renderView();
}
public function initToolbar()
@@ -500,9 +500,9 @@ class AdminImportController extends AdminController
// toolbar (save, cancel, new, ..)
$this->initToolbar();
if ($this->display == 'import')
$this->content .= $this->initView();
$this->content .= $this->renderView();
else
$this->content .= $this->initForm();
$this->content .= $this->renderForm();
$this->context->smarty->assign(array(
'content' => $this->content,