Semantic MediaWiki and related extensions
Public Member Functions | List of all members
SMW\Constraint\Constraints\NullConstraint Class Reference
Inheritance diagram for SMW\Constraint\Constraints\NullConstraint:
Inheritance graph
[legend]
Collaboration diagram for SMW\Constraint\Constraints\NullConstraint:
Collaboration graph
[legend]

Public Member Functions

 hasViolation ()
 
 getType ()
 
 checkConstraint (array $constraint, $value)
 

Additional Inherited Members

- Public Attributes inherited from SMW\Constraint\Constraint
const CLASS_CONSTRAINT_SCHEMA = 'CLASS_CONSTRAINT_SCHEMA'
 
const PROPERTY_CONSTRAINT_SCHEMA = 'PROPERTY_CONSTRAINT_SCHEMA'
 
const TYPE_INSTANT = 'type/instant'
 
const TYPE_DEFERRED = 'type/deferred'
 

Detailed Description

GNU GPL v2+

Since
3.1
Author
mwjames

Member Function Documentation

◆ checkConstraint()

SMW\Constraint\Constraints\NullConstraint::checkConstraint ( array  $constraint,
  $value 
)
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\NullConstraint::getType ( )
Since
3.1

Since
3.1
Returns
string

Implements SMW\Constraint\Constraint.

◆ hasViolation()

SMW\Constraint\Constraints\NullConstraint::hasViolation ( )
Since
3.1

Returns true when a violation during the check occurred.

Since
3.1
Returns
boolean

Implements SMW\Constraint\Constraint.


The documentation for this class was generated from the following file:

About | General disclaimer | Privacy policy