Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phid/view/PHUIHandleListView.php
| Show All 32 Lines | public function setAsText($as_text) { | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function getAsText() { | public function getAsText() { | ||||
| return $this->asText; | return $this->asText; | ||||
| } | } | ||||
| protected function getTagName() { | protected function getTagName() { | ||||
| // TODO: It would be nice to render this with a proper <ul />, at least in | if ($this->getAsText()) { | ||||
| // block mode, but don't stir the waters up too much for now. | return null; | ||||
| } else { | |||||
| // TODO: It would be nice to render this with a proper <ul />, at least | |||||
| // in block mode, but don't stir the waters up too much for now. | |||||
| return 'span'; | return 'span'; | ||||
| } | } | ||||
| } | |||||
| protected function getTagContent() { | protected function getTagContent() { | ||||
| $list = $this->handleList; | $list = $this->handleList; | ||||
| $items = array(); | $items = array(); | ||||
| foreach ($list as $handle) { | foreach ($list as $handle) { | ||||
| $view = $list->renderHandle($handle->getPHID()) | $view = $list->renderHandle($handle->getPHID()) | ||||
| ->setShowHovercard(true) | ->setShowHovercard(true) | ||||
| ->setAsText($this->getAsText()); | ->setAsText($this->getAsText()); | ||||
| Show All 14 Lines | |||||