public function getSummary() { $txt = ''; if ($this->groupHistoryModel->getIsNew()) { $txt .= 'New! ' . "\n"; } if ($this->groupHistoryModel->isAnyChangeFlagsUnknown()) { $txt .= $this->groupHistoryModel->getDescription(); } else { if ($this->groupHistoryModel->getTitleChanged()) { $txt .= 'Title Changed. ' . "\n"; } if ($this->groupHistoryModel->getDescriptionChanged()) { $txt .= 'Description Changed. ' . "\n"; } if ($this->groupHistoryModel->getUrlChanged()) { $txt .= 'URL Changed. ' . "\n"; } if ($this->groupHistoryModel->getTwitterUsernameChanged()) { $txt .= 'Twitter Changed. ' . "\n"; } if ($this->groupHistoryModel->getIsDeletedChanged()) { $txt .= 'Deleted Changed: ' . ($this->groupHistoryModel->getIsDeleted() ? "Deleted" : "Restored") . "\n\n"; } } return $txt; }