@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
2
fork

Configure Feed

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

at recaptime-dev/main 40 lines 945 B view raw
1<?php 2 3final class PhabricatorConfigManualActivity 4 extends PhabricatorConfigEntryDAO { 5 6 protected $activityType; 7 protected $parameters = array(); 8 9 const TYPE_REINDEX = 'reindex'; 10 const TYPE_IDENTITIES = 'identities'; 11 12 13 protected function getConfiguration() { 14 return array( 15 self::CONFIG_TIMESTAMPS => false, 16 self::CONFIG_SERIALIZATION => array( 17 'parameters' => self::SERIALIZATION_JSON, 18 ), 19 self::CONFIG_COLUMN_SCHEMA => array( 20 'activityType' => 'text64', 21 ), 22 self::CONFIG_KEY_SCHEMA => array( 23 'key_type' => array( 24 'columns' => array('activityType'), 25 'unique' => true, 26 ), 27 ), 28 ) + parent::getConfiguration(); 29 } 30 31 public function setParameter($key, $value) { 32 $this->parameters[$key] = $value; 33 return $this; 34 } 35 36 public function getParameter($key, $default = null) { 37 return idx($this->parameters, $key, $default); 38 } 39 40}