Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/storage/PhabricatorProjectTrigger.php
| Show First 20 Lines • Show All 164 Lines • ▼ Show 20 Lines | if ($this->triggerRules === null) { | ||||
| } | } | ||||
| $this->triggerRules = $trigger_rules; | $this->triggerRules = $trigger_rules; | ||||
| } | } | ||||
| return $this->triggerRules; | return $this->triggerRules; | ||||
| } | } | ||||
| public function getDropEffects() { | |||||
| $effects = array(); | |||||
| $rules = $this->getTriggerRules(); | |||||
| foreach ($rules as $rule) { | |||||
| foreach ($rule->getDropEffects() as $effect) { | |||||
| $effects[] = $effect; | |||||
| } | |||||
| } | |||||
| return $effects; | |||||
| } | |||||
| public function getRulesDescription() { | public function getRulesDescription() { | ||||
| $rules = $this->getTriggerRules(); | $rules = $this->getTriggerRules(); | ||||
| if (!$rules) { | if (!$rules) { | ||||
| return pht('Does nothing.'); | return pht('Does nothing.'); | ||||
| } | } | ||||
| $things = array(); | $things = array(); | ||||
| ▲ Show 20 Lines • Show All 119 Lines • Show Last 20 Lines | |||||