/** * Record class-specific differences. * 'orig' is the same as {@link $_object}, but is passed here for convenience. * @param CHANGE $orig * @param CHANGE $new * @access private */ protected function _record_differences($orig, $new) { $this->_record_text_difference('Files', $orig->files, $new->files); if ($orig->job_id != $new->job_id) { $this->_record_object_difference('Job', $orig->job(), $new->job(), '(no job)', '\'', '\''); } parent::_record_differences($orig, $new); }
/** * Outputs the object as plain text. * @param CHANGE $entry * @access private */ protected function _display_as_plain_text($entry) { echo $this->line('[Kind]: ' . $entry->kind_as_text()); $job = $entry->job(); if (isset($job)) { echo $this->line('[Job]: ' . $job->title_as_plain_text()); } $this->_echo_plain_text_user_information($entry); $this->_echo_branches_as_plain_text($entry); $this->_echo_plain_text_description($entry); $this->_echo_plain_text_extra_description($entry); }