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')
46 $cb_input->setChecked((
bool)
$ilSetting->get(
'wfe_activation', 0));
47 return $form_instance->getHTML();
50 if($command ==
'save')
52 if(isset(
$_POST[
'cmd'][
'cancel']))
55 html_entity_decode($this->parent_gui->ilCtrl->getLinkTarget($this->parent_gui,
'definitions.view'))
58 if($form_instance->checkInput())
60 $form_instance->setValuesByPost();
61 $ilSetting->set(
'wfe_activation', (
int)$cb_input->getChecked());
65 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.
__construct(ilObjWorkflowEngineGUI $parent_gui)
ilWorkflowEngineSettingsGUI constructor.
static redirect($a_script)
http redirect to other script