ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilDataObjectElement.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2016 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
13 {
16 
23  public function getPHP($element, ilWorkflowScaffold $class_object)
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  }
48 }
static extractDataNamingFromElement($element)
getPHP($element, ilWorkflowScaffold $class_object)
$type
Class ilWorkflowScaffold.
$code
Definition: example_050.php:99
if($format !==null) $name
Definition: metadata.php:146
static extractILIASDataObjectDefinitionFromElement($element)
Class ilBaseElement.
Class ilDataObjectElement.