ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
Util.php File Reference

Go to the source code of this file.

Data Structures

class  XML_Util

Namespaces

namespace  XML_Util

Variables

const XML_UTIL_ERROR_INVALID_CHARS = 51
 error code for invalid chars in XML name
const XML_UTIL_ERROR_INVALID_START = 52
 error code for invalid chars in XML name
const XML_UTIL_ERROR_NON_SCALAR_CONTENT = 60
 error code for non-scalar tag content
const XML_UTIL_ERROR_NO_TAG_NAME = 61
 error code for missing tag name
const XML_UTIL_REPLACE_ENTITIES = 1
 replace XML entities
const XML_UTIL_CDATA_SECTION = 5
 embedd content in a CData Section
const XML_UTIL_ENTITIES_NONE = 0
 do not replace entitites
const XML_UTIL_ENTITIES_XML = 1
 replace all XML entitites This setting will replace <, >, ", ' and &
const XML_UTIL_ENTITIES_XML_REQUIRED = 2
 replace only required XML entitites This setting will replace <, " and &
const XML_UTIL_ENTITIES_HTML = 3
 replace HTML entitites http://www.php.net/htmlentities
const XML_UTIL_COLLAPSE_ALL = 1
 Collapse all empty tags.
const XML_UTIL_COLLAPSE_XHTML_ONLY = 2
 Collapse only empty XHTML tags that have no end tag.

Variable Documentation

const XML_UTIL_CDATA_SECTION = 5

embedd content in a CData Section

Definition at line 78 of file Util.php.

Referenced by XML_Util\attributesToString(), and XML_Util\createTagFromArray().

const XML_UTIL_COLLAPSE_ALL = 1

Collapse all empty tags.

Definition at line 106 of file Util.php.

const XML_UTIL_COLLAPSE_XHTML_ONLY = 2

Collapse only empty XHTML tags that have no end tag.

Definition at line 111 of file Util.php.

Referenced by XML_Util\collapseEmptyTags().

const XML_UTIL_ENTITIES_HTML = 3

replace HTML entitites http://www.php.net/htmlentities

Definition at line 101 of file Util.php.

Referenced by XML_Util\replaceEntities(), and XML_Util\reverseEntities().

const XML_UTIL_ENTITIES_NONE = 0

do not replace entitites

Definition at line 83 of file Util.php.

Referenced by XML_Util\attributesToString(), and XML_Util\createTagFromArray().

const XML_UTIL_ENTITIES_XML = 1

replace all XML entitites This setting will replace <, >, ", ' and &

Definition at line 89 of file Util.php.

Referenced by XML_Util\attributesToString(), XML_Util\replaceEntities(), and XML_Util\reverseEntities().

const XML_UTIL_ENTITIES_XML_REQUIRED = 2

replace only required XML entitites This setting will replace <, " and &

Definition at line 95 of file Util.php.

Referenced by XML_Util\replaceEntities(), and XML_Util\reverseEntities().

const XML_UTIL_ERROR_INVALID_CHARS = 51

error code for invalid chars in XML name

Definition at line 53 of file Util.php.

Referenced by XML_Util\isValidName().

const XML_UTIL_ERROR_INVALID_START = 52

error code for invalid chars in XML name

Definition at line 58 of file Util.php.

Referenced by XML_Util\isValidName().

const XML_UTIL_ERROR_NO_TAG_NAME = 61

error code for missing tag name

Definition at line 68 of file Util.php.

Referenced by XML_Util\createTagFromArray().

const XML_UTIL_ERROR_NON_SCALAR_CONTENT = 60

error code for non-scalar tag content

Definition at line 63 of file Util.php.

Referenced by XML_Util\createTagFromArray().

const XML_UTIL_REPLACE_ENTITIES = 1

replace XML entities

Definition at line 73 of file Util.php.