Stud.IP
2.0 Revision 48548
|
Namespaces | |
namespace | Export |
Functions | |
string_to_unicode ($xml_string) | |
output_data ($object_data, $output_mode="file") | |
export_range ($range_id) | |
export_inst ($inst_id, $ex_sem_id="all") | |
export_sem ($inst_id, $ex_sem_id="all") | |
export_teilis ($inst_id, $ex_sem_id="no") | |
export_pers ($inst_id) | |
export_persons ($persons) | |
export_datafields ($range_id, $childgroup_tag, $childobject_tag) | |
get_additional_data ($user_id, $range_id) | |
export_additional_data ($user_id, $range_id, $childgroup_tag) |
export_additional_data | ( | $user_id, | |
$range_id, | |||
$childgroup_tag | |||
) |
export_datafields | ( | $range_id, | |
$childgroup_tag, | |||
$childobject_tag | |||
) |
helper function to export custom datafields
only visible datafields are exported (depending on user perms) public
string | $range_id | id for object to export |
string | $childgroup_tag | name of outer tag |
string | $childobject_tag | name of inner tags |
export_inst | ( | $inst_id, | |
$ex_sem_id = "all" |
|||
) |
Exports a Stud.IP-institute.
This function gets the data of an institute and writes it into $data_object. It calls one of the functions export_sem, export_pers or export_teilis and then output_data.
public
string | $inst_id | Stud.IP-inst_id for export |
string | $ex_sem_id | allows to choose if only a specific lecture is to be exported |
export_pers | ( | $inst_id | ) |
Exports member-list for a Stud.IP-institute.
This function gets the data of the members of an institute and writes it into $data_object. The order of the members depends on the grouping-option $filter. It calls output_data afterwards.
public
string | $inst_id | Stud.IP-inst_id for export |
string | $ex_sem_id | allows to choose which lecture is to be exported |
export_persons | ( | $persons | ) |
Exports list of persons.
public
array | $persons | Stud.IP-user_ids for export |
export_range | ( | $range_id | ) |
Exports data of the given range.
This function calls the functions that export the data sepcified by the given $export_range. It calls the function output_data afterwards.
public
string | $range_id | Stud.IP-range_id for export |
export_sem | ( | $inst_id, | |
$ex_sem_id = "all" |
|||
) |
Exports lecture-data.
This function gets the data of the lectures at an institute and writes it into $data_object. It calls output_data afterwards.
public
string | $inst_id | Stud.IP-inst_id for export |
string | $ex_sem_id | allows to choose if only a specific lecture is to be exported |
export_teilis | ( | $inst_id, | |
$ex_sem_id = "no" |
|||
) |
Exports member-list for a Stud.IP-lecture.
This function gets the data of the members of a lecture and writes it into $data_object. It calls output_data afterwards.
public
string | $inst_id | Stud.IP-inst_id for export |
string | $ex_sem_id | allows to choose which lecture is to be exported |
get_additional_data | ( | $user_id, | |
$range_id | |||
) |
helper function to export custom datafields
only visible datafields are exported (depending on user perms) public
string | $range_id | id for object to export |
string | $childgroup_tag | name of outer tag |
string | $childobject_tag | name of inner tags |
output_data | ( | $object_data, | |
$output_mode = "file" |
|||
) |
Writes the xml-stream into a file or to the screen.
This function writes the xml-stream $object_data into a file or to the screen, depending on the content of $output_mode.
public
string | $object_data | xml-stream |
string | $output_mode | switch for output target |
string_to_unicode | ( | $xml_string | ) |
Converts special charakters into unicode format.
This function converts special charakters in the given sring into unicode format UTF-8.
public
string | $xml_string | string to be converted |