Changeset View
Changeset View
Standalone View
Standalone View
src/applications/release/storage/ReleaseRelease.php
| Show First 20 Lines • Show All 141 Lines • ▼ Show 20 Lines | final class ReleaseRelease extends PhabricatorReleaseDAO | ||||
| public static function getOpenStates() { | public static function getOpenStates() { | ||||
| return array( | return array( | ||||
| self::STATE_PLANNED, | self::STATE_PLANNED, | ||||
| self::STATE_TESTING, | self::STATE_TESTING, | ||||
| self::STATE_PRODUCTION, | self::STATE_PRODUCTION, | ||||
| ); | ); | ||||
| } | } | ||||
| public function canAcceptChangeRequests() { | |||||
| $states = array( | |||||
| self::STATE_PLANNED => true, | |||||
| self::STATE_TESTING => true, | |||||
| ); | |||||
| return idx($states, $this->getState(), false); | |||||
| } | |||||
| public function getCurrentRefs() { | public function getCurrentRefs() { | ||||
| return $this->getDetail(self::DETAIL_CURRENTREF, array()); | return $this->getDetail(self::DETAIL_CURRENTREF, array()); | ||||
| } | } | ||||
| public function getCutpoints() { | public function getCutpoints() { | ||||
| return $this->getDetail(self::DETAIL_CUTPOINTS, array()); | return $this->getDetail(self::DETAIL_CUTPOINTS, array()); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 136 Lines • Show Last 20 Lines | |||||