ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilParallelGatewayElement.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
23 public function getPHP($element, ilWorkflowScaffold $class_object)
24 {
25 $code = "";
26 $element_id = ilBPMN2ParserUtils::xsIDToPHPVarname($element['attributes']['id']);
27 $this->element_varname = '$_v_'.$element_id;
28
29 $event_definition = null;
30
31 $class_object->registerRequire('./Services/WorkflowEngine/classes/nodes/class.ilBasicNode.php');
32 $code .= '
33 ' . $this->element_varname . ' = new ilBasicNode($this);
34 ' . $this->element_varname . '->setName(\'' . $this->element_varname . '\');
35 $this->addNode(' . $this->element_varname . ');
36 ';
37
38 $code .= $this->handleDataAssociations($element, $class_object, $this->element_varname);
39
40 return $code;
41 }
42}
An exception for terminatinating execution or to throw for unit testing.
Class ilBaseElement.
Class ilParallelGatewayElement.
getPHP($element, ilWorkflowScaffold $class_object)
Class ilWorkflowScaffold.
$code
Definition: example_050.php:99