ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
__construct (ilObjGroup $group, $a_xml, $a_parent_id) | |
Constructor. More... | |
__pushParentId ($a_id) | |
__popParentId () | |
__getParentId () | |
setHandlers ($a_xml_parser) | |
set event handlers 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) | |
End element handler. More... | |
handlerCharacterData ($a_xml_parser, $a_data) | |
handler for character data More... | |
__save () | |
__assignMembers () | |
__parseId ($a_id) | |
setMode ($mode) | |
__initContainerSorting ($a_attribs, $a_group_id) | |
![]() | |
__construct ($a_xml_file='', $throwException=false) | |
Constructor setup ILIAS global object 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 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... | |
![]() | |
__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... | |
![]() | |
__construct ($a_xml_file='') | |
Constructor. More... | |
enableMDParsing ($a_status) | |
getMDParsingStatus () | |
setMDObject (&$md) | |
& | getMDObject () |
inMetaData () | |
setHandlers ($a_xml_parser) | |
set event handlers More... | |
handlerBeginTag ($a_xml_parser, $a_name, $a_attribs) | |
handler for begin of element More... | |
handlerEndTag ($a_xml_parser, $a_name) | |
handler for end of element More... | |
handlerCharacterData ($a_xml_parser, $a_data) | |
handler for character data More... | |
__getCharacterData () | |
__pushParent (&$md_obj) | |
__popParent () | |
__getParent () | |
__construct ($a_xml_file='') | |
Constructor. More... | |
setMDObject (&$md) | |
inMetaData () | |
handlerBeginTag ($a_xml_parser, $a_name, $a_attribs) | |
handler for begin of element More... | |
handlerEndTag ($a_xml_parser, $a_name) | |
handler for end of element More... | |
handlerCharacterData ($a_xml_parser, $a_data) | |
handler for character data More... | |
__getCharacterData () | |
__pushParent (&$md_obj) | |
& | __popParent () |
& | __getParent () |
__construct ($a_xml_file='') | |
Constructor. More... | |
enableMDParsing ($a_status) | |
getMDParsingStatus () | |
setMDObject (&$md) | |
& | getMDObject () |
inMetaData () | |
setHandlers ($a_xml_parser) | |
set event handlers More... | |
handlerBeginTag ($a_xml_parser, $a_name, $a_attribs) | |
handler for begin of element More... | |
handlerEndTag ($a_xml_parser, $a_name) | |
handler for end of element More... | |
handlerCharacterData ($a_xml_parser, $a_data) | |
handler for character data More... | |
__getCharacterData () | |
__pushParent (&$md_obj) | |
& | __popParent () |
& | __getParent () |
Data Fields | |
$group_data | |
$parent | |
$counter | |
$mode | |
$grp | |
![]() | |
$input_type = null | |
$xml_content = '' | |
$ilias | |
$lng | |
$xml_file | |
$throwException = false | |
![]() | |
$_debug = false | |
$_default_error_mode = null | |
$_default_error_options = null | |
$_default_error_handler = '' | |
$_error_class = 'PEAR_Error' | |
$_expected_errors = array() | |
![]() | |
$md_in_md = false | |
$md_chr_data = '' | |
$md_cur_el = null | |
$md_parsing_enabled = null | |
$md = null | |
$md_gen | |
Static Public Attributes | |
static | $CREATE = 1 |
static | $UPDATE = 2 |
Protected Attributes | |
$log | |
$sax_controller = null | |
$advanced_md_value_parser = null | |
![]() | |
$meta_log | |
Private Attributes | |
$group_obj | |
$lom_parsing_active = false | |
$participants = null | |
$current_container_setting | |
$sort = null | |
Additional Inherited Members | |
![]() | |
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... | |
![]() | |
handleError ($message, $code) | |
use given error handler to handle error message or internal ilias error message handle More... | |
Group Import Parser.
Definition at line 39 of file class.ilGroupXMLParser.php.
ilGroupXMLParser::__construct | ( | ilObjGroup | $group, |
$a_xml, | |||
$a_parent_id | |||
) |
Constructor.
string | $a_xml_file | xml file |
public ilGroupXMLParser constructor.
ilObjGroup | $group | |
string | $a_xml | |
int | $a_parent_id |
Definition at line 100 of file class.ilGroupXMLParser.php.
References $CREATE, $GLOBALS, __pushParentId(), ilMDSaxParser\setMDObject(), and ilSaxParser\setXMLContent().
ilGroupXMLParser::__assignMembers | ( | ) |
Definition at line 518 of file class.ilGroupXMLParser.php.
References $DIC, ilSaxParser\$ilias, $ilSetting, $ilUser, $user, __parseId(), ilGroupParticipants\add(), IL_GRP_ADMIN, and IL_GRP_MEMBER.
Referenced by __save().
ilGroupXMLParser::__getParentId | ( | ) |
ilGroupXMLParser::__initContainerSorting | ( | $a_attribs, | |
$a_group_id | |||
) |
Definition at line 617 of file class.ilGroupXMLParser.php.
References ilContainerSortingSettings\_importContainerSortingSettings().
Referenced by __save(), and handlerBeginTag().
ilGroupXMLParser::__parseId | ( | $a_id | ) |
Definition at line 580 of file class.ilGroupXMLParser.php.
References $DIC, $GLOBALS, $id, ilSaxParser\$ilias, $user, ilObjUser\_getImportedUserId(), and ilObjUser\_lookupName().
Referenced by __assignMembers().
ilGroupXMLParser::__popParentId | ( | ) |
Definition at line 131 of file class.ilGroupXMLParser.php.
ilGroupXMLParser::__pushParentId | ( | $a_id | ) |
Definition at line 127 of file class.ilGroupXMLParser.php.
Referenced by __construct(), and __save().
ilGroupXMLParser::__save | ( | ) |
mode can be create or update
Definition at line 399 of file class.ilGroupXMLParser.php.
References $CREATE, $end, $start, __assignMembers(), ilUtil\__extractId(), __getParentId(), __initContainerSorting(), __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().
ilGroupXMLParser::handlerBeginTag | ( | $a_xml_parser, | |
$a_name, | |||
$a_attribs | |||
) |
handler for begin of element
Implements ilSaxSubsetParser.
Definition at line 183 of file class.ilGroupXMLParser.php.
References $DIC, $GLOBALS, $ilErr, and __initContainerSorting().
ilGroupXMLParser::handlerCharacterData | ( | $a_xml_parser, | |
$a_data | |||
) |
handler for character data
Implements ilSaxSubsetParser.
Definition at line 384 of file class.ilGroupXMLParser.php.
ilGroupXMLParser::handlerEndTag | ( | $a_xml_parser, | |
$a_name | |||
) |
End element handler.
public
resource | $a_xml_parser | xml parser |
string | $a_name | element name |
Implements ilSaxSubsetParser.
Definition at line 278 of file class.ilGroupXMLParser.php.
References $current_container_setting, __save(), ilContainer\_writeContainerSetting(), and IL_CAL_UNIX.
ilGroupXMLParser::setHandlers | ( | $a_xml_parser | ) |
set event handlers
resource | reference to the xml parser public |
Definition at line 149 of file class.ilGroupXMLParser.php.
ilGroupXMLParser::setMode | ( | $mode | ) |
ilGroupXMLParser::startParsing | ( | ) |
|
protected |
Definition at line 69 of file class.ilGroupXMLParser.php.
ilGroupXMLParser::$counter |
Definition at line 80 of file class.ilGroupXMLParser.php.
|
static |
Definition at line 41 of file class.ilGroupXMLParser.php.
Referenced by __construct(), __save(), and startParsing().
|
private |
Definition at line 73 of file class.ilGroupXMLParser.php.
Referenced by handlerEndTag().
ilGroupXMLParser::$group_data |
Definition at line 76 of file class.ilGroupXMLParser.php.
|
private |
Definition at line 52 of file class.ilGroupXMLParser.php.
ilGroupXMLParser::$grp |
Definition at line 83 of file class.ilGroupXMLParser.php.
|
protected |
Definition at line 47 of file class.ilGroupXMLParser.php.
|
private |
Definition at line 57 of file class.ilGroupXMLParser.php.
ilGroupXMLParser::$mode |
Definition at line 82 of file class.ilGroupXMLParser.php.
Referenced by setMode().
ilGroupXMLParser::$parent |
Definition at line 79 of file class.ilGroupXMLParser.php.
|
private |
Definition at line 72 of file class.ilGroupXMLParser.php.
|
protected |
Definition at line 63 of file class.ilGroupXMLParser.php.
|
private |
Definition at line 74 of file class.ilGroupXMLParser.php.
|
static |
Definition at line 42 of file class.ilGroupXMLParser.php.
Referenced by ilGroupImporter\importXmlRepresentation(), and ilSoapGroupAdministration\updateGroup().