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

Class ilDataObjectElement. More...

+ Inheritance diagram for ilDataObjectElement:
+ Collaboration diagram for ilDataObjectElement:

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

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

/

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

Member Function Documentation

◆ getPHP()

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

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

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

24  {
25  $name = $element['name'];
26  $element_id = ilBPMN2ParserUtils::xsIDToPHPVarname($element['attributes']['id']);
28 
30  if ($object_definition != null) {
31  $type = $object_definition['type'];
32  $role = $object_definition['role'];
33  } else {
34  $type = 'mixed';
35  $role = 'undefined';
36  }
37 
38  if ($ext_name != null) {
39  $name = $ext_name;
40  }
41  $code = "";
42  $code .= '
43  $this->defineInstanceVar("' . $element_id . '","' . $name . '", false, "", "' . $type . '", "' . $role . '" );
44  ';
45 
46  return $code;
47  }
static extractDataNamingFromElement($element)
$type
$code
Definition: example_050.php:99
static extractILIASDataObjectDefinitionFromElement($element)
+ Here is the call graph for this function:

Field Documentation

◆ $element_varname

ilDataObjectElement::$element_varname

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


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