Stud.IP  jlu_3.3 Revision
export_xml_func.inc.php File Reference

Namespaces

namespace  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, $utf8encode=true)
 

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.

@access public

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

◆ xml_escape()

xml_escape (   $string,
  $utf8encode = true 
)

escapes special characters for xml use optinally encodes to utf8

Parameters
string$stringthe string to escape
bool$utf8encodeencode the string as utf-8
Returns
string
Here is the call graph for this function:
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.

@access 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.

@access 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".

@access 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.

@access 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: