ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
|
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_name) | |
save () | |
assignMembers () | |
parseId (string $a_id) | |
setMode (int $mode) | |
initContainerSorting (array $a_attribs, int $a_group_id) | |
![]() | |
__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 |
Protected Member Functions | |
trimAndStripAttribs (array $attribs) | |
trimAndStrip (string $input) | |
![]() | |
openXMLFile () | |
handleError (string $message) | |
setThrowException (bool $throw_exception) | |
Protected Attributes | |
ilObjUser | $user |
ilRbacReview | $rbacreview |
ilSetting | $settings |
ilSaxController | $sax_controller |
ilAdvancedMDValueParser | $advanced_md_value_parser = null |
array | $parent = [] |
int | $counter = 0 |
int | $mode |
![]() | |
ilLanguage | $lng = null |
Private Attributes | |
$after_parsing_status = null | |
ilLogger | $log |
ilObjGroup | $group_obj |
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 |
Group Import Parser.
Definition at line 26 of file class.ilGroupXMLParser.php.
ilGroupXMLParser::__construct | ( | ilObjGroup | $group, |
string | $a_xml, | ||
int | $a_parent_id | ||
) |
Definition at line 62 of file class.ilGroupXMLParser.php.
References $CREATE, $DIC, ILIAS\GlobalScreen\Provider\__construct(), null, pushParentId(), ILIAS\Repository\settings(), ilSaxParser\setXMLContent(), and ILIAS\Repository\user().
ilGroupXMLParser::assignMembers | ( | ) |
Definition at line 535 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 130 of file class.ilGroupXMLParser.php.
References $after_parsing_status.
ilGroupXMLParser::getParentId | ( | ) |
Definition at line 89 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 140 of file class.ilGroupXMLParser.php.
References $DIC, $GLOBALS, $ilErr, initContainerSorting(), ILIAS\Repository\int(), ILIAS\UI\examples\Symbol\Glyph\Sort\sort(), and trimAndStripAttribs().
ilGroupXMLParser::handlerCharacterData | ( | $a_xml_parser, | |
string | $a_name | ||
) |
Implements ilSaxSubsetParser.
Definition at line 355 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 249 of file class.ilGroupXMLParser.php.
References $cdata, $current_container_setting, ilContainer\_writeContainerSetting(), IL_CAL_UNIX, ILIAS\Repository\int(), save(), and trimAndStrip().
ilGroupXMLParser::initContainerSorting | ( | array | $a_attribs, |
int | $a_group_id | ||
) |
Definition at line 624 of file class.ilGroupXMLParser.php.
References ilContainerSortingSettings\_importContainerSortingSettings().
Referenced by handlerBeginTag(), and save().
ilGroupXMLParser::parseId | ( | string | $a_id | ) |
Definition at line 590 of file class.ilGroupXMLParser.php.
References $id, ilObjUser\_getImportedUserId(), ilObjUser\_lookupName(), ILIAS\Repository\int(), and ILIAS\Repository\settings().
Referenced by assignMembers().
ilGroupXMLParser::popParentId | ( | ) |
Definition at line 84 of file class.ilGroupXMLParser.php.
ilGroupXMLParser::pushParentId | ( | int | $a_id | ) |
Definition at line 80 of file class.ilGroupXMLParser.php.
Referenced by __construct(), and save().
ilGroupXMLParser::save | ( | ) |
mode can be create or update
Definition at line 365 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(), null, pushParentId(), and ILIAS\UI\examples\Symbol\Glyph\Sort\sort().
Referenced by handlerEndTag().
ilGroupXMLParser::setHandlers | ( | $a_xml_parser | ) |
Definition at line 98 of file class.ilGroupXMLParser.php.
ilGroupXMLParser::setMode | ( | int | $mode | ) |
ilGroupXMLParser::startParsing | ( | ) |
|
protected |
Definition at line 638 of file class.ilGroupXMLParser.php.
References ilUtil\stripSlashes().
Referenced by handlerEndTag(), and trimAndStripAttribs().
|
protected |
Definition at line 629 of file class.ilGroupXMLParser.php.
References trimAndStrip().
Referenced by handlerBeginTag().
|
protected |
Definition at line 44 of file class.ilGroupXMLParser.php.
|
private |
Definition at line 31 of file class.ilGroupXMLParser.php.
Referenced by getObjectRefId().
|
private |
Definition at line 53 of file class.ilGroupXMLParser.php.
Referenced by handlerEndTag().
|
protected |
Definition at line 57 of file class.ilGroupXMLParser.php.
|
static |
Definition at line 28 of file class.ilGroupXMLParser.php.
Referenced by __construct(), save(), and startParsing().
|
private |
Definition at line 47 of file class.ilGroupXMLParser.php.
Referenced by handlerEndTag().
|
private |
Definition at line 50 of file class.ilGroupXMLParser.php.
|
private |
Definition at line 51 of file class.ilGroupXMLParser.php.
|
private |
Definition at line 37 of file class.ilGroupXMLParser.php.
|
private |
Definition at line 52 of file class.ilGroupXMLParser.php.
|
private |
Definition at line 36 of file class.ilGroupXMLParser.php.
|
protected |
Definition at line 59 of file class.ilGroupXMLParser.php.
Referenced by setMode().
|
protected |
Definition at line 56 of file class.ilGroupXMLParser.php.
|
private |
Definition at line 46 of file class.ilGroupXMLParser.php.
|
protected |
Definition at line 39 of file class.ilGroupXMLParser.php.
|
protected |
Definition at line 42 of file class.ilGroupXMLParser.php.
|
protected |
Definition at line 40 of file class.ilGroupXMLParser.php.
|
private |
Definition at line 48 of file class.ilGroupXMLParser.php.
|
static |
Definition at line 29 of file class.ilGroupXMLParser.php.
Referenced by ilSoapGroupAdministration\addGroup(), and ilGroupImporter\importXmlRepresentation().
|
protected |
Definition at line 38 of file class.ilGroupXMLParser.php.