Stud.IP
trunk Revision
|
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) | |
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
string | tag name |
xml_escape | ( | $string | ) |
escapes special characters for xml use
string | $string | the string to escape |
xml_footer | ( | ) |
create xml-footer
This function creates the footer for xml output, which is a closing "studip"-tag.
public
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
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
string | tag name |
string | value for optional attribute "key" |
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
string | tag name |
string | content for xml-tag |
array | array of tag attributes |