ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilGroupXMLParser Class Reference

Group Import Parser. More...

+ Inheritance diagram for ilGroupXMLParser:
+ Collaboration diagram for ilGroupXMLParser:

Public Member Functions

 __construct ($a_xml, $a_parent_id)
 Constructor. More...
 
 __pushParentId ($a_id)
 
 __popParentId ()
 
 __getParentId ()
 
 setHandlers ($a_xml_parser)
 set event handler should be overwritten by inherited class @access private More...
 
 startParsing ()
 start the parser More...
 
 handlerBeginTag ($a_xml_parser, $a_name, $a_attribs)
 handler for begin of element More...
 
 handlerEndTag ($a_xml_parser, $a_name)
 
 handlerCharacterData ($a_xml_parser, $a_data)
 handler for character data More...
 
 __save ()
 
 __assignMembers ()
 
 __initGroupObject ()
 
 __parseId ($a_id)
 
 setMode ($mode)
 
 setGroup (&$grp)
 
 __initContainerSorting ($a_attribs, $a_group_id)
 
- Public Member Functions inherited from ilSaxParser
 __construct ($a_xml_file='', $throwException=false)
 Constructor setup ILIAS global object @access public. More...
 
 setXMLContent ($a_xml_content)
 
 getXMLContent ()
 
 getInputType ()
 
 startParsing ()
 stores xml data in array More...
 
 createParser ()
 create parser More...
 
 setOptions ($a_xml_parser)
 set parser options More...
 
 setHandlers ($a_xml_parser)
 set event handler should be overwritten by inherited class @access private More...
 
 openXMLFile ()
 open xml file More...
 
 parse ($a_xml_parser, $a_fp=null)
 parse xml file More...
 
 freeParser ($a_xml_parser)
 free xml parser handle More...
 
 setThrowException ($throwException)
 set error handling More...
 
- Public Member Functions inherited from PEAR
 __construct ($error_class=null)
 Constructor. More...
 
 _PEAR ()
 Destructor (the emulated type of...). More...
 
 registerShutdownFunc ($func, $args=array())
 Use this function to register a shutdown method for static classes. More...
 
 isError ($data, $code=null)
 Tell whether a value is a PEAR error. More...
 
 expectError ($code=' *')
 This method is used to tell which errors you expect to get. More...
 
 popExpect ()
 This method pops one element off the expected error codes stack. More...
 
 _checkDelExpect ($error_code)
 This method checks unsets an error code if available. More...
 
 delExpect ($error_code)
 This method deletes all occurences of the specified element from the expected error codes stack. More...
 
raiseError ($message=null, $code=null, $mode=null, $options=null, $userinfo=null, $error_class=null, $skipmsg=false)
 This method is a wrapper that returns an instance of the configured error class with this object's default error handling applied. More...
 
throwError ($message=null, $code=null, $userinfo=null)
 Simpler form of raiseError with fewer options. More...
 
 staticPushErrorHandling ($mode, $options=null)
 
 staticPopErrorHandling ()
 
 pushErrorHandling ($mode, $options=null)
 Push a new error handler on top of the error handler options stack. More...
 
 popErrorHandling ()
 Pop the last error handler used. More...
 
 loadExtension ($ext)
 OS independant PHP extension load. More...
 

Data Fields

 $group_data
 
 $group_obj
 
 $parent
 
 $counter
 
 $mode
 
 $grp
 
- Data Fields inherited from ilSaxParser
 $input_type = null
 
 $xml_content = ''
 
 $ilias
 
 $lng
 
 $xml_file
 
 $throwException = false
 
- Data Fields inherited from PEAR
 $_debug = false
 
 $_default_error_mode = null
 
 $_default_error_options = null
 
 $_default_error_handler = ''
 
 $_error_class = 'PEAR_Error'
 
 $_expected_errors = array()
 

Static Public Attributes

static $CREATE = 1
 
static $UPDATE = 2
 

Protected Attributes

 $log
 

Private Attributes

 $participants = null
 
 $current_container_setting
 
 $sort = null
 

Additional Inherited Members

- Static Public Member Functions inherited from PEAR
static & getStaticProperty ($class, $var)
 If you have a class that's mostly/entirely static, and you need static properties, you can use this method to simulate them. More...
 
static setErrorHandling ($mode=null, $options=null)
 Sets how errors generated by this object should be handled. More...
 
- Protected Member Functions inherited from ilSaxParser
 handleError ($message, $code)
 use given error handler to handle error message or internal ilias error message handle More...
 

