ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilDataObjectReferenceElement.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 // 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 }
42}
An exception for terminatinating execution or to throw for unit testing.
static extractDataNamingFromElement($element)
Class ilBaseElement.
Class ilDataObjectReferenceElement.
getPHP($element, ilWorkflowScaffold $class_object)
Class ilWorkflowScaffold.
$code
Definition: example_050.php:99