Changeset View
Changeset View
Standalone View
Standalone View
src/view/phui/PHUIHovercardView.php
| Show All 12 Lines | final class PHUIHovercardView extends AphrontTagView { | ||||
| private $object; | private $object; | ||||
| private $title = array(); | private $title = array(); | ||||
| private $detail; | private $detail; | ||||
| private $tags = array(); | private $tags = array(); | ||||
| private $fields = array(); | private $fields = array(); | ||||
| private $actions = array(); | private $actions = array(); | ||||
| private $badges = array(); | private $badges = array(); | ||||
| private $isExiled; | |||||
| public function setObjectHandle(PhabricatorObjectHandle $handle) { | public function setObjectHandle(PhabricatorObjectHandle $handle) { | ||||
| $this->handle = $handle; | $this->handle = $handle; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function setObject($object) { | public function setObject($object) { | ||||
| $this->object = $object; | $this->object = $object; | ||||
| Show All 9 Lines | public function setTitle($title) { | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function setDetail($detail) { | public function setDetail($detail) { | ||||
| $this->detail = $detail; | $this->detail = $detail; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function setIsExiled($is_exiled) { | |||||
| $this->isExiled = $is_exiled; | |||||
| return $this; | |||||
| } | |||||
| public function getIsExiled() { | |||||
| return $this->isExiled; | |||||
| } | |||||
| public function addField($label, $value) { | public function addField($label, $value) { | ||||
| $this->fields[] = array( | $this->fields[] = array( | ||||
| 'label' => $label, | 'label' => $label, | ||||
| 'value' => $value, | 'value' => $value, | ||||
| ); | ); | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 157 Lines • Show Last 20 Lines | |||||