33 public function handle($command)
39 require_once
'./Services/WorkflowEngine/classes/administration/class.ilWorkflowEngineSettingsForm.php';
41 $form_instance =
$form->getForm($this->parent_gui->ilCtrl->getLinkTarget($this->parent_gui,
'settings.save'));
42 $cb_input = $form_instance->getItemByPostVar(
'activate');
44 if ($command ==
'view') {
45 $cb_input->setChecked((
bool)
$ilSetting->get(
'wfe_activation', 0));
46 return $form_instance->getHTML();
49 if ($command ==
'save') {
50 if (isset(
$_POST[
'cmd'][
'cancel'])) {
52 html_entity_decode($this->parent_gui->ilCtrl->getLinkTarget($this->parent_gui,
'definitions.view'))
55 if ($form_instance->checkInput()) {
56 $form_instance->setValuesByPost();
57 $ilSetting->set(
'wfe_activation', (
int) $cb_input->getChecked());
61 html_entity_decode($this->parent_gui->ilCtrl->getLinkTarget($this->parent_gui,
'settings.view'))
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
Class ilWorkflowEngineSettingsGUI.
if(isset($_POST['submit'])) $form
__construct(ilObjWorkflowEngineGUI $parent_gui)
ilWorkflowEngineSettingsGUI constructor.
static redirect($a_script)