Jet\Factory_Validator

Factory for the Validator system.

Method Meaning
public static getValidatorClassName(
string $type
) : string|Validator
Returns the validator class name based on the validator type.
public static setValidatorClassName(
string $type,
string $class_name
) : string
Sets the validator class name for a specific validator type.
public static getValidatorInstance(
string $type
) : Validator
Creates and returns a validator instance based on the validator type.
public static getValidatorClassNames(
) : array
Returns a map of validator class names.
public static setValidatorClassNames(
array $validator_class_names
) : void
Bulk sets validator class names.
public static registerNewValidatorType(
string $validator_type,
string $validator_class_name
) : void
Registers a new validator type.
public static getRegisteredValidatorTypes(
) : array
Returns a list of all known validator types.
Previous chapter
Jet\Factory_Config
Next chapter
Jet\Factory_InputCatcher