Stud.IP  2.0 Revision 48548
 All Data Structures Namespaces Files Functions Variables Pages
export_studipdata_func.inc.php File Reference

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)

Function Documentation

export_additional_data (   $user_id,
  $range_id,
  $childgroup_tag 
)

Here is the call graph for this function:

Here is the caller graph for this function:

export_datafields (   $range_id,
  $childgroup_tag,
  $childobject_tag 
)

helper function to export custom datafields

only visible datafields are exported (depending on user perms) public

Parameters
string$range_idid for object to export
string$childgroup_tagname of outer tag
string$childobject_tagname of inner tags

Here is the call graph for this function:

Here is the caller graph for this function:

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

Parameters
string$inst_idStud.IP-inst_id for export
string$ex_sem_idallows to choose if only a specific lecture is to be exported

Here is the call graph for this function:

Here is the caller graph for this function:

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

Parameters
string$inst_idStud.IP-inst_id for export
string$ex_sem_idallows to choose which lecture is to be exported

Here is the call graph for this function:

Here is the caller graph for this function:

export_persons (   $persons)

Exports list of persons.

public

Parameters
array$personsStud.IP-user_ids for export

Here is the call graph for this function:

Here is the caller graph for this function:

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

Parameters
string$range_idStud.IP-range_id for export

Here is the call graph for this function:

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

Parameters
string$inst_idStud.IP-inst_id for export
string$ex_sem_idallows to choose if only a specific lecture is to be exported

Here is the call graph for this function:

Here is the caller graph for this function:

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

Parameters
string$inst_idStud.IP-inst_id for export
string$ex_sem_idallows to choose which lecture is to be exported

Here is the call graph for this function:

Here is the caller graph for this function:

get_additional_data (   $user_id,
  $range_id 
)

helper function to export custom datafields

only visible datafields are exported (depending on user perms) public

Parameters
string$range_idid for object to export
string$childgroup_tagname of outer tag
string$childobject_tagname of inner tags

Here is the call graph for this function:

Here is the caller graph for this function:

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

Parameters
string$object_dataxml-stream
string$output_modeswitch for output target

Here is the call graph for this function:

Here is the caller graph for this function:

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

Parameters
string$xml_stringstring to be converted
Returns
string converted string

Here is the caller graph for this function: