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

Namespaces

 Export
 

Functions

 xml_header ()
 
 xml_open_tag ($tag_name, $tag_key="")
 
 xml_close_tag ($tag_name)
 
 xml_tag ($tag_name, $tag_content, $tag_attributes=null)
 
 xml_footer ()
 
 xml_escape ($string)
 

Function Documentation

◆ xml_close_tag()

xml_close_tag (   $tag_name)

create closing xml-tag

This function creates a closed xml-tag. The tag-name is defined by the given parameter $tag_name.

public

Parameters
stringtag name
Returns
string xml close tag
Here is the caller graph for this function:

◆ xml_escape()

xml_escape (   $string)

escapes special characters for xml use

Parameters
string$stringthe string to escape
Returns
string
Here is the caller graph for this function:

◆ xml_footer()

xml_footer ( )

create xml-footer

This function creates the footer for xml output, which is a closing "studip"-tag.

public

Returns
string xml footer
Here is the caller graph for this function:

◆ xml_header()

xml_header ( )

create xml_header

This function creates a xml-header for output. Its contents are Name of University, Stud.IP-Version, Range of Export (e.g. "root"), and temporal range.

public

Returns
string xml-header
Here is the call graph for this function:
Here is the caller graph for this function:

◆ xml_open_tag()

xml_open_tag (   $tag_name,
  $tag_key = "" 
)

create opening xml-tag

This function creates an open xml-tag. The tag-name is defined by the given parameter $tag_name. An optional parameter allows to set an attribute named "key".

public

Parameters
stringtag name
stringvalue for optional attribute "key"
Returns
string xml open tag
Here is the call graph for this function:
Here is the caller graph for this function:

◆ xml_tag()

xml_tag (   $tag_name,
  $tag_content,
  $tag_attributes = null 
)

create xml-tag

This function creates a xml-tag. The tag-name is defined by the given parameter $tag_name. The given parameter tag_content is put between open tag and close tag.

public

Parameters
stringtag name
stringcontent for xml-tag
arrayarray of tag attributes
Returns
string xml tag
Here is the call graph for this function:
Here is the caller graph for this function: