ILIAS
release_8 Revision v8.19
|
Group Import Parser. More...
Public Member Functions | |
__construct (string $a_xml, int $a_parent_id) | |
getParentId () | |
setHandlers ($a_xml_parser) | |
startParsing () | |
handlerBeginTag ($a_xml_parser, string $a_name, array $a_attribs) | |
handlerEndTag ($a_xml_parser, string $a_name) | |
handlerCharacterData ($a_xml_parser, string $a_data) | |
setMode (int $mode) | |
setCategory (ilObjCategory $cat) | |
getCategory () | |
![]() | |
__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) | |
Data Fields | |
const | MODE_CREATE = 1 |
const | MODE_UPDATE = 2 |
![]() | |
string | $xml_file |
bool | $throw_exception = false |
Protected Member Functions | |
getCurrentTranslation () | |
save () | |
![]() | |
trimAndStripAttribs (array $attribs) | |
trimAndStrip (string $input) | |
![]() | |
openXMLFile () | |
handleError (string $message) | |
setThrowException (bool $throw_exception) | |
Protected Attributes | |
ilLogger | $cat_log |
int | $mode |
string | $cdata = "" |
![]() | |
ilLanguage | $lng = null |
Private Attributes | |
ilObjCategory | $cat = null |
int | $parent_id = 0 |
array | $current_translation = [] |
string | $current_container_setting |
Group Import Parser.
Definition at line 23 of file class.ilCategoryXmlParser.php.
ilCategoryXmlParser::__construct | ( | string | $a_xml, |
int | $a_parent_id | ||
) |
Definition at line 36 of file class.ilCategoryXmlParser.php.
References ILIAS\GlobalScreen\Provider\__construct(), ilLoggerFactory\getLogger(), and ilSaxParser\setXMLContent().
ilCategoryXmlParser::getCategory | ( | ) |
Definition at line 208 of file class.ilCategoryXmlParser.php.
References $cat.
Referenced by handlerBeginTag(), handlerEndTag(), and save().
|
protected |
Definition at line 55 of file class.ilCategoryXmlParser.php.
References $current_translation.
ilCategoryXmlParser::getParentId | ( | ) |
Definition at line 47 of file class.ilCategoryXmlParser.php.
References $parent_id.
Referenced by save().
ilCategoryXmlParser::handlerBeginTag | ( | $a_xml_parser, | |
string | $a_name, | ||
array | $a_attribs | ||
) |
XMLParser | resource | $a_xml_parser | |
string | $a_name | |
array | $a_attribs |
Definition at line 82 of file class.ilCategoryXmlParser.php.
References ilContainerSortingSettings\_importContainerSortingSettings(), getCategory(), ILIAS\Survey\Mode\getId(), and ilContainerBaseXmlParser\trimAndStripAttribs().
ilCategoryXmlParser::handlerCharacterData | ( | $a_xml_parser, | |
string | $a_data | ||
) |
XMLParser | resource | $a_xml_parser | |
string | $a_data |
Definition at line 175 of file class.ilCategoryXmlParser.php.
ilCategoryXmlParser::handlerEndTag | ( | $a_xml_parser, | |
string | $a_name | ||
) |
XMLParser | resource | $a_xml_parser | |
string | $a_name |
Definition at line 115 of file class.ilCategoryXmlParser.php.
References ilContainer\_writeContainerSetting(), getCategory(), ILIAS\Survey\Mode\getId(), save(), and ilContainerBaseXmlParser\trimAndStrip().
|
protected |
mode can be create or update
Definition at line 182 of file class.ilCategoryXmlParser.php.
References getCategory(), and getParentId().
Referenced by handlerEndTag().
ilCategoryXmlParser::setCategory | ( | ilObjCategory | $cat | ) |
ilCategoryXmlParser::setHandlers | ( | $a_xml_parser | ) |
Definition at line 60 of file class.ilCategoryXmlParser.php.
ilCategoryXmlParser::setMode | ( | int | $mode | ) |
ilCategoryXmlParser::startParsing | ( | ) |
Definition at line 67 of file class.ilCategoryXmlParser.php.
|
private |
Definition at line 28 of file class.ilCategoryXmlParser.php.
Referenced by getCategory(), and setCategory().
|
protected |
Definition at line 32 of file class.ilCategoryXmlParser.php.
|
protected |
Definition at line 34 of file class.ilCategoryXmlParser.php.
|
private |
Definition at line 31 of file class.ilCategoryXmlParser.php.
|
private |
Definition at line 30 of file class.ilCategoryXmlParser.php.
Referenced by getCurrentTranslation().
|
protected |
Definition at line 33 of file class.ilCategoryXmlParser.php.
Referenced by setMode().
|
private |
Definition at line 29 of file class.ilCategoryXmlParser.php.
Referenced by getParentId().
const ilCategoryXmlParser::MODE_CREATE = 1 |
Definition at line 25 of file class.ilCategoryXmlParser.php.
Referenced by ilContainerReferenceXmlParser\save().
const ilCategoryXmlParser::MODE_UPDATE = 2 |
Definition at line 26 of file class.ilCategoryXmlParser.php.
Referenced by ilCategoryImporter\importXmlRepresentation().