Bind Parameters
Bind parameters hold correlation between properties of the object. Typical bind parameter has the following graphical representation:
The bind node is optional. It specifies the bind parameter. Data
type: BindType (descriptor.xsd
).
If it is specified, it contains the following parameters:
-
The ref node is required. It specifies name of a property to be bound with other properties.
-
The relevant node is optional. It contains rules defining dependence of the property on another. A depended property can be editable only if the “master” property’s value (or read-only indicator) is equal to a specified value. Data type: RelevantType (
descriptor.xsd
).If it is specified, it contains the following parameters:
- The name node is required. It specifies name of another property this property will depend on. Data type: string.
- The value node is required. It specifies value of another property this property will depend on. Data type: string.
- The read-only node is required. It specifies if the property (defined in ref node) will be editable on fulfilling conditions defined in the relevant node. Data type: boolean.
-
The read-only node is required. It defines if the property is editable for users. Data type: boolean.
Note: read-only is of higher priority than writable-by.
Remarks
Multiple bind nodes for a single property descriptor are treated as logical disjunction of correlations.
Multiple relevant nodes are treated as logical conjunction of the rules.
This rule tells to make PHP ISAPI support editable only if PHP support is editable and checked.
<bind>
<ref>php_isapi</ref>
<relevant>
<name>php</name>
<read-only>0</read-only>
</relevant>
<relevant>
<name>php</name>
<value>1</value >
</relevant>
<read-only>0</read-only>
</bind>