From 3069eaf35e833ffe4a1c1c7829dd7e168ae27420 Mon Sep 17 00:00:00 2001
From: Ciro Mattia Gonano
Date: Wed, 11 Sep 2013 15:56:48 +0200
Subject: Merge up to r3319
---
.../protected/pages/Services/SoapService.page | 22 +++++++++++++++++++++-
1 file changed, 21 insertions(+), 1 deletion(-)
(limited to 'demos/quickstart/protected/pages/Services')
diff --git a/demos/quickstart/protected/pages/Services/SoapService.page b/demos/quickstart/protected/pages/Services/SoapService.page
index 8982ac46..3263180d 100644
--- a/demos/quickstart/protected/pages/Services/SoapService.page
+++ b/demos/quickstart/protected/pages/Services/SoapService.page
@@ -78,6 +78,12 @@ class Contact {
*/
public $name;
+ /**
+ * @var string $notes {nillable=1, minOccurs=0, maxOccurs=2}
+ * @soapproperty
+ */
+ public $notes;
+
/**
* @var Address $address
* @soapproperty
@@ -123,11 +129,25 @@ class ContactManager {
For a complex soap object, the properties of the object are specified with
@soapproperty keyword in the property phpdocs. Furthermore, the
-propert's type name must be specified as @var type $name where type
+property's type name must be specified as @var type $name where type
is any valid type in mentioned earlier and $name will defined
a property name (notice that if your class is a TComponent, you can
provide property setter/getter methods).
+
+
+Optionally, extra attributes (nillable, minOccurs, maxOccurs) can be defined for each property by enclosing definitions into curly brackets and separated by comma like so:
+
+{[attribute1 = value1][, attribute2 = value2], ...}
+
+where the attribute can be one of following:
+
+ - nillable = [0|1|true|false]
+ - minOccurs = n; where n>=0
+ - maxOccurs = n; where [n>=0|unbounded]
+
+
+
An array of complex objects can also be returned by adding a pair of
enclosing square brackets after the type name. For example, to return an
--
cgit v1.2.3