ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilDataObjectReferenceElement Class Reference

Class ilDataObjectReferenceElement. More...

+ Inheritance diagram for ilDataObjectReferenceElement:
+ Collaboration diagram for ilDataObjectReferenceElement:

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 ilDataObjectReferenceElement.

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

/

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

Member Function Documentation

◆ getPHP()

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

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

References $code, $name, ilBPMN2ParserUtils\extractDataNamingFromElement(), and ilBPMN2ParserUtils\xsIDToPHPVarname().

24  {
25  // We need to register an instance var that is a reference.
26  $element_id = ilBPMN2ParserUtils::xsIDToPHPVarname($element['attributes']['id']);
27  $name = $element['name'];
29 
30  if ($ext_name != null) {
31  $name = $ext_name;
32  }
33 
34  $code = "";
35  $code .= '
36  $this->defineInstanceVar("' . $element_id . '","' . $name . '", true, "' . $element['attributes']['dataObjectRef'] . '" );
37  ';
38 
39  return $code;
40  }
static extractDataNamingFromElement($element)
$code
Definition: example_050.php:99
+ Here is the call graph for this function:

Field Documentation

◆ $element_varname

ilDataObjectReferenceElement::$element_varname

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


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