'/[a-z0-9\_\-]{3,}$/i', 'email' => VALID_EMAIL, 'password' => VALID_NOT_EMPTY ); function changePassword ($id = null, $hash = null) { $success = false; if ($id && $hash) { $this->id = $id; $success = $this->saveField('password', $hash); } return $success; } } ?>