Changeset View
Changeset View
Standalone View
Standalone View
src/ref/revision/ArcanistRevisionRef.php
| Show First 20 Lines • Show All 83 Lines • ▼ Show 20 Lines | public static function newFromConduitQuery(array $dict) { | ||||
| return self::newFromConduit($dict); | return self::newFromConduit($dict); | ||||
| } | } | ||||
| public function getMonogram() { | public function getMonogram() { | ||||
| return 'D'.$this->getID(); | return 'D'.$this->getID(); | ||||
| } | } | ||||
| public function getStatusShortDisplayName() { | |||||
| if ($this->isStatusNeedsReview()) { | |||||
| return pht('Review'); | |||||
| } | |||||
| return idxv($this->parameters, array('fields', 'status', 'name')); | |||||
| } | |||||
| public function getStatusDisplayName() { | public function getStatusDisplayName() { | ||||
| return idxv($this->parameters, array('fields', 'status', 'name')); | return idxv($this->parameters, array('fields', 'status', 'name')); | ||||
| } | } | ||||
| public function getStatusANSIColor() { | public function getStatusANSIColor() { | ||||
| return idxv($this->parameters, array('fields', 'status', 'color.ansi')); | return idxv($this->parameters, array('fields', 'status', 'color.ansi')); | ||||
| } | } | ||||
| Show All 12 Lines | public function isStatusPublished() { | ||||
| return ($status === 'published'); | return ($status === 'published'); | ||||
| } | } | ||||
| public function isStatusAccepted() { | public function isStatusAccepted() { | ||||
| $status = $this->getStatus(); | $status = $this->getStatus(); | ||||
| return ($status === 'accepted'); | return ($status === 'accepted'); | ||||
| } | } | ||||
| public function isStatusNeedsReview() { | |||||
| $status = $this->getStatus(); | |||||
| return ($status === 'needs-review'); | |||||
| } | |||||
| public function getStatus() { | public function getStatus() { | ||||
| return idxv($this->parameters, array('fields', 'status', 'value')); | return idxv($this->parameters, array('fields', 'status', 'value')); | ||||
| } | } | ||||
| public function isClosed() { | public function isClosed() { | ||||
| return idxv($this->parameters, array('fields', 'status', 'closed')); | return idxv($this->parameters, array('fields', 'status', 'closed')); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 70 Lines • Show Last 20 Lines | |||||