|
@@ -35,21 +35,26 @@ class Api_WpsHelper {
|
|
|
|
|
|
|
|
{
|
|
{
|
|
|
$selectFeatureArgTypeName = [
|
|
$selectFeatureArgTypeName = [
|
|
|
- 'maxOccurs' => "1",
|
|
|
|
|
- 'minOccurs' => "1",
|
|
|
|
|
|
|
+ 'minOccurs' => "1", 'maxOccurs' => "1", // 1 arg is required
|
|
|
'identifier' => 'typeName',
|
|
'identifier' => 'typeName',
|
|
|
'title' => "Feature typeName",
|
|
'title' => "Feature typeName",
|
|
|
- 'description' => "Feature typeName eg. default_db/PROBLEMS",
|
|
|
|
|
|
|
+ 'description' => "Feature typeName eg.: 'default_db/PROBLEMS'",
|
|
|
'type' => 'literal',
|
|
'type' => 'literal',
|
|
|
];
|
|
];
|
|
|
$selectFeatureArgPrimaryKey = [
|
|
$selectFeatureArgPrimaryKey = [
|
|
|
- 'maxOccurs' => "unbounded",
|
|
|
|
|
- 'minOccurs' => "1",
|
|
|
|
|
|
|
+ 'minOccurs' => "1", 'maxOccurs' => "unbounded", // min 1 arg is required
|
|
|
'identifier' => 'primaryKey',
|
|
'identifier' => 'primaryKey',
|
|
|
'title' => "Feature primaryKey",
|
|
'title' => "Feature primaryKey",
|
|
|
'description' => "Feature primaryKey",
|
|
'description' => "Feature primaryKey",
|
|
|
'type' => 'literal',
|
|
'type' => 'literal',
|
|
|
];
|
|
];
|
|
|
|
|
+ $selectFeatureArgFilterQuery = [
|
|
|
|
|
+ 'minOccurs' => "0", 'maxOccurs' => "1", // optional max 1 arg
|
|
|
|
|
+ 'identifier' => 'filterQuery',
|
|
|
|
|
+ 'title' => "Query string",
|
|
|
|
|
+ 'description' => "Query string eg.: 'f_ID=123&sf_Msgs=NEW_MSGS'",
|
|
|
|
|
+ 'type' => 'literal',
|
|
|
|
|
+ ];
|
|
|
$selectFeatureBase = [
|
|
$selectFeatureBase = [
|
|
|
'dataInputs' => [
|
|
'dataInputs' => [
|
|
|
$selectFeatureArgTypeName,
|
|
$selectFeatureArgTypeName,
|
|
@@ -71,7 +76,14 @@ class Api_WpsHelper {
|
|
|
$defaultWpsProcessList['p5:getSelectedFeatures'] = array_merge([ 'title' => "Get selected features", 'descriptin' => "Get list of selected features (with attribute @selected = true)" ], $selectFeatureBase);
|
|
$defaultWpsProcessList['p5:getSelectedFeatures'] = array_merge([ 'title' => "Get selected features", 'descriptin' => "Get list of selected features (with attribute @selected = true)" ], $selectFeatureBase);
|
|
|
$defaultWpsProcessList['p5:unselectAllFeatures'] = array_merge([ 'title' => "Unselect all features", 'descriptin' => "Unselect all features (set attribute @selected to false)" ], $selectFeatureBase, [
|
|
$defaultWpsProcessList['p5:unselectAllFeatures'] = array_merge([ 'title' => "Unselect all features", 'descriptin' => "Unselect all features (set attribute @selected to false)" ], $selectFeatureBase, [
|
|
|
'dataInputs' => [
|
|
'dataInputs' => [
|
|
|
- $selectFeatureArgTypeName
|
|
|
|
|
|
|
+ $selectFeatureArgTypeName,
|
|
|
|
|
+ ]
|
|
|
|
|
+ ]);
|
|
|
|
|
+ $defaultWpsProcessList['p5:selectAllFeaturesMatchingFilter'] = array_merge([ 'title' => "Select all features matching filter" ], $selectFeatureBase, [
|
|
|
|
|
+ 'dataInputs' => [
|
|
|
|
|
+ $selectFeatureArgTypeName,
|
|
|
|
|
+ array_merge($selectFeatureArgPrimaryKey, [ 'minOccurs' => 0 ]), // optional arg
|
|
|
|
|
+ $selectFeatureArgFilterQuery,
|
|
|
]
|
|
]
|
|
|
]);
|
|
]);
|
|
|
}
|
|
}
|