You are here

function field_validation_validator::__construct in Field Validation 7.2

Save arguments locally.

File

./field_validation_validator.inc, line 28
Basic class for field validation validator.

Class

field_validation_validator

Code

function __construct($entity_type = 'node', $entity = NULL, $field = '', $instance = NULL, $langcode = 'und', $items = array(), $delta = 0, $item = array(), $value = '', $rule = NULL, &$errors = array()) {
  $this->entity_type = $entity_type;
  $this->entity = $entity;
  $this->field = $field;
  $this->instance = $instance;
  $this->langcode = $langcode;
  $this->items = $items;
  $this->delta = $delta;
  $this->item = $item;
  $this->value = $value;
  $this->rule = $rule;
  $this->errors =& $errors;
}