Changeset View
Changeset View
Standalone View
Standalone View
src/view/phui/PHUIObjectItemView.php
Show First 20 Lines • Show All 317 Lines • ▼ Show 20 Lines | protected function getTagAttributes() { | ||||
} | } | ||||
return array( | return array( | ||||
'class' => $item_classes, | 'class' => $item_classes, | ||||
); | ); | ||||
} | } | ||||
protected function getTagContent() { | protected function getTagContent() { | ||||
$viewer = $this->getUser(); | |||||
$content_classes = array(); | $content_classes = array(); | ||||
$content_classes[] = 'phui-object-item-content'; | $content_classes[] = 'phui-object-item-content'; | ||||
$header_name = null; | $header_name = array(); | ||||
if ($viewer) { | |||||
$header_name[] = id(new PHUISpacesNamespaceContextView()) | |||||
->setUser($viewer) | |||||
->setObject($this->object); | |||||
} | |||||
if ($this->objectName) { | if ($this->objectName) { | ||||
$header_name = array( | $header_name[] = array( | ||||
phutil_tag( | phutil_tag( | ||||
'span', | 'span', | ||||
array( | array( | ||||
'class' => 'phui-object-item-objname', | 'class' => 'phui-object-item-objname', | ||||
), | ), | ||||
$this->objectName), | $this->objectName), | ||||
' ', | ' ', | ||||
); | ); | ||||
▲ Show 20 Lines • Show All 350 Lines • Show Last 20 Lines |