public function wizardThemeArticleTypesAction()
{
$theme = $this->getThemeService()->findById($this->_request->getParam('id'));
$themeArticleTypes = $this->getThemeService()->getArticleTypes($theme);
$this->view->themeArticleTypes = $themeArticleTypes;
$articleTypes = array();
foreach ($this->getArticleTypeService()->findAllTypes() as $at) {
$atName = $at->getName();
$articleTypes[$atName] = array();
foreach ($this->getArticleTypeService()->findFields($at) as $atf) {
$articleTypes[$atName][] = $atf->getName();
}
}
$this->view->theme = $theme->toObject();
$this->view->articleTypes = (object) $articleTypes;
$this->view->articleTypeNames = array_keys($articleTypes);
$this->view->jQueryUtils()->registerVar('articleTypes', $articleTypes);
$this->view->jQueryUtils()->registerVar('themeArticleTypes', $themeArticleTypes);
}