/** * Check if the fields has same value * * @param Rabbit_Field $to * @return boolean */ public function compare_equals(Rabbit_Field $to) { $ci =& get_instance(); $v1 = $this->field->getRawValue(); $v2 = $to->getRawValue(); if ($v1 != $v2) { $this->message = sprintf($ci->lang->line('rabbit_comparator_equals'), $this->field->getLabel(), $to->getLabel()); return false; } return true; }