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