ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilSequenceFlowElement Class Reference

Class ilSequenceFlowElement. More...

+ Inheritance diagram for ilSequenceFlowElement:
+ Collaboration diagram for ilSequenceFlowElement:

Public Member Functions

 getPHP ($element, ilWorkflowScaffold $class_object)
 
- Public Member Functions inherited from ilBaseElement
 getBpmn2Array ()
 
 setBpmn2Array ($bpmn2_array)
 
 handleDataAssociations ($element, $class_object, $element_varname)
 
 getDataInputAssociationIdentifiers ($element)
 
 getDataOutputAssociationIdentifiers ($element)
 

Data Fields

 $element_varname
 

Additional Inherited Members

- Protected Attributes inherited from ilBaseElement
 $bpmn2_array
 

Detailed Description

Class ilSequenceFlowElement.

Author
Maximilian Becker mbeck.nosp@m.er@d.nosp@m.ataba.nosp@m.y.de
Version
$Id$

/

Definition at line 12 of file class.ilSequenceFlowElement.php.

Member Function Documentation

◆ getPHP()

ilSequenceFlowElement::getPHP (   $element,
ilWorkflowScaffold  $class_object 
)
Parameters
$element
\ilWorkflowScaffold$class_object
Returns
string

Definition at line 23 of file class.ilSequenceFlowElement.php.

References $code, ilWorkflowScaffold\registerRequire(), and ilBPMN2ParserUtils\xsIDToPHPVarname().

24  {
25  $code = "";
26  $element_id = ilBPMN2ParserUtils::xsIDToPHPVarname($element['attributes']['id']);
27  $this->element_varname = '$_v_' . $element_id;
28 
29  $source_element = '$_v_' . $element['attributes']['sourceRef'];
30  $target_element = '$_v_' . $element['attributes']['targetRef'];
31 
32  $code .= '
33  ' . $target_element . '_detector = new ilSimpleDetector(' . $target_element . ');
34  ' . $target_element . '_detector->setName(\'' . $target_element . '_detector\');
35  ' . $target_element . '_detector->setSourceNode(' . $source_element . ');
36  ' . $target_element . '->addDetector(' . $target_element . '_detector);
37  ' . $source_element . '_emitter = new ilActivationEmitter(' . $source_element . ');
38  ' . $source_element . '_emitter->setName(\'' . $source_element . '_emitter\');
39  ' . $source_element . '_emitter->setTargetDetector(' . $target_element . '_detector);
40  ' . $source_element . '->addEmitter(' . $source_element . '_emitter);
41  ';
42 
43  $class_object->registerRequire('./Services/WorkflowEngine/classes/emitters/class.ilActivationEmitter.php');
44  $class_object->registerRequire('./Services/WorkflowEngine/classes/detectors/class.ilSimpleDetector.php');
45 
46  return $code;
47  }
$code
Definition: example_050.php:99
+ Here is the call graph for this function:

Field Documentation

◆ $element_varname

ilSequenceFlowElement::$element_varname

Definition at line 15 of file class.ilSequenceFlowElement.php.


The documentation for this class was generated from the following file: