Changeset View
Changeset View
Standalone View
Standalone View
src/view/AphrontDialogView.php
Show First 20 Lines • Show All 154 Lines • ▼ Show 20 Lines | final class AphrontDialogView | ||||
public function setObjectList(PHUIObjectItemListView $list) { | public function setObjectList(PHUIObjectItemListView $list) { | ||||
$this->objectList = true; | $this->objectList = true; | ||||
$box = id(new PHUIObjectBoxView()) | $box = id(new PHUIObjectBoxView()) | ||||
->setObjectList($list); | ->setObjectList($list); | ||||
return $this->appendChild($box); | return $this->appendChild($box); | ||||
} | } | ||||
public function appendRemarkup($remarkup) { | |||||
$viewer = $this->getViewer(); | |||||
$view = new PHUIRemarkupView($viewer, $remarkup); | |||||
$view_tag = phutil_tag( | |||||
'div', | |||||
array( | |||||
'class' => 'aphront-dialog-view-paragraph', | |||||
), | |||||
$view); | |||||
return $this->appendChild($view_tag); | |||||
} | |||||
public function appendParagraph($paragraph) { | public function appendParagraph($paragraph) { | ||||
return $this->appendParagraphTag($paragraph); | return $this->appendParagraphTag($paragraph); | ||||
} | } | ||||
public function appendCommand($command) { | public function appendCommand($command) { | ||||
$command_tag = phutil_tag('tt', array(), $command); | $command_tag = phutil_tag('tt', array(), $command); | ||||
return $this->appendParagraphTag( | return $this->appendParagraphTag( | ||||
$command_tag, | $command_tag, | ||||
▲ Show 20 Lines • Show All 286 Lines • Show Last 20 Lines |