Detailed Description

Group Import Parser.

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
Id
class.ilGroupXMLParser.php 15678 2008-01-06 20:40:55Z akill

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

Constructor & Destructor Documentation

◆ __construct()

ilGroupXMLParser::__construct (   $a_xml,
  $a_parent_id 
)

Constructor.

Parameters
string$a_xml_filexml file

@access public

Reimplemented from ilSaxParser.

Definition at line 70 of file class.ilGroupXMLParser.php.

71 {
72 define('EXPORT_VERSION', 2);
73
74 parent::__construct(null);
75
76 $this->mode = ilGroupXMLParser::$CREATE;
77 $this->grp = null;
78
79 $this->log = $GLOBALS['DIC']->logger()->grp();
80
81 $this->setXMLContent($a_xml);
82
83 // SET MEMBER VARIABLES
84 $this->__pushParentId($a_parent_id);
85 }
setXMLContent($a_xml_content)
$GLOBALS['loaded']
Global hash that tracks already loaded includes.

References $CREATE, $GLOBALS, __pushParentId(), and ilSaxParser\setXMLContent().

+ Here is the call graph for this function:

Member Function Documentation

◆ __assignMembers()

ilGroupXMLParser::__assignMembers ( )

Definition at line 452 of file class.ilGroupXMLParser.php.

453 {
454 global $ilias,$ilUser, $ilSetting;
455
456 $this->participants = new ilGroupParticipants($this->group_obj->getId());
457 $this->participants->add($ilUser->getId(), IL_GRP_ADMIN);
458 $this->participants->updateNotification($ilUser->getId(), $ilSetting->get('mail_grp_admin_notification', true));
459
460 // attach ADMINs
461 if (isset($this->group_data["admin"]["attach"]) && count($this->group_data["admin"]["attach"])) {
462 foreach ($this->group_data["admin"]["attach"] as $user) {
463 if ($id_data = $this->__parseId($user)) {
464 if ($id_data['local'] or $id_data['imported']) {
465 $this->participants->add($id_data['usr_id'], IL_GRP_ADMIN);
466 if (in_array($user, (array) $this->group_data['notifications'])) {
467 $this->participants->updateNotification($id_data['usr_id'], true);
468 }
469 }
470 }
471 }
472 }
473 // detach ADMINs
474 if (isset($this->group_data["admin"]["detach"]) && count($this->group_data["admin"]["detach"])) {
475 foreach ($this->group_data["admin"]["detach"] as $user) {
476 if ($id_data = $this->__parseId($user)) {
477 if ($id_data['local'] or $id_data['imported']) {
478 if ($this->participants->isAssigned($id_data['usr_id'])) {
479 $this->participants->delete($id_data['usr_id']);
480 }
481 }
482 }
483 }
484 }
485 // MEMBER
486 if (isset($this->group_data["member"]["attach"]) && count($this->group_data["member"]["attach"])) {
487 foreach ($this->group_data["member"]["attach"] as $user) {
488 if ($id_data = $this->__parseId($user)) {
489 if ($id_data['local'] or $id_data['imported']) {
490 $this->participants->add($id_data['usr_id'], IL_GRP_MEMBER);
491 }
492 }
493 }
494 }
495
496 if (isset($this->group_data["member"]["detach"]) && count($this->group_data["member"]["detach"])) {
497 foreach ($this->group_data["member"]["detach"] as $user) {
498 if ($id_data = $this->__parseId($user)) {
499 if ($id_data['local'] or $id_data['imported']) {
500 if ($this->participants->isAssigned($id_data['usr_id'])) {
501 $this->participants->delete($id_data['usr_id']);
502 }
503 }
504 }
505 }
506 }
507 return true;
508 }
const IL_GRP_MEMBER
const IL_GRP_ADMIN
global $ilSetting
Definition: privfeed.php:17
$ilUser
Definition: imgupload.php:18

References ilSaxParser\$ilias, $ilSetting, $ilUser, __parseId(), IL_GRP_ADMIN, and IL_GRP_MEMBER.

Referenced by __save().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ __getParentId()

ilGroupXMLParser::__getParentId ( )

Definition at line 97 of file class.ilGroupXMLParser.php.

98 {
99 return $this->parent[count($this->parent) - 1];
100 }

Referenced by __save().

+ Here is the caller graph for this function:

◆ __initContainerSorting()

ilGroupXMLParser::__initContainerSorting (   $a_attribs,
  $a_group_id 
)

