5require_once 
'./Services/Form/classes/class.ilPropertyFormGUI.php';
 
   37        $this->lng = 
$DIC[
'lng'];
 
   38        $this->tree = 
$DIC[
'tree'];
 
   49    public function getForm($input_vars, $event_definition)
 
   52        $form->setTitle($this->lng->txt(
'input_variables_required'));
 
   53        $form->setDescription($this->lng->txt(
'input_static_variables_desc'));
 
   56        $process_id_input->setValue(stripslashes(
$_GET[
'process_id']));
 
   57        $form->addItem($process_id_input);
 
   59        $event = $event_definition[0];
 
   64        $form->addCommandButton(
'listen', $this->lng->txt(
'start_listening'));
 
   65        $form->addCommandButton(
'cancel', $this->lng->txt(
'cancel'));
 
   73        $children = $this->tree->getFilteredSubTree($this->tree->getRootId());
 
   76        foreach ($children as $child) {
 
   77            if (strtolower(
$config[
'allowedtype']) != $child[
'type']) {
 
   81            $path = $this->tree->getPathFull($child[
'child']);
 
   82            $option_elements = array();
 
   83            foreach (
$path as $node) {
 
   84                if ($node[
'type'] == 
'root') {
 
   87                $option_elements[] = $node[
'title'];
 
   90            $options[ $child[
'child'] ] = implode(
' / ', $option_elements);
 
  105        if (count($input_vars)) {
 
  107            $section->setTitle(
$lng->txt(
'static_input_form_header'));
 
  111        foreach ($input_vars as $input_var) {
 
  114            switch (strtolower($input_var[
'type'])) {
 
  121                    $item = 
new ilTextInputGUI($input_var[
'caption'], $input_var[
'name']);
 
  126            $item->setRequired($input_var[
'requirement'] == 
'required' ? 
true : 
false);
 
  127            $item->setInfo($input_var[
'description']);
 
  128            $form->addItem($item);
 
  140        $section->setTitle(
$lng->txt(
'start_event_form_header'));
 
  144        $type_input->setValue($event[
'type']);
 
  145        $type_input->setDisabled(
true);
 
  146        $form->addItem($type_input);
 
  149        $content_input->setValue($event[
'content']);
 
  150        $content_input->setDisabled(
true);
 
  151        $form->addItem($content_input);
 
  153        $subject_type_input = 
new ilTextInputGUI(
$lng->txt(
'subject_type'), 
'se_subject_type');
 
  154        $subject_type_input->setValue($event[
'subject_type']);
 
  155        $subject_type_input->setDisabled(
true);
 
  156        $form->addItem($subject_type_input);
 
  160        $subject_by_id_selector = 
new ilRadioOption(
$lng->txt(
'subject_by_id'), 
'se_subject_by_id');
 
  162        $subject_id_input->setValue($event[
'subject_id']);
 
  163        $subject_by_id_selector->addSubItem($subject_id_input);
 
  164        $subject_selector->addOption($subject_by_id_selector);
 
  166        $subject_by_mask_selector = 
new ilRadioOption(
$lng->txt(
'subject_by_mask'), 
'se_subject_by_mask');
 
  167        $subject_by_mask_selector->setValue($event[
'subject_id']);
 
  168        $subject_selector->addOption($subject_by_mask_selector);
 
  170        $subject_selector->setValue($event[
'subject_id']);
 
  171        $form->addItem($subject_selector);
 
  173        $context_type_input = 
new ilTextInputGUI(
$lng->txt(
'context_type'), 
'se_context_type');
 
  174        $context_type_input->setValue($event[
'context_type']);
 
  175        $context_type_input->setDisabled(
true);
 
  176        $form->addItem($context_type_input);
 
  180        $context_by_id_selector = 
new ilRadioOption(
$lng->txt(
'context_by_id'), 
'se_context_by_id');
 
  182        $context_id_input->setValue($event[
'context_id']);
 
  183        $context_by_id_selector->addSubItem($context_id_input);
 
  184        $context_selector->addOption($context_by_id_selector);
 
  186        $context_by_mask_selector = 
new ilRadioOption(
$lng->txt(
'context_by_mask'), 
'se_context_by_mask');
 
  187        $context_by_mask_selector->setValue($event[
'subject_id']);
 
  188        $context_selector->addOption($context_by_mask_selector);
 
  190        $context_selector->setValue($event[
'subject_id']);
 
  191        $form->addItem($context_selector);
 
if(!isset( $_REQUEST[ 'ReturnTo'])) if(!isset($_REQUEST['AuthId'])) $options
An exception for terminatinating execution or to throw for unit testing.
This class represents an option in a radio group.
This class represents a text property in a property form.
@noinspection PhpIncludeInspection
getForm($input_vars, $event_definition)
getRepositoryObjectSelector($config)
addStartEventInputItems($lng, $event, $form)
addStaticInputItems($lng, $input_vars, $form)
__construct($form_action)
ilWorkflowLauncherGUI constructor.
if(isset($_POST['submit'])) $form