ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilCourseXMLWriter Class Reference

XML writer class Class to simplify manual writing of xml documents. More...

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

Public Member Functions

 __construct (ilObjCourse $course_obj)
 
 setMode (int $a_mode)
 
 getMode ()
 
 start ()
 
 getXML ()
 
 modifyExportIdentifier ($a_tag, $a_param, $a_value)
 
 __buildHeader ()
 
 __buildCourseStart ()
 
 __buildMetaData ()
 
 __buildAdmin ()
 
 __buildTutor ()
 
 __buildMember ()
 
 __buildSubscriber ()
 
 __buildWaitingList ()
 
 __buildSetting ()
 
 __buildFooter ()
 
 setAttachUsers ($value)
 
- Public Member Functions inherited from ilXmlWriter
 __construct (string $version="1.0", string $outEnc="utf-8", string $inEnc="utf-8")
 
 xmlSetDtdDef (string $dtdDef)
 Sets dtd definition. More...
 
 xmlSetGenCmt (string $genCmt)
 Sets generated comment. More...
 
 xmlFormatData (string $data)
 Indents text for better reading. More...
 
 xmlHeader ()
 Writes xml header. More...
 
 xmlStartTag (string $tag, ?array $attrs=null, bool $empty=false, bool $encode=true, bool $escape=true)
 Writes a starttag. More...
 
 xmlEndTag (string $tag)
 Writes an endtag. More...
 
 xmlData (string $data, bool $encode=true, bool $escape=true)
 Writes data. More...
 
 xmlElement (string $tag, $attrs=null, $data=null, $encode=true, $escape=true)
 Writes a basic element (no children, just textual content) More...
 
 xmlDumpFile (string $file, bool $format=true)
 Dumps xml document from memory into a file. More...
 
 xmlDumpMem (bool $format=true)
 Returns xml document from memory. More...
 
 appendXML (string $a_str)
 append xml string to document More...
 
 xmlClear ()
 clears xmlStr More...
 

Data Fields

const MODE_SOAP = 1
 
const MODE_EXPORT = 2
 
const EXPORT_VERSION = '8.0'
 

Protected Attributes

ilSetting $setting
 
ilAccessHandler $access
 

Private Member Functions

 __buildAdvancedMetaData ()
 

Private Attributes

int $mode = self::MODE_SOAP
 
string $xml = ''
 
ilObjCourse $course_obj
 
bool $attach_users = true
 

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 31 of file class.ilCourseXMLWriter.php.

Constructor & Destructor Documentation

◆ __construct()

ilCourseXMLWriter::__construct ( ilObjCourse  $course_obj)

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

References $course_obj, $DIC, ILIAS\GlobalScreen\Provider\__construct(), and ILIAS\Repository\access().

48  {
49  global $DIC;
50 
51  $this->setting = $DIC->settings();
52  $this->access = $DIC->access();
53 
55  $this->course_obj = $course_obj;
56  }
global $DIC
Definition: shib_login.php:22
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ __buildAdmin()

ilCourseXMLWriter::__buildAdmin ( )

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

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

Referenced by start().

137  : void
138  {
139  $admins = $this->course_obj->getMembersObject()->getAdmins();
140  $admins = $GLOBALS['DIC']->access()->filterUserIdsByRbacOrPositionOfCurrentUser(
141  'manage_members',
143  $this->course_obj->getRefId(),
144  $admins
145  );
146 
147  foreach ($admins as $id) {
148  $attr['id'] = 'il_' . $this->setting->get('inst_id') . '_usr_' . $id;
149  $attr['notification'] = ($this->course_obj->getMembersObject()->isNotificationEnabled($id)) ? 'Yes' : 'No';
150  $attr['passed'] = $this->course_obj->getMembersObject()->hasPassed($id) ? 'Yes' : 'No';
151  $attr['contact'] = $this->course_obj->getMembersObject()->isContact($id) ? 'Yes' : 'No';
152 
153  $this->xmlStartTag('Admin', $attr);
154  $this->xmlEndTag('Admin');
155  }
156  }
xmlEndTag(string $tag)
Writes an endtag.
$GLOBALS["DIC"]
Definition: wac.php:53
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
xmlStartTag(string $tag, ?array $attrs=null, bool $empty=false, bool $encode=true, bool $escape=true)
Writes a starttag.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ __buildAdvancedMetaData()