Definition at line 563 of file class.ilGroupXMLParser.php.

564 {
565 include_once './Services/Container/classes/class.ilContainerSortingSettings.php';
567 }
static _importContainerSortingSettings($attibs, $obj_id)
sorting import for all container objects

References ilContainerSortingSettings\_importContainerSortingSettings().

Referenced by __save(), and handlerBeginTag().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ __initGroupObject()

ilGroupXMLParser::__initGroupObject ( )

Definition at line 510 of file class.ilGroupXMLParser.php.

511 {
512 include_once "./Modules/Group/classes/class.ilObjGroup.php";
513
514 if ($this->mode == ilGroupXMLParser::$CREATE) {
515 $this->group_obj = new ilObjGroup();
516 } elseif ($this->mode == ilGroupXMLParser::$UPDATE) {
517 $this->group_obj = $this->grp;
518 }
519
520 return true;
521 }
Class ilObjGroup.

References $CREATE, $grp, and $UPDATE.

Referenced by __save(), and handlerEndTag().

+ Here is the caller graph for this function:

◆ __parseId()

ilGroupXMLParser::__parseId (   $a_id)

Definition at line 523 of file class.ilGroupXMLParser.php.

524 {
525 global $ilias;
526
527 $fields = explode('_', $a_id);
528
529 if (!is_array($fields) or
530 $fields[0] != 'il' or
531 !is_numeric($fields[1]) or
532 $fields[2] != 'usr' or
533 !is_numeric($fields[3])) {
534 return false;
535 }
536 if ($id = ilObjUser::_getImportedUserId($a_id)) {
537 return array('imported' => true,
538 'local' => false,
539 'usr_id' => $id);
540 }
541 if (($fields[1] == $ilias->getSetting('inst_id', 0)) and ($user = ilObjUser::_lookupName($fields[3]))) {
542 if (strlen($user['login'])) {
543 return array('imported' => false,
544 'local' => true,
545 'usr_id' => $fields[3]);
546 }
547 }
548 $GLOBALS['DIC']->logger()->grp()->warning('Parsing id failed: ' . $a_id);
549 return false;
550 }
static _getImportedUserId($i2_id)
static _lookupName($a_user_id)
lookup user name
if(!array_key_exists('StateId', $_REQUEST)) $id

References $GLOBALS, $id, ilSaxParser\$ilias, ilObjUser\_getImportedUserId(), and ilObjUser\_lookupName().

Referenced by __assignMembers().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ __popParentId()

ilGroupXMLParser::__popParentId ( )

Definition at line 91 of file class.ilGroupXMLParser.php.

92 {
93 array_pop($this->parent);
94
95 return true;
96 }

◆ __pushParentId()

ilGroupXMLParser::__pushParentId (   $a_id)

Definition at line 87 of file class.ilGroupXMLParser.php.

88 {
89 $this->parent[] = $a_id;
90 }

Referenced by __construct(), and __save().

+ Here is the caller graph for this function:

◆ __save()

ilGroupXMLParser::__save ( )

mode can be create or update

Definition at line 330 of file class.ilGroupXMLParser.php.

