/** * Track the change, but only if it was to the 'value' attribute. * * We don't track changes to any other properties of Inputfields. * * @param string $key * @return this * */ public function trackChange($key) { if ($key != 'value') { return $this; } return parent::trackChange($key); }
/** * Track the change, but only if it was to the 'value' attribute. * * We don't track changes to any other properties of Inputfields. * * @param string $what Name of property that changed * @param mixed $old Previous value before change * @param mixed $new New value * @return $this * */ public function trackChange($what, $old = null, $new = null) { if ($what != 'value') { return $this; } return parent::trackChange($what, $old, $new); }