Omeka_Validate_Confirmation

Package: Validate

class Omeka_Validate_Confirmation

extends Zend_Validate_Abstract

Adapted from Zend Framework documentation on custom validators.

constant Omeka_Validate_Confirmation::NOT_MATCH

Error message for non-matching confirmation.

property Omeka_Validate_Confirmation::$_field

protected string

Field needing confirmation.

property Omeka_Validate_Confirmation::$_messageTemplates

protected array

Error messages.

property Omeka_Validate_Confirmation::$_messageVariables

protected array

Error message replace variables.

Omeka_Validate_Confirmation::__construct($field)

Sets validator options

Parameters:
  • $field

Omeka_Validate_Confirmation::isValid($value, $context = null)

Check that the value is valid.

Parameters:
  • $value (string) –

  • $context (string|array) –

Returns:

bool

Omeka_Validate_Confirmation::getField()

Get the name of the field that needs confirmation.

Returns:

string

Omeka_Validate_Confirmation::setField($field)

Set the name of the field that needs confirmation.

Parameters:
  • $field (string) –