aboutsummaryrefslogtreecommitdiff
path: root/engine/classes/XMLRPCStringParameter.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/classes/XMLRPCStringParameter.php')
-rw-r--r--engine/classes/XMLRPCStringParameter.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/engine/classes/XMLRPCStringParameter.php b/engine/classes/XMLRPCStringParameter.php
new file mode 100644
index 000000000..bf9097747
--- /dev/null
+++ b/engine/classes/XMLRPCStringParameter.php
@@ -0,0 +1,20 @@
+<?php
+/**
+ * @class XMLRPCStringParameter A string.
+ * @author Curverider Ltd
+ */
+class XMLRPCStringParameter extends XMLRPCParameter
+{
+ function __construct($value)
+ {
+ parent::__construct();
+
+ $this->value = $value;
+ }
+
+ function __toString()
+ {
+ $value = htmlentities($this->value);
+ return "<value><string>{$value}</string></value>";
+ }
+}