Exemplo n.º 1
0
        $controller->getToken();
        break;
    case \SP\Controller\ActionsInterface::ACTION_MGM_APITOKENS_NEW:
        $tpl->assign('header', _('Nueva Autorización'));
        $tpl->assign('onCloseAction', \SP\Controller\ActionsInterface::ACTION_USR);
        $controller = new SP\Controller\UsersMgmtC($tpl);
        $controller->getToken();
        break;
    case \SP\Controller\ActionsInterface::ACTION_MGM_APITOKENS_EDIT:
        $tpl->assign('header', _('Editar Autorización'));
        $tpl->assign('onCloseAction', \SP\Controller\ActionsInterface::ACTION_USR);
        $controller = new SP\Controller\UsersMgmtC($tpl);
        $controller->getToken();
        break;
    case \SP\Controller\ActionsInterface::ACTION_MGM_CUSTOMFIELDS_NEW:
        $tpl->assign('header', _('Nuevo Campo'));
        $tpl->assign('onCloseAction', \SP\Controller\ActionsInterface::ACTION_MGM);
        $controller = new SP\Controller\AccountsMgmtC($tpl);
        $controller->getCustomField();
        break;
    case \SP\Controller\ActionsInterface::ACTION_MGM_CUSTOMFIELDS_EDIT:
        $tpl->assign('header', _('Editar Campo'));
        $tpl->assign('onCloseAction', \SP\Controller\ActionsInterface::ACTION_MGM);
        $controller = new SP\Controller\AccountsMgmtC($tpl);
        $controller->getCustomField();
        break;
    default:
        exit;
        break;
}
$controller->view();