331 {
332 if ($this->group_imported) {
333 return true;
334 }
335
336 $this->__initGroupObject();
337
338 $this->group_obj->setImportId($this->group_data["id"]);
339 $this->group_obj->setTitle($this->group_data["title"]);
340 $this->group_obj->setDescription($this->group_data["description"]);
341 $this->group_obj->setInformation((string) $this->group_data['information']);
342
343 if (
344 $this->group_data['period_start'] &&
345 $this->group_data['period_end']) {
346 $this->group_obj->setStart(new ilDate($this->group_data['period_start'], IL_CAL_UNIX));
347 $this->group_obj->setEnd(new ilDate($this->group_data['period_end'], IL_CAL_UNIX));
348 }
349
350 $ownerChanged = false;
351 if (isset($this->group_data["owner"])) {
352 $owner = $this->group_data["owner"];
353 if (!is_numeric($owner)) {
354 $owner = ilUtil::__extractId($owner, IL_INST_ID);
355 }
356 if (is_numeric($owner) && $owner > 0) {
357 $this->group_obj->setOwner($owner);
358 $ownerChanged = true;
359 }
360 }
361
365 if ($this->mode == ilGroupXMLParser::$CREATE) {
366 $this->group_obj->create();
367 $this->group_obj->createReference();
368 $this->group_obj->putInTree($this->__getParentId());
369 $this->group_obj->setPermissions($this->__getParentId());
370 if (
371 array_key_exists('type', $this->group_data) &&
372 $this->group_data['type'] == 'closed'
373 ) {
374 $this->group_obj->updateGroupType(GRP_TYPE_CLOSED);
375 }
376 } else {
377 if (
378 array_key_exists('type', $this->group_data) &&
379 $this->group_data['type'] == 'closed'
380 ) {
381 $this->group_obj->updateGroupType(GRP_TYPE_CLOSED);
382 } elseif (
383 array_key_exists('type', $this->group_data) &&
384 $this->group_data['type'] == 'open'
385 ) {
386 $this->group_obj->updateGroupType(GRP_TYPE_OPEN);
387 }
388 }
389 // SET GROUP SPECIFIC DATA
390 switch ($this->group_data['registration_type']) {
391 case 'direct':
392 case 'enabled':
394 break;
395
396 case 'disabled':
398 break;
399
400 case 'confirmation':
402 break;
403
404 case 'password':
406 break;
407
408 default:
410 }
411 $this->group_obj->setRegistrationType($flag);
412
413 $end = new ilDateTime(time(), IL_CAL_UNIX);
414 if ($this->group_data['expiration_end']) {
415 $end = new ilDateTime($this->group_data['expiration_end'], IL_CAL_UNIX);
416 }
417
418 $start = clone $end;
419 if ($this->group_data['expiration_start']) {
420 $start = new ilDateTime($this->group_data['expiration_start'], IL_CAL_UNIX);
421 }
422
423 $this->group_obj->setRegistrationStart($start);
424 $this->group_obj->setRegistrationEnd($end);
425 $this->group_obj->setPassword($this->group_data['password']);
426 $this->group_obj->enableUnlimitedRegistration(!isset($this->group_data['expiration_end']));
427 $this->group_obj->enableMembershipLimitation($this->group_data['max_members_enabled']);
428 $this->group_obj->setMaxMembers($this->group_data['max_members'] ? $this->group_data['max_members'] : 0);
429 $this->group_obj->enableWaitingList($this->group_data['waiting_list_enabled']);
430
431 $this->group_obj->setWaitingListAutoFill($this->group_data['auto_wait']);
432 $this->group_obj->setCancellationEnd($this->group_data['cancel_end']);
433 $this->group_obj->setMinMembers($this->group_data['min_members']);
434 $this->group_obj->setShowMembers($this->group_data['show_members'] ? $this->group_data['show_members'] : 0);
435 $this->group_obj->setMailToMembersType((int) $this->group_data['mail_members_type']);
436 $this->group_obj->update();
437
438 // ASSIGN ADMINS/MEMBERS
439 $this->__assignMembers();
440
441 $this->__pushParentId($this->group_obj->getRefId());
442
443 if ($this->sort) {
444 $this->__initContainerSorting($this->sort, $this->group_obj->getId());
445 }
446
447 $this->group_imported = true;
448
449 return true;
450 }
const IL_CAL_UNIX
const GRP_REGISTRATION_DIRECT
const GRP_REGISTRATION_PASSWORD
const GRP_TYPE_OPEN
const GRP_TYPE_CLOSED
const GRP_REGISTRATION_DEACTIVATED
const GRP_REGISTRATION_REQUEST
@classDescription Date and time handling
Class for single dates.
__initContainerSorting($a_attribs, $a_group_id)
static __extractId($ilias_id, $inst_id)
extract ref id from role title, e.g.
$end
Definition: saml1-acs.php:18

References $CREATE, $end, __assignMembers(), ilUtil\__extractId(), __getParentId(), __initContainerSorting(), __initGroupObject(), __pushParentId(), GRP_REGISTRATION_DEACTIVATED, GRP_REGISTRATION_DIRECT, GRP_REGISTRATION_PASSWORD, GRP_REGISTRATION_REQUEST, GRP_TYPE_CLOSED, GRP_TYPE_OPEN, and IL_CAL_UNIX.

Referenced by handlerEndTag().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ handlerBeginTag()

ilGroupXMLParser::handlerBeginTag (   $a_xml_parser,
  $a_name,
  $a_attribs 
)

handler for begin of element

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

133 {
134 global $ilErr;
135
136 switch ($a_name) {
137 // GROUP DATA
138 case "group":
139 $this->group_data["admin"] = array();
140 $this->group_data["member"] = array();
141
142 $this->group_data["type"] = $a_attribs["type"];
143 $this->group_data["id"] = $a_attribs["id"];
144
145 break;
146
147 case 'title':
148 break;
149
150 case "owner":
151 $this->group_data["owner"] = $a_attribs["id"];
152 break;
153
154 case 'registration':
155 $this->group_data['registration_type'] = $a_attribs['type'];
156 $this->group_data['waiting_list_enabled'] = $a_attribs['waitingList'] == 'Yes' ? true : false;
157 break;
158
159 case 'period':
160 $this->in_period = true;
161 break;
162
163 case 'maxMembers':
164 $this->group_data['max_members_enabled'] = $a_attribs['enabled'] == 'Yes' ? true : false;
165 break;
166
167 case "admin":
168 if (!isset($a_attribs['action']) || $a_attribs['action'] == "Attach") {
169 $this->group_data["admin"]["attach"][] = $a_attribs["id"];
170 } elseif (isset($a_attribs['action']) || $a_attribs['action'] == "Detach") {
171 $this->group_data["admin"]["detach"][] = $a_attribs["id"];
172 }
173
174 if (isset($a_attribs['notification']) and $a_attribs['notification'] == 'Yes') {
175 $this->group_data['notifications'][] = $a_attribs['id'];
176 }
177
178 break;
179
180 case "member":
181 if (!isset($a_attribs['action']) || $a_attribs['action'] == "Attach") {
182 $GLOBALS['DIC']->logger()->grp()->debug('New member with id ' . $a_attribs['id']);
183 $this->group_data["member"]["attach"][] = $a_attribs["id"];
184 } elseif (isset($a_attribs['action']) || $a_attribs['action'] == "Detach") {
185 $GLOBALS['DIC']->logger()->grp()->debug('Deprecated member with id ' . $a_attribs['id']);
186 $this->group_data["member"]["detach"][] = $a_attribs["id"];
187 }
188
189 break;
190
191 case 'ContainerSetting':
192 $this->current_container_setting = $a_attribs['id'];
193 break;
194
195 case 'Sort':
196
197 if ($this->group_imported) {
198 $this->__initContainerSorting($a_attribs, $this->group_obj->getId());
199 } else {
200 $this->sort = $a_attribs;
201 }
202
203 break;
204
205 case 'WaitingListAutoFill':
206 case 'CancellationEnd':
207 case 'minMembers':
208 case 'showMembers':
209 case 'mailMembersType':
210 break;
211 }
212 }
global $ilErr
Definition: raiseError.php:16

References $GLOBALS, $ilErr, and __initContainerSorting().

+ Here is the call graph for this function:

◆ handlerCharacterData()

ilGroupXMLParser::handlerCharacterData (   $a_xml_parser,
  $a_data 
)

handler for character data

Definition at line 315 of file class.ilGroupXMLParser.php.

316 {
317 // i don't know why this is necessary, but
318 // the parser seems to convert "&gt;" to ">" and "&lt;" to "<"
319 // in character data, but we don't want that, because it's the
320 // way we mask user html in our content, so we convert back...
321 $a_data = str_replace("<", "&lt;", $a_data);
322 $a_data = str_replace(">", "&gt;", $a_data);
323
324 if (!empty($a_data)) {
325 $this->cdata .= $a_data;
326 }
327 }

◆ handlerEndTag()

ilGroupXMLParser::handlerEndTag (   $a_xml_parser,
  $a_name 
)

Definition at line 215 of file class.ilGroupXMLParser.php.

216 {
217 switch ($a_name) {
218 case "title":
219 $this->group_data["title"] = trim($this->cdata);
220 break;
221
222 case "description":
223 $this->group_data["description"] = trim($this->cdata);
224 break;
225
226 case 'information':
227 $this->group_data['information'] = trim($this->cdata);
228 break;
229
230 case 'password':
231 $this->group_data['password'] = trim($this->cdata);
232 break;
233
234 case 'maxMembers':
235 $this->group_data['max_members'] = trim($this->cdata);
236 break;
237
238 case 'expiration':
239 $this->group_data['expiration_end'] = trim($this->cdata);
240 break;
241
242 case 'start':
243 if ($this->in_period) {
244 $this->group_data['period_start'] = trim($this->cdata);
245 } else {
246 $this->group_data['expiration_start'] = trim($this->cdata);
247 }
248 break;
249
250 case 'end':
251 if ($this->in_period) {
252 $this->group_data['period_end'] = trim($this->cdata);
253 } else {
254 $this->group_data['expiration_end'] = trim($this->cdata);
255 }
256 break;
257
258 case 'period':
259 $this->in_period = false;
260 break;
261
262 case "group":
263 // NOW SAVE THE NEW OBJECT (if it hasn't been imported)
264 $this->__save();
265 break;
266
267 case 'ContainerSetting':
268 if ($this->current_container_setting) {
269 // #17357
270 if (!($this->group_obj instanceof ilObjGroup)) {
271 $this->__initGroupObject();
272 }
274 $this->group_obj->getId(),
275 $this->current_container_setting,
276 $this->cdata
277 );
278 }
279 break;
280
281 case 'WaitingListAutoFill':
282 $this->group_data['auto_wait'] = trim($this->cdata);
283 break;
284
285 case 'CancellationEnd':
286 if ((int) $this->cdata) {
287 $this->group_data['cancel_end'] = new ilDate((int) $this->cdata, IL_CAL_UNIX);
288 }
289 break;
290
291 case 'minMembers':
292 if ((int) $this->cdata) {
293 $this->group_data['min_members'] = (int) $this->cdata;
294 }
295 break;
296
297 case 'showMembers':
298 if ((int) $this->cdata) {
299 $this->group_data['show_members'] = (int) $this->cdata;
300 }
301 break;
302
303 case 'mailMembersType':
304 $this->group_data['mail_members_type'] = (int) $this->cdata;
305 break;
306
307 }
308 $this->cdata = '';
309 }
static _writeContainerSetting($a_id, $a_keyword, $a_value)

References __initGroupObject(), __save(), ilContainer\_writeContainerSetting(), and IL_CAL_UNIX.

+ Here is the call graph for this function:

◆ setGroup()

ilGroupXMLParser::setGroup ( $grp)

Definition at line 558 of file class.ilGroupXMLParser.php.

559 {
560 $this->grp = $grp;
561 }

References $grp.

◆ setHandlers()

ilGroupXMLParser::setHandlers (   $a_xml_parser)

set event handler should be overwritten by inherited class @access private

Reimplemented from ilSaxParser.

Definition at line 107 of file class.ilGroupXMLParser.php.

108 {
109 xml_set_object($a_xml_parser, $this);
110 xml_set_element_handler($a_xml_parser, 'handlerBeginTag', 'handlerEndTag');
111 xml_set_character_data_handler($a_xml_parser, 'handlerCharacterData');
112 }

◆ setMode()

ilGroupXMLParser::setMode (   $mode)

Definition at line 553 of file class.ilGroupXMLParser.php.

554 {
555 $this->mode = $mode;
556 }

References $mode.

◆ startParsing()

ilGroupXMLParser::startParsing ( )

start the parser

Reimplemented from ilSaxParser.

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

118 {
119 parent::startParsing();
120
121 if ($this->mode == ilGroupXMLParser::$CREATE) {
122 return is_object($this->group_obj) ? $this->group_obj->getRefId() : false;
123 } else {
124 return is_object($this->group_obj) ? $this->group_obj->update() : false;
125 }
126 }

References $CREATE.

Field Documentation

◆ $counter

ilGroupXMLParser::$counter

Definition at line 57 of file class.ilGroupXMLParser.php.

◆ $CREATE

ilGroupXMLParser::$CREATE = 1
static

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

Referenced by __construct(), __initGroupObject(), __save(), and startParsing().

◆ $current_container_setting

ilGroupXMLParser::$current_container_setting
private

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

◆ $group_data

ilGroupXMLParser::$group_data

Definition at line 53 of file class.ilGroupXMLParser.php.

◆ $group_obj

ilGroupXMLParser::$group_obj

Definition at line 54 of file class.ilGroupXMLParser.php.

◆ $grp

ilGroupXMLParser::$grp

Definition at line 60 of file class.ilGroupXMLParser.php.

Referenced by __initGroupObject(), and setGroup().

◆ $log

ilGroupXMLParser::$log
protected

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

◆ $mode

ilGroupXMLParser::$mode

Definition at line 59 of file class.ilGroupXMLParser.php.

Referenced by setMode().

◆ $parent

ilGroupXMLParser::$parent

Definition at line 56 of file class.ilGroupXMLParser.php.

◆ $participants

ilGroupXMLParser::$participants = null
private

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

◆ $sort

ilGroupXMLParser::$sort = null
private

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

◆ $UPDATE

ilGroupXMLParser::$UPDATE = 2
static

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