ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
|
Course XML Parser. More...
Public Member Functions | |
__construct (ilObjCourse $a_course_obj, string $a_xml_file='') | |
setMode (int $a_mode) | |
getMode () | |
setHandlers ($a_xml_parser) | |
handlerBeginTag ($a_xml_parser, string $a_name, array $a_attribs) | |
__parseId ($a_id) | |
handlerEndTag ($a_xml_parser, string $a_name) | |
handlerCharacterData ($a_xml_parser, string $a_data) | |
Character data handler. More... | |
![]() | |
__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 int | MODE_SOAP = 1 |
const int | MODE_EXPORT = 2 |
![]() | |
string | $xml_file |
bool | $throw_exception = false |
Protected Member Functions | |
trimAndStripAttribs (array $attribs) | |
trimAndStrip (string $input) | |
![]() | |
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 = [] |
![]() | |
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().
ilCourseXMLParser::__parseId | ( | $a_id | ) |
Definition at line 301 of file class.ilCourseXMLParser.php.
References $id, ilObjUser\_getImportedUserId(), and ilObjUser\_lookupLogin().
Referenced by handlerBeginTag().
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().
|
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().
ilCourseXMLParser::handlerBeginTag | ( | $a_xml_parser, | |
string | $a_name, | ||
array | $a_attribs | ||
) |
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, null, and trimAndStripAttribs().
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 | ||
) |
Implements ilSaxSubsetParser.
Definition at line 478 of file class.ilCourseXMLParser.php.
References $cdata, $current_container_setting, Vendor\Package\$e, $translations, ilContainer\_writeContainerSetting(), IL_CAL_UNIX, trimAndStrip(), and ILIAS\ILIASObject\Properties\Translations\Translations\withDefaultTitle().
|
private |
attach or detach members from subscribers
Definition at line 442 of file class.ilCourseXMLParser.php.
Referenced by handlerBeginTag().
|
private |
Definition at line 369 of file class.ilCourseXMLParser.php.
References ilParticipants\IL_CRS_TUTOR.
Referenced by handlerBeginTag().
|
private |
attach or detach members from waitinglist
Definition at line 460 of file class.ilCourseXMLParser.php.
Referenced by handlerBeginTag().
ilCourseXMLParser::setHandlers | ( | $a_xml_parser | ) |
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().
|
protected |
Definition at line 661 of file class.ilCourseXMLParser.php.
References trimAndStrip().
Referenced by handlerBeginTag().
|
protected |
Definition at line 52 of file class.ilCourseXMLParser.php.
|
private |
Definition at line 42 of file class.ilCourseXMLParser.php.
Referenced by handlerEndTag().
|
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.
Referenced by handlerEndTag().
|
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(), and ilSoapCourseAdministration\excludeCourseMember().