Changeset View
Changeset View
Standalone View
Standalone View
src/view/phui/PHUIObjectItemView.php
| Show All 24 Lines | final class PHUIObjectItemView extends AphrontTagView { | ||||
| private $titleText; | private $titleText; | ||||
| private $badge; | private $badge; | ||||
| private $countdownNum; | private $countdownNum; | ||||
| private $countdownNoun; | private $countdownNoun; | ||||
| private $sideColumn; | private $sideColumn; | ||||
| private $coverImage; | private $coverImage; | ||||
| private $description; | private $description; | ||||
| private $clickable; | private $clickable; | ||||
| private $propertyLists = array(); | private $mapViews = array(); | ||||
| private $selectableName; | private $selectableName; | ||||
| private $selectableValue; | private $selectableValue; | ||||
| private $isSelected; | private $isSelected; | ||||
| private $isForbidden; | private $isForbidden; | ||||
| public function setDisabled($disabled) { | public function setDisabled($disabled) { | ||||
| $this->disabled = $disabled; | $this->disabled = $disabled; | ||||
| ▲ Show 20 Lines • Show All 173 Lines • ▼ Show 20 Lines | final class PHUIObjectItemView extends AphrontTagView { | ||||
| } | } | ||||
| public function newAction() { | public function newAction() { | ||||
| $action = new PhabricatorActionView(); | $action = new PhabricatorActionView(); | ||||
| $this->actionItems[] = $action; | $this->actionItems[] = $action; | ||||
| return $action; | return $action; | ||||
| } | } | ||||
| public function newPropertyList() { | public function newMapView() { | ||||
| $list = new PHUIPropertyListView(); | $list = id(new FuelMapView()) | ||||
| $this->propertyLists[] = $list; | ->addClass('fuel-map-property-list'); | ||||
| $this->mapViews[] = $list; | |||||
| return $list; | return $list; | ||||
| } | } | ||||
| /** | /** | ||||
| * This method has been deprecated, use @{method:setImageIcon} instead. | * This method has been deprecated, use @{method:setImageIcon} instead. | ||||
| * | * | ||||
| * @deprecated | * @deprecated | ||||
| */ | */ | ||||
| ▲ Show 20 Lines • Show All 373 Lines • ▼ Show 20 Lines | if ($this->getGrippable() !== null) { | ||||
| $grippable = phutil_tag( | $grippable = phutil_tag( | ||||
| 'div', | 'div', | ||||
| array( | array( | ||||
| 'class' => 'phui-oi-grip', | 'class' => 'phui-oi-grip', | ||||
| ), | ), | ||||
| ''); | ''); | ||||
| } | } | ||||
| $property_lists = null; | $map_views = null; | ||||
| if ($this->propertyLists) { | if ($this->mapViews) { | ||||
| $property_lists[] = phutil_tag( | $grid = id(new FuelGridView()) | ||||
| 'div', | ->addClass('fuel-grid-property-list'); | ||||
| array(), | |||||
| $this->propertyLists); | $row = $grid->newRow(); | ||||
| foreach ($this->mapViews as $map_view) { | |||||
| $row->newCell() | |||||
| ->setContent($map_view); | |||||
| } | |||||
| $map_views = $grid; | |||||
| } | } | ||||
| $content = phutil_tag( | $content = phutil_tag( | ||||
| 'div', | 'div', | ||||
| array( | array( | ||||
| 'class' => implode(' ', $content_classes), | 'class' => implode(' ', $content_classes), | ||||
| ), | ), | ||||
| array( | array( | ||||
| $subhead, | $subhead, | ||||
| $attrs, | $attrs, | ||||
| $property_lists, | $map_views, | ||||
| $this->renderChildren(), | $this->renderChildren(), | ||||
| )); | )); | ||||
| $image = null; | $image = null; | ||||
| if ($this->getImageURI()) { | if ($this->getImageURI()) { | ||||
| $image = phutil_tag( | $image = phutil_tag( | ||||
| 'div', | 'div', | ||||
| array( | array( | ||||
| ▲ Show 20 Lines • Show All 254 Lines • Show Last 20 Lines | |||||