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

XML writer class. More...

+ Inheritance diagram for ilCourseXMLWriter:
+ Collaboration diagram for ilCourseXMLWriter:

Public Member Functions

 __construct ($course_obj)
 constructor More...
 
 setMode ($a_mode)
 
 getMode ()
 
 start ()
 
 getXML ()
 
 modifyExportIdentifier ($a_tag, $a_param, $a_value)
 
 __buildHeader ()
 
 __buildCourseStart ()
 
 __buildMetaData ()
 
 __buildAdmin ()
 
 __buildTutor ()
 
 __buildMember ()
 
 __buildSubscriber ()
 
 __buildWaitingList ()
 
 __buildSetting ()
 
 __buildFooter ()
 
 setAttachUsers ($value)
 write access to attach user property, if set to false no users will be attached. More...
 
- Public Member Functions inherited from ilXmlWriter
 __construct ($version="1.0", $outEnc="utf-8", $inEnc="utf-8")
 constructor More...
 
 _ilXmlWriter ()
 destructor public More...
 
 xmlSetDtdDef ($dtdDef)
 Sets dtd definition. More...
 
 xmlSetStSheet ($stSheet)
 Sets stylesheet. More...
 
 xmlSetGenCmt ($genCmt)
 Sets generated comment. More...
 
 xmlEncodeData ($data)
 Encodes text from input encoding into output encoding. More...
 
 xmlFormatData ($data)
 Indents text for better reading. More...
 
 xmlFormatElement ($array)
 Callback function for xmlFormatData; do not invoke directly. More...
 
 xmlHeader ()
 Writes xml header public. More...
 
 xmlStartTag ($tag, $attrs=null, $empty=false, $encode=true, $escape=true)
 Writes a starttag. More...
 
 xmlEndTag ($tag)
 Writes an endtag. More...
 
 xmlComment ($comment)
 Writes a comment. More...
 
 xmlData ($data, $encode=true, $escape=true)
 Writes data. More...
 
 xmlElement ($tag, $attrs=null, $data=null, $encode=true, $escape=true)
 Writes a basic element (no children, just textual content) More...
 
 xmlDumpFile ($file, $format=true)
 Dumps xml document from memory into a file. More...
 
 xmlDumpMem ($format=true)
 Returns xml document from memory. More...
 
 appendXML ($a_str)
 append xml string to document More...
 
 xmlClear ()
 clears xmlStr public More...
 

Data Fields

const MODE_SOAP = 1
 
const MODE_EXPORT = 2
 
- Data Fields inherited from ilXmlWriter
 $xmlStr
 
 $version
 
 $outEnc
 
 $inEnc
 
 $dtdDef = ""
 
 $stSheet = ""
 
 $genCmt = "Generated by ILIAS XmlWriter"
 

Private Member Functions

 __buildAdvancedMetaData ()
 Build advanced meta data. More...
 

Private Attributes

 $mode = self::MODE_SOAP
 
 $ilias
 
 $xml
 
 $course_obj
 
 $attach_users = true
 

Additional Inherited Members

- Static Public Member Functions inherited from ilXmlWriter
static _xmlEscapeData ($data)
 Escapes reserved characters. More...
 

Detailed Description

XML writer class.

Class to simplify manual writing of xml documents. It only supports writing xml sequentially, because the xml document is saved in a string with no additional structure information. The author is responsible for well-formedness and validity of the xml document.

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
$Id$

Definition at line 39 of file class.ilCourseXMLWriter.php.

Constructor & Destructor Documentation

◆ __construct()

ilCourseXMLWriter::__construct (   $course_obj)

constructor

Parameters
ilObject$course_objpublic

Definition at line 61 of file class.ilCourseXMLWriter.php.

References $course_obj, $DIC, and $ilias.

62  {
63  global $DIC;
64 
65  $ilias = $DIC['ilias'];
66 
67  parent::__construct();
68 
69  $this->EXPORT_VERSION = "2";
70 
71  $this->ilias = $ilias;
72  $this->course_obj = $course_obj;
73  }
global $DIC
Definition: saml.php:7
redirection script todo: (a better solution should control the processing via a xml file) ...

Member Function Documentation

◆ __buildAdmin()

ilCourseXMLWriter::__buildAdmin ( )

Definition at line 175 of file class.ilCourseXMLWriter.php.

References $GLOBALS, $id, ilOrgUnitOperation\OP_MANAGE_MEMBERS, ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().

