Changeset View
Changeset View
Standalone View
Standalone View
src/applications/herald/adapter/HeraldManiphestTaskAdapter.php
| Show First 20 Lines • Show All 134 Lines • ▼ Show 20 Lines | switch ($field) { | ||||
| return $this->getTask()->getDescription(); | return $this->getTask()->getDescription(); | ||||
| case self::FIELD_AUTHOR: | case self::FIELD_AUTHOR: | ||||
| return $this->getTask()->getAuthorPHID(); | return $this->getTask()->getAuthorPHID(); | ||||
| case self::FIELD_ASSIGNEE: | case self::FIELD_ASSIGNEE: | ||||
| return $this->getTask()->getOwnerPHID(); | return $this->getTask()->getOwnerPHID(); | ||||
| case self::FIELD_CC: | case self::FIELD_CC: | ||||
| return $this->getTask()->getCCPHIDs(); | return $this->getTask()->getCCPHIDs(); | ||||
| case self::FIELD_PROJECTS: | case self::FIELD_PROJECTS: | ||||
| return $this->getTask()->getProjectPHIDs(); | return PhabricatorEdgeQuery::loadDestinationPHIDs( | ||||
| $this->getTask()->getPHID(), | |||||
| PhabricatorProjectObjectHasProjectEdgeType::EDGECONST); | |||||
| case self::FIELD_TASK_PRIORITY: | case self::FIELD_TASK_PRIORITY: | ||||
| return $this->getTask()->getPriority(); | return $this->getTask()->getPriority(); | ||||
| } | } | ||||
| return parent::getHeraldField($field); | return parent::getHeraldField($field); | ||||
| } | } | ||||
| public function applyHeraldEffects(array $effects) { | public function applyHeraldEffects(array $effects) { | ||||
| ▲ Show 20 Lines • Show All 71 Lines • Show Last 20 Lines | |||||