00001 <?php
00010 abstract class XFormsFunctions {
00011
00020 static function contentToXML($input) {
00021
00022
00023
00024 $input = str_replace('&', '&', $input);
00025 $input = str_replace('<', '<', $input);
00026 $input = str_replace('>', '>', $input);
00027 $input = str_replace('"', '"', $input);
00028 $input = str_replace('\'', ''', $input);
00029 return $input;
00030 }
00031
00041 static function contentFromXML($input) {
00042
00043
00044 return $input;
00045 $input = str_replace('<', '<', $input);
00046 $input = str_replace('>', '>', $input);
00047 $input = str_replace('"', '"', $input);
00048 $input = str_replace(''', '\'', $input);
00049 $input = str_replace('&', '&', $input);
00050 return $input;
00051 }
00052
00061 static function contentFromParsedXML($input) {
00062
00063
00064
00065 return (string)$input;
00066 }
00067
00076 static function contentToScreen($input) {
00077
00078
00079 $input = str_replace('&', '&', $input);
00080 $input = str_replace('<', '<', $input);
00081 $input = str_replace('>', '>', $input);
00082 $input = str_replace('"', '"', $input);
00083 $input = str_replace('\'', ''', $input);
00084 return $input;
00085 }
00086
00095 static function XMLToContent($input) {
00096 $input = utf8_decode((string)$input);
00097 return $input;
00098 }
00099 }
00100
00101 ?>