Referenced by start().

176  {
177  $admins = $this->course_obj->getMembersObject()->getAdmins();
178  $admins = $GLOBALS['DIC']->access()->filterUserIdsByRbacOrPositionOfCurrentUser(
179  'manage_members',
181  $this->course_obj->getRefId(),
182  $admins
183  );
184 
185  foreach ($admins as $id) {
186  $attr['id'] = 'il_' . $this->ilias->getSetting('inst_id') . '_usr_' . $id;
187  $attr['notification'] = ($this->course_obj->getMembersObject()->isNotificationEnabled($id)) ? 'Yes' : 'No';
188  $attr['passed'] = $this->course_obj->getMembersObject()->hasPassed($id) ? 'Yes' : 'No';
189  $attr['contact'] = $this->course_obj->getMembersObject()->isContact($id) ? 'Yes' : 'No';
190 
191  $this->xmlStartTag('Admin', $attr);
192  $this->xmlEndTag('Admin');
193  }
194  return true;
195  }
xmlStartTag($tag, $attrs=null, $empty=false, $encode=true, $escape=true)
Writes a starttag.
if(!array_key_exists('StateId', $_REQUEST)) $id
xmlEndTag($tag)
Writes an endtag.
redirection script todo: (a better solution should control the processing via a xml file) ...
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ __buildAdvancedMetaData()

ilCourseXMLWriter::__buildAdvancedMetaData ( )
private

Build advanced meta data.

private

Definition at line 169 of file class.ilCourseXMLWriter.php.

References ilAdvancedMDValues\_appendXMLByObjId().

Referenced by start().

170  {
171  include_once('Services/AdvancedMetaData/classes/class.ilAdvancedMDValues.php');
172  ilAdvancedMDValues::_appendXMLByObjId($this, $this->course_obj->getId());
173  }
static _appendXMLByObjId(ilXmlWriter $a_xml_writer, $a_obj_id)
Get xml of object values.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ __buildCourseStart()

ilCourseXMLWriter::__buildCourseStart ( )

Definition at line 144 of file class.ilCourseXMLWriter.php.

References ilXmlWriter\xmlStartTag().

Referenced by start().

145  {
146  $attrs["exportVersion"] = $this->EXPORT_VERSION;
147  $attrs["id"] = "il_" . $this->ilias->getSetting('inst_id') . '_crs_' . $this->course_obj->getId();
148  $attrs['showMembers'] = ($this->course_obj->getShowMembers() ? 'Yes' : 'No');
149  $this->xmlStartTag("Course", $attrs);
150  }
xmlStartTag($tag, $attrs=null, $empty=false, $encode=true, $escape=true)
Writes a starttag.
redirection script todo: (a better solution should control the processing via a xml file) ...
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ __buildFooter()

ilCourseXMLWriter::__buildFooter ( )

Definition at line 377 of file class.ilCourseXMLWriter.php.

References ilXmlWriter\xmlEndTag().

Referenced by start().

378  {
379  $this->xmlEndTag('Course');
380  }
xmlEndTag($tag)
Writes an endtag.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ __buildHeader()

ilCourseXMLWriter::__buildHeader ( )

Definition at line 134 of file class.ilCourseXMLWriter.php.

References ilXmlWriter\xmlHeader(), ilXmlWriter\xmlSetDtdDef(), and ilXmlWriter\xmlSetGenCmt().

Referenced by start().

135  {
136  $this->xmlSetDtdDef("<!DOCTYPE Course PUBLIC \"-//ILIAS//DTD Course//EN\" \"" . ILIAS_HTTP_PATH . "/xml/ilias_crs_5_0.dtd\">");
137  $this->xmlSetGenCmt("Export of ILIAS course " . $this->course_obj->getId() . " of installation " . $this->ilias->getSetting('inst_id') . ".");
138  $this->xmlHeader();
139 
140 
141  return true;
142  }
xmlSetGenCmt($genCmt)
Sets generated comment.
xmlSetDtdDef($dtdDef)
Sets dtd definition.
redirection script todo: (a better solution should control the processing via a xml file) ...
xmlHeader()
Writes xml header public.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ __buildMember()

ilCourseXMLWriter::__buildMember ( )

Definition at line 217 of file class.ilCourseXMLWriter.php.

References $GLOBALS, $id, ilOrgUnitOperation\OP_MANAGE_MEMBERS, ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().

Referenced by start().

218  {
219  $members = $this->course_obj->getMembersObject()->getMembers();
220  $members = $GLOBALS['DIC']->access()->filterUserIdsByRbacOrPositionOfCurrentUser(
221  'manage_members',
223  $this->course_obj->getRefId(),
224  $members
225  );
226  foreach ($members as $id) {
227  $attr['id'] = 'il_' . $this->ilias->getSetting('inst_id') . '_usr_' . $id;
228  $attr['blocked'] = ($this->course_obj->getMembersObject()->isBlocked($id)) ? 'Yes' : 'No';
229  $attr['passed'] = $this->course_obj->getMembersObject()->hasPassed($id) ? 'Yes' : 'No';
230 
231  $this->xmlStartTag('Member', $attr);
232  $this->xmlEndTag('Member');
233  }
234  return true;
235  }
xmlStartTag($tag, $attrs=null, $empty=false, $encode=true, $escape=true)
Writes a starttag.
if(!array_key_exists('StateId', $_REQUEST)) $id
xmlEndTag($tag)
Writes an endtag.
redirection script todo: (a better solution should control the processing via a xml file) ...
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ __buildMetaData()

ilCourseXMLWriter::__buildMetaData ( )

Definition at line 152 of file class.ilCourseXMLWriter.php.

References ilXmlWriter\appendXML(), and ilMD2XML\startExport().

Referenced by start().

153  {
154  include_once 'Services/MetaData/classes/class.ilMD2XML.php';
155 
156  $md2xml = new ilMD2XML($this->course_obj->getId(), $this->course_obj->getId(), 'crs');
157  $md2xml->startExport();
158  $this->appendXML($md2xml->getXML());
159 
160  return true;
161  }
appendXML($a_str)
append xml string to document
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ __buildSetting()

ilCourseXMLWriter::__buildSetting ( )

Definition at line 288 of file class.ilCourseXMLWriter.php.

References IL_CAL_UNIX, IL_CRS_SUBSCRIPTION_CONFIRMATION, IL_CRS_SUBSCRIPTION_DEACTIVATED, IL_CRS_SUBSCRIPTION_DIRECT, IL_CRS_SUBSCRIPTION_UNLIMITED, IL_CRS_VIEW_TIMING, ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().

Referenced by start().

289  {
290  $this->xmlStartTag('Settings');
291 
292  // Availability
293  $this->xmlStartTag('Availability');
294  if ($this->course_obj->getOfflineStatus()) {
295  $this->xmlElement('NotAvailable');
296  } elseif ($this->course_obj->getActivationUnlimitedStatus()) {
297  $this->xmlElement('Unlimited');
298  } else {
299  $this->xmlStartTag('TemporarilyAvailable');
300  $this->xmlElement('Start', null, $this->course_obj->getActivationStart());
301  $this->xmlElement('End', null, $this->course_obj->getActivationEnd());
302  $this->xmlEndTag('TemporarilyAvailable');
303  }
304  $this->xmlEndTag('Availability');
305 
306  // Syllabus
307  $this->xmlElement('Syllabus', null, $this->course_obj->getSyllabus());
308  $this->xmlElement('ImportantInformation', null, $this->course_obj->getImportantInformation());
309 
310 
311  // Contact
312  $this->xmlStartTag('Contact');
313  $this->xmlElement('Name', null, $this->course_obj->getContactName());
314  $this->xmlElement('Responsibility', null, $this->course_obj->getContactResponsibility());
315  $this->xmlElement('Phone', null, $this->course_obj->getContactPhone());
316  $this->xmlElement('Email', null, $this->course_obj->getContactEmail());
317  $this->xmlElement('Consultation', null, $this->course_obj->getContactConsultation());
318  $this->xmlEndTag('Contact');
319 
320  // Registration
321  $attr = array();
322 
323  if ($this->course_obj->getSubscriptionType() == IL_CRS_SUBSCRIPTION_CONFIRMATION) {
324  $attr['registrationType'] = 'Confirmation';
325  } elseif ($this->course_obj->getSubscriptionType() == IL_CRS_SUBSCRIPTION_DIRECT) {
326  $attr['registrationType'] = 'Direct';
327  } else {
328  $attr['registrationType'] = 'Password';
329  }
330 
331  $attr['maxMembers'] = $this->course_obj->isSubscriptionMembershipLimited() ?
332  $this->course_obj->getSubscriptionMaxMembers() : 0;
333  $attr['notification'] = $this->course_obj->getSubscriptionNotify() ? 'Yes' : 'No';
334  $attr['waitingList'] = $this->course_obj->enabledWaitingList() ? 'Yes' : 'No';
335 
336  $this->xmlStartTag('Registration', $attr);
337 
338  if ($this->course_obj->getSubscriptionLimitationType() == IL_CRS_SUBSCRIPTION_DEACTIVATED) {
339  $this->xmlElement('Disabled');
340  } elseif ($this->course_obj->getSubscriptionLimitationType() == IL_CRS_SUBSCRIPTION_UNLIMITED) {
341  $this->xmlElement('Unlimited');
342  } else {
343  $this->xmlStartTag('TemporarilyAvailable');
344  $this->xmlElement('Start', null, $this->course_obj->getSubscriptionStart());
345  $this->xmlElement('End', null, $this->course_obj->getSubscriptionEnd());
346  $this->xmlEndTag('TemporarilyAvailable');
347  }
348  if (strlen($pwd = $this->course_obj->getSubscriptionPassword())) {
349  $this->xmlElement('Password', null, $pwd);
350  }
351  $this->xmlEndTag('Registration');
352 
353 
354  $this->xmlStartTag('Period');
355  $this->xmlElement('Start', null, ($this->course_obj->getCourseStart() && !$this->course_obj->getCourseStart()->isNull()) ? $this->course_obj->getCourseStart()->get(IL_CAL_UNIX) : null);
356  $this->xmlElement('End', null, ($this->course_obj->getCourseEnd() && !$this->course_obj->getCourseEnd()->isNull()) ? $this->course_obj->getCourseEnd()->get(IL_CAL_UNIX) : null);
357  $this->xmlEndTag('Period');
358  $this->xmlElement('WaitingListAutoFill', null, (int) $this->course_obj->hasWaitingListAutoFill());
359  $this->xmlElement('CancellationEnd', null, ($this->course_obj->getCancellationEnd() && !$this->course_obj->getCancellationEnd()->isNull()) ? $this->course_obj->getCancellationEnd()->get(IL_CAL_UNIX) : null);
360  $this->xmlElement('MinMembers', null, (int) $this->course_obj->getSubscriptionMinMembers());
361 
362  $this->xmlElement('ViewMode', null, $this->course_obj->getViewMode());
363 
364  // cognos-blu-patch: begin
365  $this->xmlElement('ViewMode', null, $this->course_obj->getViewMode());
366 
367  if ($this->course_obj->getViewMode() == IL_CRS_VIEW_TIMING) {
368  $this->xmlElement('TimingMode', null, $this->course_obj->getTimingMode());
369  }
370  // cognos-blu-patch: end
371 
372  $this->xmlEndTag('Settings');
373 
374  return true;
375  }
xmlStartTag($tag, $attrs=null, $empty=false, $encode=true, $escape=true)
Writes a starttag.
const IL_CRS_SUBSCRIPTION_CONFIRMATION
const IL_CAL_UNIX
const IL_CRS_VIEW_TIMING
xmlEndTag($tag)
Writes an endtag.
const IL_CRS_SUBSCRIPTION_UNLIMITED
xmlElement($tag, $attrs=null, $data=null, $encode=true, $escape=true)
Writes a basic element (no children, just textual content)
const IL_CRS_SUBSCRIPTION_DIRECT
const IL_CRS_SUBSCRIPTION_DEACTIVATED
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ __buildSubscriber()

ilCourseXMLWriter::__buildSubscriber ( )

Definition at line 237 of file class.ilCourseXMLWriter.php.

References $data, $GLOBALS, $id, ilOrgUnitOperation\OP_MANAGE_MEMBERS, ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().

Referenced by start().

238  {
239  $subs = $this->course_obj->getMembersObject()->getSubscribers();
240  $subs = $GLOBALS['DIC']->access()->filterUserIdsByRbacOrPositionOfCurrentUser(
241  'manage_members',
243  $this->course_obj->getRefId(),
244  $subs
245  );
246 
247  foreach ($subs as $id) {
248  $data = $this->course_obj->getMembersObject()->getSubscriberData($id);
249 
250  $attr['id'] = 'il_' . $this->ilias->getSetting('inst_id') . '_usr_' . $id;
251  $attr['subscriptionTime'] = $data['time'];
252 
253  $this->xmlStartTag('Subscriber', $attr);
254  $this->xmlEndTag('Subscriber');
255  }
256  return true;
257  }
xmlStartTag($tag, $attrs=null, $empty=false, $encode=true, $escape=true)
Writes a starttag.
if(!array_key_exists('StateId', $_REQUEST)) $id
xmlEndTag($tag)
Writes an endtag.
redirection script todo: (a better solution should control the processing via a xml file) ...
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.
$data
Definition: bench.php:6
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ __buildTutor()

ilCourseXMLWriter::__buildTutor ( )

Definition at line 197 of file class.ilCourseXMLWriter.php.

References $GLOBALS, $id, ilOrgUnitOperation\OP_MANAGE_MEMBERS, ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().

Referenced by start().

198  {
199  $tutors = $this->course_obj->getMembersObject()->getTutors();
200  $tutors = $GLOBALS['DIC']->access()->filterUserIdsByRbacOrPositionOfCurrentUser(
201  'manage_members',
203  $this->course_obj->getRefId(),
204  $tutors
205  );
206  foreach ($tutors as $id) {
207  $attr['id'] = 'il_' . $this->ilias->getSetting('inst_id') . '_usr_' . $id;
208  $attr['notification'] = ($this->course_obj->getMembersObject()->isNotificationEnabled($id)) ? 'Yes' : 'No';
209  $attr['passed'] = $this->course_obj->getMembersObject()->hasPassed($id) ? 'Yes' : 'No';
210  $attr['contact'] = $this->course_obj->getMembersObject()->isContact($id) ? 'Yes' : 'No';
211 
212  $this->xmlStartTag('Tutor', $attr);
213  $this->xmlEndTag('Tutor');
214  }
215  return true;
216  }
xmlStartTag($tag, $attrs=null, $empty=false, $encode=true, $escape=true)
Writes a starttag.
if(!array_key_exists('StateId', $_REQUEST)) $id
xmlEndTag($tag)
Writes an endtag.
redirection script todo: (a better solution should control the processing via a xml file) ...
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ __buildWaitingList()

ilCourseXMLWriter::__buildWaitingList ( )

Definition at line 259 of file class.ilCourseXMLWriter.php.

References $data, $GLOBALS, ilWaitingList\getAllUsers(), ilOrgUnitOperation\OP_MANAGE_MEMBERS, ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().

Referenced by start().

260  {
261  include_once 'Modules/Course/classes/class.ilCourseWaitingList.php';
262  $waiting_list = new ilCourseWaitingList($this->course_obj->getId());
263 
264  $wait = $waiting_list->getAllUsers();
265 
266  foreach ($wait as $data) {
267  $is_accessible = $GLOBALS['DIC']->access()->filterUserIdsByRbacOrPositionOfCurrentUser(
268  'manage_members',
270  $this->course_obj->getRefId(),
271  [$data['usr_id']]
272  );
273  if (!count($is_accessible)) {
274  continue;
275  }
276 
277  $attr['id'] = 'il_' . $this->ilias->getSetting('inst_id') . '_usr_' . $data['usr_id'];
278  $attr['position'] = $data['position'];
279  $attr['subscriptionTime'] = $data['time'];
280 
281  $this->xmlStartTag('WaitingList', $attr);
282  $this->xmlEndTag('WaitingList');
283  }
284  return true;
285  }
xmlStartTag($tag, $attrs=null, $empty=false, $encode=true, $escape=true)
Writes a starttag.
xmlEndTag($tag)
Writes an endtag.
getAllUsers()
get all users on waiting list
redirection script todo: (a better solution should control the processing via a xml file) ...
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.
$data
Definition: bench.php:6
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getMode()

ilCourseXMLWriter::getMode ( )

Definition at line 80 of file class.ilCourseXMLWriter.php.

References $mode.

Referenced by start().

81  {
82  return $this->mode;
83  }
+ Here is the caller graph for this function:

◆ getXML()

ilCourseXMLWriter::getXML ( )

Definition at line 117 of file class.ilCourseXMLWriter.php.

References ilXmlWriter\xmlDumpMem().

118  {
119  #var_dump("<pre>", htmlentities($this->xmlDumpMem()),"<pre>");
120  return $this->xmlDumpMem(true);
121  }
xmlDumpMem($format=true)
Returns xml document from memory.
+ Here is the call graph for this function:

