Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/storage/PhabricatorProjectTrigger.php
Show First 20 Lines • Show All 239 Lines • ▼ Show 20 Lines | public function getPreviewEffect() { | ||||
return id(new PhabricatorProjectDropEffect()) | return id(new PhabricatorProjectDropEffect()) | ||||
->setIcon('fa-cogs') | ->setIcon('fa-cogs') | ||||
->setColor('blue') | ->setColor('blue') | ||||
->setIsHeader(true) | ->setIsHeader(true) | ||||
->setContent($header); | ->setContent($header); | ||||
} | } | ||||
public function getSoundEffects() { | |||||
$sounds = array(); | |||||
foreach ($this->getTriggerRules() as $rule) { | |||||
foreach ($rule->getSoundEffects() as $effect) { | |||||
$sounds[] = $effect; | |||||
} | |||||
} | |||||
return $sounds; | |||||
} | |||||
/* -( PhabricatorApplicationTransactionInterface )------------------------- */ | /* -( PhabricatorApplicationTransactionInterface )------------------------- */ | ||||
public function getApplicationTransactionEditor() { | public function getApplicationTransactionEditor() { | ||||
return new PhabricatorProjectTriggerEditor(); | return new PhabricatorProjectTriggerEditor(); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 51 Lines • Show Last 20 Lines |