Esempio n. 1
2
 public function hasChanged()
 {
     return new_value($this->getFieldName()) !== old_value($this->getFieldName());
 }
Esempio n. 2
2
/**
 * Devuelve un booleano indicando si el campo $fieldname ha cambiado en una actualización
 *
 * @param string $fieldname
 * @return string
 */
function has_changed($fieldname)
{
    return new_value($fieldname) != old_value($fieldname);
}
Esempio n. 3
0
 public function is_unique_yupii($string, $field)
 {
     $table = $this->modelo->table_name;
     $string = $this->input->post($field);
     $primarykeyvalue = new_value($this->modelo->id_field);
     $this->modelo->setWhere($this->modelo->id_field . ' <> ', $primarykeyvalue);
     $this->modelo->setWhere($field, $string);
     $c = $this->modelo->countAllResults();
     if ($c > 0) {
         return FALSE;
     }
     return TRUE;
 }