Changeset View
Changeset View
Standalone View
Standalone View
src/view/phui/PHUIObjectItemView.php
Show First 20 Lines • Show All 186 Lines • ▼ Show 20 Lines | public function setClickable($clickable) { | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getClickable() { | public function getClickable() { | ||||
return $this->clickable; | return $this->clickable; | ||||
} | } | ||||
public function setEpoch($epoch) { | public function setEpoch($epoch) { | ||||
$date = phabricator_datetime($epoch, $this->getUser()); | $date = phabricator_dual_datetime($epoch, $this->getUser()); | ||||
$this->addIcon('none', $date); | $this->addIcon('none', $date); | ||||
return $this; | return $this; | ||||
} | } | ||||
public function addAction(PHUIListItemView $action) { | public function addAction(PHUIListItemView $action) { | ||||
if (count($this->actions) >= 3) { | if (count($this->actions) >= 3) { | ||||
throw new Exception(pht('Limit 3 actions per item.')); | throw new Exception(pht('Limit 3 actions per item.')); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 698 Lines • Show Last 20 Lines |