Stud.IP  trunk Revision
export_studipdata_func.inc.php File Reference

Namespaces

 Export
 

Functions

 output_data ($object_data, $output_mode="file", $flush=false)
 
 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, $object_type=null, $object_class_hint=null, $only_these=null)
 

Function Documentation

◆ export_datafields()

export_datafields (   $range_id,
  $childgroup_tag,
  $childobject_tag,
  $object_type = null,
  $object_class_hint = null,
  $only_these = null 
)

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()

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()

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()

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()

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:
Here is the caller graph for this function:

◆ export_sem()

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()

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:

◆ output_data()

output_data (   $object_data,
  $output_mode = "file",
  $flush = false 
)

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: