diff options
Diffstat (limited to 'engine/classes/XMLRPCIntParameter.php')
-rw-r--r-- | engine/classes/XMLRPCIntParameter.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/engine/classes/XMLRPCIntParameter.php b/engine/classes/XMLRPCIntParameter.php new file mode 100644 index 000000000..2305a66a7 --- /dev/null +++ b/engine/classes/XMLRPCIntParameter.php @@ -0,0 +1,19 @@ +<?php
+/**
+ * @class XMLRPCIntParameter An Integer.
+ * @author Curverider Ltd
+ */
+class XMLRPCIntParameter extends XMLRPCParameter
+{
+ function __construct($value)
+ {
+ parent::__construct();
+
+ $this->value = (int)$value;
+ }
+
+ function __toString()
+ {
+ return "<value><i4>{$this->value}</i4></value>";
+ }
+}
|