buildPrimitives($range_start, $range_len); $out = array(); foreach ($primitives as $p) { $type = $p['type']; switch ($type) { case 'old': case 'new': $out[] = ''; if ($type == 'old') { if ($p['htype']) { $class = 'left old'; } else { $class = 'left'; } $out[] = ''.$p['line'].''; $out[] = ''; $out[] = ''.$p['render'].''; } else if ($type == 'new') { if ($p['htype']) { $class = 'right new'; $out[] = ''; } else { $class = 'right'; $out[] = ''.$p['oline'].''; } $out[] = ''.$p['line'].''; $out[] = ''.$p['render'].''; } $out[] = ''; break; case 'inline': $out[] = ''; $out[] = ''; $inline = $this->buildInlineComment( $p['comment'], $p['right']); $inline->setBuildScaffolding(false); $out[] = $inline->render(); $out[] = ''; break; default: $out[] = ''.$type.''; break; } } if ($out) { return $this->wrapChangeInTable(implode('', $out)); } return null; } public function renderFileChange($old_file = null, $new_file = null, $id = 0, $vs = 0) { throw new Exception("Not implemented!"); } }