@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at recaptime-dev/main 50 lines 1.0 kB view raw
1<?php 2 3final class HeraldDoNothingAction extends HeraldAction { 4 5 const ACTIONCONST = 'nothing'; 6 const DO_NOTHING = 'do.nothing'; 7 8 public function getHeraldActionName() { 9 return pht('Do nothing'); 10 } 11 12 public function getActionGroupKey() { 13 return HeraldUtilityActionGroup::ACTIONGROUPKEY; 14 } 15 16 public function supportsObject($object) { 17 return true; 18 } 19 20 public function supportsRuleType($rule_type) { 21 return true; 22 } 23 24 public function applyEffect($object, HeraldEffect $effect) { 25 $this->logEffect(self::DO_NOTHING); 26 } 27 28 public function getHeraldActionStandardType() { 29 return self::STANDARD_NONE; 30 } 31 32 protected function getActionEffectMap() { 33 return array( 34 self::DO_NOTHING => array( 35 'icon' => 'fa-check', 36 'color' => 'grey', 37 'name' => pht('Did Nothing'), 38 ), 39 ); 40 } 41 42 public function renderActionDescription($value) { 43 return pht('Do nothing.'); 44 } 45 46 protected function renderActionEffectDescription($type, $data) { 47 return pht('Did nothing.'); 48 } 49 50}