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

Class ilDataInputElement. More...

+ Inheritance diagram for ilDataInputElement:
+ Collaboration diagram for ilDataInputElement:

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

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

/

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

Member Function Documentation

◆ getPHP()

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

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

24 {
25 $name = $element['name'];
26 $element_id = ilBPMN2ParserUtils::xsIDToPHPVarname($element['attributes']['id']);
28
29 if ($ext_name != null) {
30 $name = $ext_name;
31 }
32
34 $array_elements = array();
35 foreach ((array) $input_properties as $key => $value) {
36 $array_elements[] = '"' . $key . '" => "' . $value . '"';
37 }
38
39 $definition = 'array(' . implode(',', (array) $array_elements) . ')';
40
42
43 if ($object_definition != null) {
44 $type = $object_definition['type'];
45 $role = $object_definition['role'];
46 } else {
47 $type = 'mixed';
48 $role = 'undefined';
49 }
50
51 $code = "";
52 $code .= '
53 $this->defineInstanceVar("' . $element_id . '", "' . $name . '", false, "", "' . $type . '", "' . $role . '" );
54 $this->registerInputVar("' . $element_id . '", ' . $definition . ');
55';
56
57 return $code;
58 }
static extractDataNamingFromElement($element)
static extractILIASDataObjectDefinitionFromElement($element)
static extractILIASInputPropertiesFromElement($element)
$key
Definition: croninfo.php:18
$code
Definition: example_050.php:99
if($format !==null) $name
Definition: metadata.php:146
$type

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

+ Here is the call graph for this function:

Field Documentation

◆ $element_varname

string ilDataInputElement::$element_varname

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


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