ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 }
Class ilWorkflowScaffold.
$code
Definition: example_050.php:99
getPHP($element, ilWorkflowScaffold $class_object)
Class ilComplexGatewayElement.
Class ilBaseElement.