Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/storage/PhabricatorProjectColumn.php
| Show First 20 Lines • Show All 212 Lines • ▼ Show 20 Lines | final class PhabricatorProjectColumn | ||||
| } | } | ||||
| public function getBoardURI() { | public function getBoardURI() { | ||||
| return urisprintf( | return urisprintf( | ||||
| '/project/board/%d/', | '/project/board/%d/', | ||||
| $this->getProject()->getID()); | $this->getProject()->getID()); | ||||
| } | } | ||||
| public function getDropEffects() { | |||||
| $effects = array(); | |||||
| $proxy = $this->getProxy(); | |||||
| if ($proxy && $proxy->isMilestone()) { | |||||
| $effects[] = id(new PhabricatorProjectDropEffect()) | |||||
| ->setIcon($proxy->getProxyColumnIcon()) | |||||
| ->setColor('violet') | |||||
| ->setContent( | |||||
| pht( | |||||
| 'Move to milestone %s.', | |||||
| phutil_tag('strong', array(), $this->getDisplayName()))); | |||||
| } else { | |||||
| $effects[] = id(new PhabricatorProjectDropEffect()) | |||||
| ->setIcon('fa-columns') | |||||
| ->setColor('blue') | |||||
| ->setContent( | |||||
| pht( | |||||
| 'Move to column %s.', | |||||
| phutil_tag('strong', array(), $this->getDisplayName()))); | |||||
| } | |||||
| if ($this->canHaveTrigger()) { | |||||
| $trigger = $this->getTrigger(); | |||||
| if ($trigger) { | |||||
| foreach ($trigger->getDropEffects() as $trigger_effect) { | |||||
| $effects[] = $trigger_effect; | |||||
| } | |||||
| } | |||||
| } | |||||
| return $effects; | |||||
| } | |||||
| /* -( PhabricatorConduitResultInterface )---------------------------------- */ | /* -( PhabricatorConduitResultInterface )---------------------------------- */ | ||||
| public function getFieldSpecificationsForConduit() { | public function getFieldSpecificationsForConduit() { | ||||
| return array( | return array( | ||||
| id(new PhabricatorConduitSearchFieldSpecification()) | id(new PhabricatorConduitSearchFieldSpecification()) | ||||
| ->setKey('name') | ->setKey('name') | ||||
| ->setType('string') | ->setType('string') | ||||
| ▲ Show 20 Lines • Show All 101 Lines • Show Last 20 Lines | |||||