public function getSummary() { $txt = ''; if ($this->areaHistoryModel->getIsNew()) { $txt .= 'New! ' . "\n"; } if ($this->areaHistoryModel->isAnyChangeFlagsUnknown()) { $txt .= $this->areaHistoryModel->getDescription(); } else { if ($this->areaHistoryModel->getTitleChanged()) { $txt .= 'Title Changed. ' . "\n"; } if ($this->areaHistoryModel->getDescriptionChanged()) { $txt .= 'Description Changed. ' . "\n"; } if ($this->areaHistoryModel->getParentAreaIdChanged()) { $txt .= 'Parent Area Changed. ' . "\n"; } if ($this->areaHistoryModel->getCountryIdChanged()) { $txt .= 'Country Changed. ' . "\n"; } if ($this->areaHistoryModel->getIsDeletedChanged()) { $txt .= 'Deleted Changed: ' . ($this->areaHistoryModel->getIsDeleted() ? "Deleted" : "Restored") . "\n\n"; } } return $txt; }