GNU GPL v2+
- Since
- 3.1
- Author
- mwjames
◆ checkConstraint()
SMW\Constraint\Constraints\MandatoryPropertiesConstraint::checkConstraint |
( |
array |
$constraint, |
|
|
|
$dataValue |
|
) |
| |
- Since
- 3.1
Checks a constraint against a single value. Any error that occurred during the processing should be attached to an individual value using the ConstraintError
class.
- Since
- 3.1
- Parameters
-
array | $constraint | |
mixed | $value | |
Implements SMW\Constraint\Constraint.
◆ getType()
SMW\Constraint\Constraints\MandatoryPropertiesConstraint::getType |
( |
| ) |
|
◆ hasViolation()
SMW\Constraint\Constraints\MandatoryPropertiesConstraint::hasViolation |
( |
| ) |
|
- Since
- 3.1
Returns true when a violation during the check occurred.
- Since
- 3.1
- Returns
- boolean
Implements SMW\Constraint\Constraint.
◆ CONSTRAINT_KEY
const SMW\Constraint\Constraints\MandatoryPropertiesConstraint::CONSTRAINT_KEY = 'mandatory_properties' |
Defines the expected key in the JSON
The documentation for this class was generated from the following file:
- MandatoryPropertiesConstraint.php