Omeka_Validate_Confirmation

class Omeka_Validate_Confirmation

Package: Validate

Adapted from Zend Framework documentation on custom validators.

constant NOT_MATCH

Error message for non-matching confirmation.

property _field

Field needing confirmation.

property _messageTemplates

Error messages.

property _messageVariables

Error message replace variables.

__construct($field)

Sets validator options

Parameters:
  • $field (unknown) –
isValid(string $value, string|array $context)

Check that the value is valid.

Parameters:
  • $value (string) –
  • $context (string|array) –
Returns:

boolean

getField()

Get the name of the field that needs confirmation.

Returns:string
setField(string $field)

Set the name of the field that needs confirmation.

Parameters:
  • $field (string) –
Returns:

void