ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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, 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  {
32  $name = $ext_name;
33  }
34 
35  $code = "";
36  $code .= '
37  $this->defineInstanceVar("'.$element_id.'","'.$name.'", true, "'.$element['attributes']['dataObjectRef'].'" );
38  ';
39 
40  return $code;
41  }
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: