ILIAS
release_8 Revision v8.19
|
Group Import Parser. More...
Public Member Functions | |
__construct (ilObjGroup $group, string $a_xml, int $a_parent_id) | |
pushParentId (int $a_id) | |
popParentId () | |
getParentId () | |
setHandlers ($a_xml_parser) | |
startParsing () | |
getObjectRefId () | |
handlerBeginTag ($a_xml_parser, string $a_name, array $a_attribs) | |
handlerEndTag ($a_xml_parser, string $a_name) | |
End element handler. More... | |
handlerCharacterData ($a_xml_parser, string $a_data) | |
save () | |
assignMembers () | |
parseId (string $a_id) | |
setMode (int $mode) | |
initContainerSorting (array $a_attribs, int $a_group_id) | |
![]() | |
__construct (?string $a_xml_file='') | |
enableMDParsing (bool $a_status) | |
getMDParsingStatus () | |
setMDObject (ilMD $md) | |
getMDObject () | |
inMetaData () | |
setHandlers ($a_xml_parser) | |
Set event handlers. More... | |
handlerBeginTag ($a_xml_parser, string $a_name, array $a_attribs) | |
handlerEndTag ($a_xml_parser, string $a_name) | |
handlerCharacterData ($a_xml_parser, string $a_data) | |
__getCharacterData () | |
__pushParent (object $md_obj) | |
__popParent () | |
__getParent () | |
![]() | |
__construct (?string $path_to_file='', ?bool $throw_exception=false) | |
setXMLContent (string $a_xml_content) | |
getXMLContent () | |
getInputType () | |
startParsing () | |
stores xml data in array More... | |
createParser () | |
setHandlers ($a_xml_parser) | |
parse ($a_xml_parser, $a_fp=null) | |
Static Public Attributes | |
static int | $CREATE = 1 |
static int | $UPDATE = 2 |
Private Attributes | |
$after_parsing_status = null | |
ilLogger | $log |
ilObjGroup | $group_obj |
bool | $lom_parsing_active = false |
ilGroupParticipants | $participants = null |
string | $current_container_setting = '' |
array | $sort = null |
array | $group_data = [] |
bool | $group_imported = false |
bool | $in_period = false |
string | $cdata = '' |
Additional Inherited Members | |
![]() | |
string | $xml_file |
bool | $throw_exception = false |
![]() | |
trimAndStripAttribs (array $attribs) | |
trimAndStrip (string $input) | |
![]() | |
openXMLFile () | |
handleError (string $message) | |
setThrowException (bool $throw_exception) | |
Group Import Parser.
Definition at line 27 of file class.ilGroupXMLParser.php.
ilGroupXMLParser::__construct | ( | ilObjGroup | $group, |
string | $a_xml, | ||
int | $a_parent_id | ||
) |
Definition at line 69 of file class.ilGroupXMLParser.php.
References $CREATE, $DIC, ILIAS\GlobalScreen\Provider\__construct(), pushParentId(), ilMDSaxParser\setMDObject(), ILIAS\Repository\settings(), ilSaxParser\setXMLContent(), and ILIAS\Repository\user().
ilGroupXMLParser::assignMembers | ( | ) |
Definition at line 590 of file class.ilGroupXMLParser.php.
References ilGroupParticipants\add(), ilParticipants\IL_GRP_ADMIN, ilParticipants\IL_GRP_MEMBER, parseId(), ILIAS\Repository\settings(), and ILIAS\Repository\user().
Referenced by save().
ilGroupXMLParser::getObjectRefId | ( | ) |
Definition at line 158 of file class.ilGroupXMLParser.php.
References $after_parsing_status.
ilGroupXMLParser::getParentId | ( | ) |
Definition at line 105 of file class.ilGroupXMLParser.php.
Referenced by save().
ilGroupXMLParser::handlerBeginTag | ( | $a_xml_parser, | |
string | $a_name, | ||
array | $a_attribs | ||
) |
mixed | null | $a_attribs |
Implements ilSaxSubsetParser.
Definition at line 168 of file class.ilGroupXMLParser.php.
References $DIC, $GLOBALS, $ilErr, initContainerSorting(), ILIAS\Repository\int(), and ilMDSaxParser\trimAndStripAttribs().
ilGroupXMLParser::handlerCharacterData | ( | $a_xml_parser, | |
string | $a_data | ||
) |
Implements ilSaxSubsetParser.
Definition at line 406 of file class.ilGroupXMLParser.php.
ilGroupXMLParser::handlerEndTag | ( | $a_xml_parser, | |
string | $a_name | ||
) |
End element handler.
resource | $a_xml_parser | xml parser |
Implements ilSaxSubsetParser.
Definition at line 289 of file class.ilGroupXMLParser.php.
References $cdata, $current_container_setting, ilContainer\_writeContainerSetting(), IL_CAL_UNIX, ILIAS\Repository\int(), save(), and ilMDSaxParser\trimAndStrip().
ilGroupXMLParser::initContainerSorting | ( | array | $a_attribs, |
int | $a_group_id | ||
) |
Definition at line 678 of file class.ilGroupXMLParser.php.
References ilContainerSortingSettings\_importContainerSortingSettings().
Referenced by handlerBeginTag(), and save().
ilGroupXMLParser::parseId | ( | string | $a_id | ) |
Definition at line 645 of file class.ilGroupXMLParser.php.
References $id, ilObjUser\_getImportedUserId(), ilObjUser\_lookupName(), and ILIAS\Repository\settings().
Referenced by assignMembers().
ilGroupXMLParser::popParentId | ( | ) |
Definition at line 100 of file class.ilGroupXMLParser.php.
ilGroupXMLParser::pushParentId | ( | int | $a_id | ) |
Definition at line 96 of file class.ilGroupXMLParser.php.
Referenced by __construct(), and save().
ilGroupXMLParser::save | ( | ) |
mode can be create or update
Definition at line 420 of file class.ilGroupXMLParser.php.
References $CREATE, Vendor\Package\$e, ilUtil\__extractId(), assignMembers(), getParentId(), ilGroupConstants\GRP_REGISTRATION_DEACTIVATED, ilGroupConstants\GRP_REGISTRATION_DIRECT, ilGroupConstants\GRP_REGISTRATION_PASSWORD, ilGroupConstants\GRP_REGISTRATION_REQUEST, ilGroupConstants\GRP_TYPE_CLOSED, ilGroupConstants\GRP_TYPE_OPEN, IL_CAL_UNIX, IL_INST_ID, initContainerSorting(), and pushParentId().
Referenced by handlerEndTag().
ilGroupXMLParser::setHandlers | ( | $a_xml_parser | ) |
Definition at line 114 of file class.ilGroupXMLParser.php.
ilGroupXMLParser::setMode | ( | int | $mode | ) |
ilGroupXMLParser::startParsing | ( | ) |
Definition at line 134 of file class.ilGroupXMLParser.php.
References $CREATE, and ilMDSaxParser\getMDObject().
|
protected |
Definition at line 51 of file class.ilGroupXMLParser.php.
|
private |
Definition at line 32 of file class.ilGroupXMLParser.php.
Referenced by getObjectRefId().
|
private |
Definition at line 60 of file class.ilGroupXMLParser.php.
Referenced by handlerEndTag().
|
protected |
Definition at line 64 of file class.ilGroupXMLParser.php.
|
static |
Definition at line 29 of file class.ilGroupXMLParser.php.
Referenced by __construct(), save(), and startParsing().
|
private |
Definition at line 54 of file class.ilGroupXMLParser.php.
Referenced by handlerEndTag().
|
private |
Definition at line 57 of file class.ilGroupXMLParser.php.
|
private |
Definition at line 58 of file class.ilGroupXMLParser.php.
|
private |
Definition at line 38 of file class.ilGroupXMLParser.php.
|
private |
Definition at line 59 of file class.ilGroupXMLParser.php.
|
private |
Definition at line 37 of file class.ilGroupXMLParser.php.
|
private |
Definition at line 47 of file class.ilGroupXMLParser.php.
|
protected |
Definition at line 66 of file class.ilGroupXMLParser.php.
Referenced by setMode().
|
protected |
Definition at line 63 of file class.ilGroupXMLParser.php.
|
private |
Definition at line 53 of file class.ilGroupXMLParser.php.
|
protected |
Definition at line 40 of file class.ilGroupXMLParser.php.
|
protected |
Definition at line 49 of file class.ilGroupXMLParser.php.
|
protected |
Definition at line 41 of file class.ilGroupXMLParser.php.
|
private |
Definition at line 55 of file class.ilGroupXMLParser.php.
|
static |
Definition at line 30 of file class.ilGroupXMLParser.php.
Referenced by ilSoapGroupAdministration\addGroup(), and ilGroupImporter\importXmlRepresentation().
|
protected |
Definition at line 39 of file class.ilGroupXMLParser.php.