|
Stud.IP
jlu_3.3 Revision
|
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) | |
| 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
| string | tag name |

| xml_escape | ( | $string, | |
$utf8encode = true |
|||
| ) |
escapes special characters for xml use optinally encodes to utf8
| string | $string | the string to escape |
| bool | $utf8encode | encode the string as utf-8 |


| xml_footer | ( | ) |
create xml-footer
This function creates the footer for xml output, which is a closing "studip"-tag.
@access public

| xml_header | ( | ) |
| 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
| 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.
@access public
| string | tag name |
| string | content for xml-tag |
| array | array of tag attributes |