ilCourseXMLWriter::__buildAdvancedMetaData ( )
private

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

References ilAdvancedMDValues\_appendXMLByObjId().

Referenced by start().

132  : void
133  {
134  ilAdvancedMDValues::_appendXMLByObjId($this, $this->course_obj->getId());
135  }
static _appendXMLByObjId(ilXmlWriter $a_xml_writer, int $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 117 of file class.ilCourseXMLWriter.php.

References ilXmlWriter\xmlStartTag().

Referenced by start().

117  : void
118  {
119  $attrs["exportVersion"] = self::EXPORT_VERSION;
120  $attrs["id"] = "il_" . $this->setting->get('inst_id') . '_crs_' . $this->course_obj->getId();
121  $attrs['showMembers'] = ($this->course_obj->getShowMembers() ? 'Yes' : 'No');
122  $this->xmlStartTag("Course", $attrs);
123  }
xmlStartTag(string $tag, ?array $attrs=null, bool $empty=false, bool $encode=true, bool $escape=true)
Writes a starttag.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ __buildFooter()

ilCourseXMLWriter::__buildFooter ( )

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

References ilXmlWriter\xmlEndTag().

Referenced by start().

368  : void
369  {
370  $this->xmlEndTag('Course');
371  }
xmlEndTag(string $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 111 of file class.ilCourseXMLWriter.php.

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

Referenced by start().

111  : void
112  {
113  $this->xmlSetGenCmt("Export of ILIAS course " . $this->course_obj->getId() . " of installation " . $this->setting->get('inst_id') . ".");
114  $this->xmlHeader();
115  }
xmlSetGenCmt(string $genCmt)
Sets generated comment.
xmlHeader()
Writes xml header.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ __buildMember()

ilCourseXMLWriter::__buildMember ( )

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

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

Referenced by start().

178  : void
179  {
180  $members = $this->course_obj->getMembersObject()->getMembers();
181  $members = $GLOBALS['DIC']->access()->filterUserIdsByRbacOrPositionOfCurrentUser(
182  'manage_members',
184  $this->course_obj->getRefId(),
185  $members
186  );
187  foreach ($members as $id) {
188  $attr['id'] = 'il_' . $this->setting->get('inst_id') . '_usr_' . $id;
189  $attr['blocked'] = ($this->course_obj->getMembersObject()->isBlocked($id)) ? 'Yes' : 'No';
190  $attr['passed'] = $this->course_obj->getMembersObject()->hasPassed($id) ? 'Yes' : 'No';
191 
192  $this->xmlStartTag('Member', $attr);
193  $this->xmlEndTag('Member');
194  }
195  }
xmlEndTag(string $tag)
Writes an endtag.
$GLOBALS["DIC"]
Definition: wac.php:53
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
xmlStartTag(string $tag, ?array $attrs=null, bool $empty=false, bool $encode=true, bool $escape=true)
Writes a starttag.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ __buildMetaData()

ilCourseXMLWriter::__buildMetaData ( )

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

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

Referenced by start().

125  : void
126  {
127  $md2xml = new ilMD2XML($this->course_obj->getId(), $this->course_obj->getId(), 'crs');
128  $md2xml->startExport();
129  $this->appendXML($md2xml->getXML());
130  }
appendXML(string $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 242 of file class.ilCourseXMLWriter.php.

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

Referenced by start().

242  : void
243  {
244  $this->xmlStartTag('Settings');
245 
246  // Availability
247  $this->xmlStartTag('Availability');
248  if ($this->course_obj->getOfflineStatus()) {
249  $this->xmlElement('NotAvailable');
250  } elseif ($this->course_obj->getActivationUnlimitedStatus()) {
251  $this->xmlElement('Unlimited');
252  } else {
253  $this->xmlStartTag('TemporarilyAvailable');
254  $this->xmlElement('Start', null, $this->course_obj->getActivationStart());
255  $this->xmlElement('End', null, $this->course_obj->getActivationEnd());
256  $this->xmlEndTag('TemporarilyAvailable');
257  }
258  $this->xmlEndTag('Availability');
259 
260  // Syllabus
261  $this->xmlElement('Syllabus', null, $this->course_obj->getSyllabus());
262  $this->xmlElement('ImportantInformation', null, $this->course_obj->getImportantInformation());
263  $this->xmlElement('TargetGroup', null, $this->course_obj->getTargetGroup());
264 
265  // Contact
266  $this->xmlStartTag('Contact');
267  $this->xmlElement('Name', null, $this->course_obj->getContactName());
268  $this->xmlElement('Responsibility', null, $this->course_obj->getContactResponsibility());
269  $this->xmlElement('Phone', null, $this->course_obj->getContactPhone());
270  $this->xmlElement('Email', null, $this->course_obj->getContactEmail());
271  $this->xmlElement('Consultation', null, $this->course_obj->getContactConsultation());
272  $this->xmlEndTag('Contact');
273 
274  // Registration
275  $attr = array();
276 
277  if ($this->course_obj->getSubscriptionType() == ilCourseConstants::IL_CRS_SUBSCRIPTION_CONFIRMATION) {
278  $attr['registrationType'] = 'Confirmation';
279  } elseif ($this->course_obj->getSubscriptionType() == ilCourseConstants::IL_CRS_SUBSCRIPTION_DIRECT) {
280  $attr['registrationType'] = 'Direct';
281  } else {
282  $attr['registrationType'] = 'Password';
283  }
284 
285  $attr['maxMembers'] = $this->course_obj->isSubscriptionMembershipLimited() ?
286  $this->course_obj->getSubscriptionMaxMembers() : 0;
287  $attr['notification'] = $this->course_obj->getSubscriptionNotify() ? 'Yes' : 'No';
288  $attr['waitingList'] = $this->course_obj->enabledWaitingList() ? 'Yes' : 'No';
289 
290  $this->xmlStartTag('Registration', $attr);
291 
292  if ($this->course_obj->getSubscriptionLimitationType() == ilCourseConstants::IL_CRS_SUBSCRIPTION_DEACTIVATED) {
293  $this->xmlElement('Disabled');
294  } elseif ($this->course_obj->getSubscriptionLimitationType() == ilCourseConstants::IL_CRS_SUBSCRIPTION_UNLIMITED) {
295  $this->xmlElement('Unlimited');
296  } else {
297  $this->xmlStartTag('TemporarilyAvailable');
298  $this->xmlElement('Start', null, $this->course_obj->getSubscriptionStart());
299  $this->xmlElement('End', null, $this->course_obj->getSubscriptionEnd());
300  $this->xmlEndTag('TemporarilyAvailable');
301  }
302  if (strlen($pwd = $this->course_obj->getSubscriptionPassword())) {
303  $this->xmlElement('Password', null, $pwd);
304  }
305  $this->xmlEndTag('Registration');
306 
307  $this->xmlStartTag('Period', ['withTime' => $this->course_obj->getCourseStartTimeIndication() ? 1 : 0]);
308  $this->xmlElement(
309  'Start',
310  null,
311  $this->course_obj->getCourseStart()
312  ? $this->course_obj->getCourseStart()->get(IL_CAL_UNIX)
313  : null
314  );
315  $this->xmlElement(
316  'End',
317  null,
318  $this->course_obj->getCourseEnd()
319  ? $this->course_obj->getCourseEnd()->get(IL_CAL_UNIX)
320  : null
321  );
322  $this->xmlEndTag('Period');
323  $this->xmlElement('WaitingListAutoFill', null, (int) $this->course_obj->hasWaitingListAutoFill());
324  $this->xmlElement(
325  'CancellationEnd',
326  null,
327  ($this->course_obj->getCancellationEnd() && !$this->course_obj->getCancellationEnd()->isNull()) ? $this->course_obj->getCancellationEnd()->get(IL_CAL_UNIX) : null
328  );
329  $this->xmlElement('MinMembers', null, $this->course_obj->getSubscriptionMinMembers());
330 
331  $this->xmlElement('ViewMode', null, $this->course_obj->getViewMode());
332  if ($this->course_obj->getViewMode() == ilCourseConstants::IL_CRS_VIEW_TIMING) {
333  $this->xmlElement('TimingMode', null, $this->course_obj->getTimingMode());
334  }
335 
336  $this->xmlElement('TutorialSupportBlock', [
337  'active' => $this->course_obj->getTutorialSupportBlockSettingValue()
338  ]);
339 
340  $this->xmlElement(
341  'SessionLimit',
342  [
343  'active' => $this->course_obj->isSessionLimitEnabled() ? 1 : 0,
344  'previous' => $this->course_obj->getNumberOfPreviousSessions(),
345  'next' => $this->course_obj->getNumberOfNextSessions()
346  ]
347  );
348 
349  $this->xmlElement(
350  'WelcomeMail',
351  [
352  'status' => $this->course_obj->getAutoNotification() ? 1 : 0
353  ]
354  );
355 
356  $this->xmlElement('StatusDetermination', null, (int) $this->course_obj->getStatusDetermination());
357  $this->xmlElement('MailToMembersType', null, (int) $this->course_obj->getMailToMembersType());
358  $this->xmlElement('CourseMap', [
359  'enabled' => (int) $this->course_obj->getEnableCourseMap(),
360  'latitude' => $this->course_obj->getLatitude(),
361  'longitude' => $this->course_obj->getLongitude(),
362  'location_zoom' => $this->course_obj->getLocationZoom()
363  ]);
364 
365  $this->xmlEndTag('Settings');
366  }
const IL_CAL_UNIX
xmlEndTag(string $tag)
Writes an endtag.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
xmlStartTag(string $tag, ?array $attrs=null, bool $empty=false, bool $encode=true, bool $escape=true)
Writes a starttag.
xmlElement(string $tag, $attrs=null, $data=null, $encode=true, $escape=true)
Writes a basic element (no children, just textual content)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ __buildSubscriber()

ilCourseXMLWriter::__buildSubscriber ( )

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

References $data, $id, ILIAS\Repository\access(), ilOrgUnitOperation\OP_MANAGE_MEMBERS, ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().

Referenced by start().

197  : void
198  {
199  $subs = $this->course_obj->getMembersObject()->getSubscribers();
200  $subs = $this->access->filterUserIdsByRbacOrPositionOfCurrentUser(
201  'manage_members',
203  $this->course_obj->getRefId(),
204  $subs
205  );
206 
207  foreach ($subs as $id) {
208  $data = $this->course_obj->getMembersObject()->getSubscriberData($id);
209 
210  $attr['id'] = 'il_' . $this->setting->get('inst_id') . '_usr_' . $id;
211  $attr['subscriptionTime'] = $data['time'];
212 
213  $this->xmlStartTag('Subscriber', $attr);
214  $this->xmlEndTag('Subscriber');
215  }
216  }
xmlEndTag(string $tag)
Writes an endtag.
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
xmlStartTag(string $tag, ?array $attrs=null, bool $empty=false, bool $encode=true, bool $escape=true)
Writes a starttag.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ __buildTutor()

ilCourseXMLWriter::__buildTutor ( )

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

References $id, ILIAS\Repository\access(), ilOrgUnitOperation\OP_MANAGE_MEMBERS, ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().

Referenced by start().

158  : void
159  {
160  $tutors = $this->course_obj->getMembersObject()->getTutors();
161  $tutors = $this->access->filterUserIdsByRbacOrPositionOfCurrentUser(
162  'manage_members',
164  $this->course_obj->getRefId(),
165  $tutors
166  );
167  foreach ($tutors as $id) {
168  $attr['id'] = 'il_' . $this->setting->get('inst_id') . '_usr_' . $id;
169  $attr['notification'] = ($this->course_obj->getMembersObject()->isNotificationEnabled($id)) ? 'Yes' : 'No';
170  $attr['passed'] = $this->course_obj->getMembersObject()->hasPassed($id) ? 'Yes' : 'No';
171  $attr['contact'] = $this->course_obj->getMembersObject()->isContact($id) ? 'Yes' : 'No';
172 
173  $this->xmlStartTag('Tutor', $attr);
174  $this->xmlEndTag('Tutor');
175  }
176  }
xmlEndTag(string $tag)
Writes an endtag.
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
xmlStartTag(string $tag, ?array $attrs=null, bool $empty=false, bool $encode=true, bool $escape=true)
Writes a starttag.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ __buildWaitingList()

ilCourseXMLWriter::__buildWaitingList ( )

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

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

Referenced by start().

218  : void
219  {
220  $waiting_list = new ilCourseWaitingList($this->course_obj->getId());
221  $wait = $waiting_list->getAllUsers();
222  foreach ($wait as $data) {
223  $is_accessible = $GLOBALS['DIC']->access()->filterUserIdsByRbacOrPositionOfCurrentUser(
224  'manage_members',
226  $this->course_obj->getRefId(),
227  [$data['usr_id']]
228  );
229  if (count($is_accessible) === 0) {
230  continue;
231  }
232 
233  $attr['id'] = 'il_' . $this->setting->get('inst_id') . '_usr_' . $data['usr_id'];
234  $attr['position'] = $data['position'];
235  $attr['subscriptionTime'] = $data['time'];
236 
237  $this->xmlStartTag('WaitingList', $attr);
238  $this->xmlEndTag('WaitingList');
239  }
240  }
xmlEndTag(string $tag)
Writes an endtag.
getAllUsers()
get all users on waiting list public
$GLOBALS["DIC"]
Definition: wac.php:53
xmlStartTag(string $tag, ?array $attrs=null, bool $empty=false, bool $encode=true, bool $escape=true)
Writes a starttag.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getMode()

ilCourseXMLWriter::getMode ( )

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

References $mode.

Referenced by start().

63  : int
64  {
65  return $this->mode;
66  }
+ Here is the caller graph for this function:

◆ getXML()

ilCourseXMLWriter::getXML ( )

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

References ilXmlWriter\xmlDumpMem().

96  : string
97  {
98  return $this->xmlDumpMem(true);
99  }
xmlDumpMem(bool $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 101 of file class.ilCourseXMLWriter.php.

102  {
103  if ($a_tag == "Identifier" && $a_param == "Entry") {
104  $a_value = "il_" . $this->setting->get('inst_id') . "_crs_" . $this->course_obj->getId();
105  }
106 
107  return $a_value;
108  }

◆ setAttachUsers()

ilCourseXMLWriter::setAttachUsers (   $value)

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

373  : void
374  {
375  $this->attach_users = (bool) $value;
376  }

◆ setMode()

ilCourseXMLWriter::setMode ( int  $a_mode)

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

58  : void
59  {
60  $this->mode = $a_mode;
61  }

◆ start()

ilCourseXMLWriter::start ( )

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

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

68  : void
69  {
70  if ($this->getMode() == self::MODE_SOAP) {
71  $this->__buildHeader();
72  $this->__buildCourseStart();
73  $this->__buildMetaData();
74  $this->__buildAdvancedMetaData();
75  if ($this->attach_users) {
76  $this->__buildAdmin();
77  $this->__buildTutor();
78  $this->__buildMember();
79  }
80  $this->__buildSubscriber();
81  $this->__buildWaitingList();
82 
83  $this->__buildSetting();
84  ilContainerSortingSettings::_exportContainerSortingSettings($this, $this->course_obj->getId());
85  ilContainer::_exportContainerSettings($this, $this->course_obj->getId());
86  $this->__buildFooter();
87  } elseif ($this->getMode() == self::MODE_EXPORT) {
88  $this->__buildCourseStart();
89  $this->__buildSetting();
90  ilContainerSortingSettings::_exportContainerSortingSettings($this, $this->course_obj->getId());
91  ilContainer::_exportContainerSettings($this, $this->course_obj->getId());
92  $this->__buildFooter();
93  }
94  }
static _exportContainerSortingSettings(ilXmlWriter $xml, int $obj_id)
sorting XML-export for all container objects
static _exportContainerSettings(ilXmlWriter $a_xml, int $a_obj_id)
+ Here is the call graph for this function:

Field Documentation

◆ $access

ilAccessHandler ilCourseXMLWriter::$access
protected

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

◆ $attach_users

bool ilCourseXMLWriter::$attach_users = true
private

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

◆ $course_obj

ilObjCourse ilCourseXMLWriter::$course_obj
private

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

Referenced by __construct().

◆ $mode

int ilCourseXMLWriter::$mode = self::MODE_SOAP
private

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

Referenced by getMode().

◆ $setting

ilSetting ilCourseXMLWriter::$setting
protected

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

◆ $xml

string ilCourseXMLWriter::$xml = ''
private

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

◆ EXPORT_VERSION

const ilCourseXMLWriter::EXPORT_VERSION = '8.0'

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

◆ MODE_EXPORT

const ilCourseXMLWriter::MODE_EXPORT = 2

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

Referenced by ilCourseExporter\getXmlRepresentation().

◆ MODE_SOAP

const ilCourseXMLWriter::MODE_SOAP = 1

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


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