Path: blob/master/src/infrastructure/diff/view/PHUIDiffOneUpInlineCommentRowScaffold.php
12242 views
<?php12/**3* Row scaffold for `1up` (unified) changeset views.4*5* This scaffold is straightforward.6*/7final class PHUIDiffOneUpInlineCommentRowScaffold8extends PHUIDiffInlineCommentRowScaffold {910public function render() {11$inlines = $this->getInlineViews();12if (count($inlines) != 1) {13throw new Exception(14pht('One-up inline row scaffold must have exactly one inline view!'));15}16$inline = head($inlines);1718$attrs = array(19'colspan' => 2,20'id' => $inline->getScaffoldCellID(),21);2223if ($inline->getIsOnRight()) {24$left_hidden = null;25$right_hidden = $inline->newHiddenIcon();26} else {27$left_hidden = $inline->newHiddenIcon();28$right_hidden = null;29}3031$cells = array(32phutil_tag('td', array('class' => 'n'), $left_hidden),33phutil_tag('td', array('class' => 'n'), $right_hidden),34phutil_tag('td', array('class' => 'copy')),35phutil_tag('td', $attrs, $inline),36);3738return javelin_tag('tr', $this->getRowAttributes(), $cells);39}4041}424344