ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilComplexGatewayElement.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2016 ILIAS open source, Extended GPL, see docs/LICENSE */
3
13{
16
17 public function getPHP($element, ilWorkflowScaffold $class_object)
18 {
19 $code = "";
20 $element_id = ilBPMN2ParserUtils::xsIDToPHPVarname($element['attributes']['id']);
21 $this->element_varname = '$_v_'.$element_id;
22
23 $event_definition = null;
24
25 $class_object->registerRequire('./Services/WorkflowEngine/classes/nodes/class.ilPluginNode.php');
26 $code .= '
27 ' . $this->element_varname . ' = new ilPluginNode($this);
28 ' . $this->element_varname . '->setName(\'' . $this->element_varname . '\');
29 // Details how this works need to be further carved out.
30 $this->addNode(' . $this->element_varname . ');
31 ';
32
33 $code .= $this->handleDataAssociations($element, $class_object, $this->element_varname);
34
35 return $code;
36 }
37}
An exception for terminatinating execution or to throw for unit testing.
Class ilBaseElement.
Class ilComplexGatewayElement.
getPHP($element, ilWorkflowScaffold $class_object)
Class ilWorkflowScaffold.
$code
Definition: example_050.php:99