|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
Course XML Parser. More...
Inheritance diagram for ilCourseXMLParser:
Collaboration diagram for ilCourseXMLParser:Public Member Functions | |
| __construct (ilObjCourse $a_course_obj, string $a_xml_file='') | |
| setMode (int $a_mode) | |
| getMode () | |
| setHandlers ($a_xml_parser) | |
| @inheritDoc More... | |
| handlerBeginTag ($a_xml_parser, string $a_name, array $a_attribs) | |
| @inheritDoc More... | |
| __parseId ($a_id) | |
| handlerEndTag ($a_xml_parser, string $a_name) | |
| @inheritDoc More... | |
| handlerCharacterData ($a_xml_parser, string $a_data) | |
| Character data handler. More... | |
Public Member Functions inherited from ilSaxParser | |
| __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) | |
| handlerBeginTag ($a_xml_parser, string $a_name, array $a_attribs) | |
| Start element handler. More... | |
| handlerEndTag ($a_xml_parser, string $a_name) | |
| End element handler. More... | |
| handlerCharacterData ($a_xml_parser, string $a_name) | |
| Character data handler. More... | |
Data Fields | |
| const int | MODE_SOAP = 1 |
| const int | MODE_EXPORT = 2 |
Data Fields inherited from ilSaxParser | |
| string | $xml_file |
| bool | $throw_exception = false |
Protected Member Functions | |
| trimAndStripAttribs (array $attribs) | |
| trimAndStrip (string $input) | |
Protected Member Functions inherited from ilSaxParser | |
| openXMLFile () | |
| handleError (string $message) | |
| setThrowException (bool $throw_exception) | |
Protected Attributes | |
| ilSetting | $setting |
| Translations | $translations |
| ilSaxController | $sax_controller |
| ilCourseParticipants | $course_members |
| ilCourseWaitingList | $course_waiting_list |
| ilAdvancedMDValueParser | $adv_md_handler = null |
| array | $course_members_array = [] |
Protected Attributes inherited from ilSaxParser | |
| ilLanguage | $lng = null |
Private Member Functions | |
| handleAdmin (array $a_attribs, array $id_data) | |
| attach or detach admin from course member More... | |
| handleTutor (array $a_attribs, array $id_data) | |
| handleMember (array $a_attribs, array $id_data) | |
| attach or detach user/member/admin from course member More... | |
| handleSubscriber (array $a_attribs, array $id_data) | |
| attach or detach members from subscribers More... | |
| handleWaitingList (array $a_attribs, array $id_data) | |
| attach or detach members from waitinglist More... | |
Private Attributes | |
| int | $mode = self::MODE_EXPORT |
| bool | $in_availability = false |
| bool | $in_registration = false |
| bool | $in_period = false |
| bool | $in_period_with_time = false |
| ilDateTime | $period_start = null |
| ilDateTime | $period_end = null |
| string | $cdata = '' |
| string | $current_container_setting = '' |
| ilObjCourse | $course_obj |
| ilLogger | $log |
Course XML Parser.
Definition at line 27 of file class.ilCourseXMLParser.php.
| ilCourseXMLParser::__construct | ( | ilObjCourse | $a_course_obj, |
| string | $a_xml_file = '' |
||
| ) |
Definition at line 55 of file class.ilCourseXMLParser.php.
References $DIC, ILIAS\GlobalScreen\Provider\__construct(), ilCourseParticipants\_getInstanceByObjId(), and ilObject\getObjectProperties().
Here is the call graph for this function:| ilCourseXMLParser::__parseId | ( | $a_id | ) |
Definition at line 301 of file class.ilCourseXMLParser.php.
References $id, ilObjUser\_getImportedUserId(), and ilObjUser\_lookupLogin().
Referenced by handlerBeginTag().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCourseXMLParser::getMode | ( | ) |
|
private |
attach or detach admin from course member
Definition at line 330 of file class.ilCourseXMLParser.php.
References ilParticipants\IL_CRS_ADMIN.
Referenced by handlerBeginTag().
Here is the caller graph for this function:
|
private |
attach or detach user/member/admin from course member
Definition at line 410 of file class.ilCourseXMLParser.php.
References ilParticipants\IL_CRS_MEMBER.
Referenced by handlerBeginTag().
Here is the caller graph for this function:| ilCourseXMLParser::handlerBeginTag | ( | $a_xml_parser, | |
| string | $a_name, | ||
| array | $a_attribs | ||
| ) |
@inheritDoc
Implements ilSaxSubsetParser.
Definition at line 97 of file class.ilCourseXMLParser.php.
References __parseId(), ilContainerSortingSettings\_importContainerSortingSettings(), ilObject\_writeImportId(), ilContainerSortingSettings\getInstanceByObjId(), handleAdmin(), handleMember(), handleSubscriber(), handleTutor(), handleWaitingList(), ilCourseConstants\IL_CRS_SUBSCRIPTION_CONFIRMATION, ilCourseConstants\IL_CRS_SUBSCRIPTION_DEACTIVATED, ilCourseConstants\IL_CRS_SUBSCRIPTION_DIRECT, ilCourseConstants\IL_CRS_SUBSCRIPTION_LIMITED, ilCourseConstants\IL_CRS_SUBSCRIPTION_PASSWORD, ilCourseConstants\IL_CRS_SUBSCRIPTION_UNLIMITED, and trimAndStripAttribs().
Here is the call graph for this function:| ilCourseXMLParser::handlerCharacterData | ( | $a_xml_parser, | |
| string | $a_name | ||
| ) |
Character data handler.
| resource | $a_xml_parser | xml parser |
Implements ilSaxSubsetParser.
Definition at line 651 of file class.ilCourseXMLParser.php.
| ilCourseXMLParser::handlerEndTag | ( | $a_xml_parser, | |
| string | $a_name | ||
| ) |
@inheritDoc
Implements ilSaxSubsetParser.
Definition at line 478 of file class.ilCourseXMLParser.php.
References Vendor\Package\$e, $translations, ilContainer\_writeContainerSetting(), IL_CAL_UNIX, trimAndStrip(), and ILIAS\ILIASObject\Properties\Translations\Translations\withDefaultTitle().
Here is the call graph for this function:
|
private |
attach or detach members from subscribers
Definition at line 442 of file class.ilCourseXMLParser.php.
Referenced by handlerBeginTag().
Here is the caller graph for this function:
|
private |
Definition at line 369 of file class.ilCourseXMLParser.php.
References ilParticipants\IL_CRS_TUTOR.
Referenced by handlerBeginTag().
Here is the caller graph for this function:
|
private |
attach or detach members from waitinglist
Definition at line 460 of file class.ilCourseXMLParser.php.
Referenced by handlerBeginTag().
Here is the caller graph for this function:| ilCourseXMLParser::setHandlers | ( | $a_xml_parser | ) |
@inheritDoc
Reimplemented from ilSaxParser.
Definition at line 84 of file class.ilCourseXMLParser.php.
| ilCourseXMLParser::setMode | ( | int | $a_mode | ) |
Definition at line 71 of file class.ilCourseXMLParser.php.
|
protected |
Definition at line 670 of file class.ilCourseXMLParser.php.
References ilUtil\stripSlashes().
Referenced by handlerEndTag(), and trimAndStripAttribs().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 661 of file class.ilCourseXMLParser.php.
References trimAndStrip().
Referenced by handlerBeginTag().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 52 of file class.ilCourseXMLParser.php.
|
private |
Definition at line 42 of file class.ilCourseXMLParser.php.
|
protected |
Definition at line 50 of file class.ilCourseXMLParser.php.
|
protected |
Definition at line 53 of file class.ilCourseXMLParser.php.
|
private |
Definition at line 45 of file class.ilCourseXMLParser.php.
|
protected |
Definition at line 51 of file class.ilCourseXMLParser.php.
|
private |
Definition at line 44 of file class.ilCourseXMLParser.php.
|
private |
Definition at line 34 of file class.ilCourseXMLParser.php.
|
private |
Definition at line 36 of file class.ilCourseXMLParser.php.
|
private |
Definition at line 37 of file class.ilCourseXMLParser.php.
|
private |
Definition at line 35 of file class.ilCourseXMLParser.php.
|
private |
Definition at line 46 of file class.ilCourseXMLParser.php.
|
private |
Definition at line 32 of file class.ilCourseXMLParser.php.
Referenced by getMode().
|
private |
Definition at line 40 of file class.ilCourseXMLParser.php.
|
private |
Definition at line 39 of file class.ilCourseXMLParser.php.
|
protected |
Definition at line 49 of file class.ilCourseXMLParser.php.
|
protected |
Definition at line 47 of file class.ilCourseXMLParser.php.
|
protected |
Definition at line 48 of file class.ilCourseXMLParser.php.
Referenced by handlerEndTag().
| const int ilCourseXMLParser::MODE_EXPORT = 2 |
Definition at line 30 of file class.ilCourseXMLParser.php.
| const int ilCourseXMLParser::MODE_SOAP = 1 |
Definition at line 29 of file class.ilCourseXMLParser.php.
Referenced by ilSoapCourseAdministration\addCourse().