Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/storage/ManiphestTask.php
| Show First 20 Lines • Show All 188 Lines • ▼ Show 20 Lines | public function save() { | ||||
| return $result; | return $result; | ||||
| } | } | ||||
| public function isClosed() { | public function isClosed() { | ||||
| return ManiphestTaskStatus::isClosedStatus($this->getStatus()); | return ManiphestTaskStatus::isClosedStatus($this->getStatus()); | ||||
| } | } | ||||
| public function getPrioritySortVector() { | |||||
| return array( | |||||
| $this->getPriority(), | |||||
| -$this->getSubpriority(), | |||||
| $this->getID(), | |||||
| ); | |||||
| } | |||||
| public function setProperty($key, $value) { | public function setProperty($key, $value) { | ||||
| $this->properties[$key] = $value; | $this->properties[$key] = $value; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function getProperty($key, $default = null) { | public function getProperty($key, $default = null) { | ||||
| return idx($this->properties, $key, $default); | return idx($this->properties, $key, $default); | ||||
| } | } | ||||
| public function getCoverImageFilePHID() { | public function getCoverImageFilePHID() { | ||||
| return idx($this->properties, 'cover.filePHID'); | return idx($this->properties, 'cover.filePHID'); | ||||
| } | } | ||||
| public function getCoverImageThumbnailPHID() { | public function getCoverImageThumbnailPHID() { | ||||
| return idx($this->properties, 'cover.thumbnailPHID'); | return idx($this->properties, 'cover.thumbnailPHID'); | ||||
| } | } | ||||
| public function getWorkboardOrderVectors() { | |||||
| return array( | |||||
| PhabricatorProjectColumn::ORDER_PRIORITY => array( | |||||
| (int)-$this->getPriority(), | |||||
| (double)-$this->getSubpriority(), | |||||
| (int)-$this->getID(), | |||||
| ), | |||||
| ); | |||||
| } | |||||
| /* -( PhabricatorSubscribableInterface )----------------------------------- */ | /* -( PhabricatorSubscribableInterface )----------------------------------- */ | ||||
| public function isAutomaticallySubscribed($phid) { | public function isAutomaticallySubscribed($phid) { | ||||
| return ($phid == $this->getOwnerPHID()); | return ($phid == $this->getOwnerPHID()); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 235 Lines • Show Last 20 Lines | |||||