public function reset(){ parent::reset(); $fields = array('name', 'username', 'email', 'blocked', 'registerDate', 'lastvisitDate'); foreach ($fields as $field) { $this->$field = null; } }
function reset() { parent::reset(); $this->message = null; }
public function reset() { parent::reset(); $fields = array('name', 'username', 'blocked'); foreach ($fields as $field) { $this->{$field} = ''; } }