ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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  {
32  $type = $object_definition['type'];
33  $role = $object_definition['role'];
34  }
35  else
36  {
37  $type = 'mixed';
38  $role = 'undefined';
39  }
40 
41  if($ext_name != null)
42  {
43  $name = $ext_name;
44  }
45  $code = "";
46  $code .= '
47  $this->defineInstanceVar("'.$element_id.'","'.$name.'", false, "", "'.$type.'", "'.$role.'" );
48  ';
49 
50  return $code;
51  }
52 }
static extractDataNamingFromElement($element)
getPHP($element, ilWorkflowScaffold $class_object)
Class ilWorkflowScaffold.
$code
Definition: example_050.php:99
static extractILIASDataObjectDefinitionFromElement($element)
Class ilBaseElement.
Class ilDataObjectElement.