/** * Outputs the object as plain text. * @param HISTORY_ITEM $obj * @access private */ protected function _display_as_plain_text($obj) { $creator = $obj->creator(); echo $this->line(ucfirst($obj->kind_as_text()) . ' by ' . $creator->title_as_plain_text() . ' - ' . $this->time($obj->time_created)); echo $this->line($this->sep()); if (!$obj->description && !$obj->system_description) { switch ($obj->kind) { case History_item_created: echo $this->line('Created.'); break; case History_item_deleted: echo $this->line('Deleted.'); break; } } else { if ($obj->description) { echo $this->line($obj->description_as_plain_text()); } echo $obj->system_description_as_plain_text(); } }