Textpattern PHP Cross Reference Content Management Systems

Summary: /textpattern/vendors/Textpattern/Validator/Constraint.php - 118 lines - 2415 bytes - Source - Print

Description: (no description)

Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Constraint:: (5 methods):
__construct()
setValue()
setOptions()
validate()
getMessage()

Class: Constraint

Constraint.

Defines a single validation rule.

__construct($value, $options = array()  line: 53
Constructs a constraint.

param: mixed $value The validee
param: array $options Key/value pairs of class-specific options
setValue($value line: 70
Sets validee's value.

param: $value mixed Validee
setOptions($options, $key = null)  line: 81
Sets options.

param: $options Scalar or array of options
param: null $key Key for scalar option
validate()  line: 97
Validate a given value against this constraint.

return: bool If TRUE, the value obeys constraint
getMessage()  line: 108
Gets a message.

return: string

title

Body