◆ modifyExportIdentifier()

ilCourseXMLWriter::modifyExportIdentifier (   $a_tag,
  $a_param,
  $a_value 
)

Definition at line 124 of file class.ilCourseXMLWriter.php.

125  {
126  if ($a_tag == "Identifier" && $a_param == "Entry") {
127  $a_value = "il_" . $this->ilias->getSetting('inst_id') . "_crs_" . $this->course_obj->getId();
128  }
129 
130  return $a_value;
131  }
redirection script todo: (a better solution should control the processing via a xml file) ...

◆ setAttachUsers()

ilCourseXMLWriter::setAttachUsers (   $value)

write access to attach user property, if set to false no users will be attached.

Parameters
unknown_type$value

Definition at line 387 of file class.ilCourseXMLWriter.php.

388  {
389  $this->attach_users = $value ? true : false;
390  }

◆ setMode()

ilCourseXMLWriter::setMode (   $a_mode)

Definition at line 75 of file class.ilCourseXMLWriter.php.

76  {
77  $this->mode = $a_mode;
78  }

◆ start()

ilCourseXMLWriter::start ( )

Definition at line 85 of file class.ilCourseXMLWriter.php.

References __buildAdmin(), __buildAdvancedMetaData(), __buildCourseStart(), __buildFooter(), __buildHeader(), __buildMember(), __buildMetaData(), __buildSetting(), __buildSubscriber(), __buildTutor(), __buildWaitingList(), ilContainer\_exportContainerSettings(), ilContainerSortingSettings\_exportContainerSortingSettings(), and getMode().

86  {
87  if ($this->getMode() == self::MODE_SOAP) {
88  $this->__buildHeader();
89  $this->__buildCourseStart();
90  $this->__buildMetaData();
91  $this->__buildAdvancedMetaData();
92  if ($this->attach_users) {
93  $this->__buildAdmin();
94  $this->__buildTutor();
95  $this->__buildMember();
96  }
97  $this->__buildSubscriber();
98  $this->__buildWaitingList();
99 
100  $this->__buildSetting();
101  include_once './Services/Container/classes/class.ilContainerSortingSettings.php';
102  ilContainerSortingSettings::_exportContainerSortingSettings($this, $this->course_obj->getId());
103  ilContainer::_exportContainerSettings($this, $this->course_obj->getId());
104  $this->__buildFooter();
105  } elseif ($this->getMode() == self::MODE_EXPORT) {
106  $this->__buildCourseStart();
107  $this->__buildMetaData();
108  $this->__buildAdvancedMetaData();
109  $this->__buildSetting();
110  include_once './Services/Container/classes/class.ilContainerSortingSettings.php';
111  ilContainerSortingSettings::_exportContainerSortingSettings($this, $this->course_obj->getId());
112  ilContainer::_exportContainerSettings($this, $this->course_obj->getId());
113  $this->__buildFooter();
114  }
115  }
static _exportContainerSettings(ilXmlWriter $a_xml, $a_obj_id)
static _exportContainerSortingSettings(ilXmlWriter $xml, $obj_id)
sorting XML-export for all container objects
__buildAdvancedMetaData()
Build advanced meta data.
+ Here is the call graph for this function:

Field Documentation

◆ $attach_users

ilCourseXMLWriter::$attach_users = true
private

Definition at line 51 of file class.ilCourseXMLWriter.php.

◆ $course_obj

ilCourseXMLWriter::$course_obj
private

Definition at line 50 of file class.ilCourseXMLWriter.php.

Referenced by __construct().

◆ $ilias

ilCourseXMLWriter::$ilias
private

Definition at line 47 of file class.ilCourseXMLWriter.php.

Referenced by __construct().

◆ $mode

ilCourseXMLWriter::$mode = self::MODE_SOAP
private

Definition at line 44 of file class.ilCourseXMLWriter.php.

Referenced by getMode().

◆ $xml

ilCourseXMLWriter::$xml
private

Definition at line 49 of file class.ilCourseXMLWriter.php.

◆ MODE_EXPORT

const ilCourseXMLWriter::MODE_EXPORT = 2

Definition at line 42 of file class.ilCourseXMLWriter.php.

Referenced by ilCourseExporter\getXmlRepresentation().

◆ MODE_SOAP

const ilCourseXMLWriter::MODE_SOAP = 1

Definition at line 41 of file class.ilCourseXMLWriter.php.


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