@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 upstream/main 102 lines 2.0 kB view raw
1<?php 2 3abstract class PhabricatorEditEngineCommentAction extends Phobject { 4 5 private $key; 6 private $label; 7 private $value; 8 private $initialValue; 9 private $order; 10 private $groupKey; 11 private $conflictKey; 12 private $submitButtonText; 13 14 /** 15 * @return string Type of the control, for example 'checkboxes', 'points', 16 * 'remarkup', 'select', 'static', 'tokenizer', etc. 17 */ 18 abstract public function getPHUIXControlType(); 19 20 /** 21 * @return array 22 */ 23 abstract public function getPHUIXControlSpecification(); 24 25 public function setKey($key) { 26 $this->key = $key; 27 return $this; 28 } 29 30 public function getKey() { 31 return $this->key; 32 } 33 34 public function setGroupKey($group_key) { 35 $this->groupKey = $group_key; 36 return $this; 37 } 38 39 public function getGroupKey() { 40 return $this->groupKey; 41 } 42 43 public function setConflictKey($conflict_key) { 44 $this->conflictKey = $conflict_key; 45 return $this; 46 } 47 48 public function getConflictKey() { 49 return $this->conflictKey; 50 } 51 52 public function setLabel($label) { 53 $this->label = $label; 54 return $this; 55 } 56 57 public function getLabel() { 58 return $this->label; 59 } 60 61 public function setValue($value) { 62 $this->value = $value; 63 return $this; 64 } 65 66 public function getValue() { 67 return $this->value; 68 } 69 70 public function setOrder($order) { 71 $this->order = $order; 72 return $this; 73 } 74 75 public function getOrder() { 76 return $this->order; 77 } 78 79 public function getSortVector() { 80 return id(new PhutilSortVector()) 81 ->addInt($this->getOrder()); 82 } 83 84 public function setInitialValue($initial_value) { 85 $this->initialValue = $initial_value; 86 return $this; 87 } 88 89 public function getInitialValue() { 90 return $this->initialValue; 91 } 92 93 public function setSubmitButtonText($text) { 94 $this->submitButtonText = $text; 95 return $this; 96 } 97 98 public function getSubmitButtonText() { 99 return $this->submitButtonText; 100 } 101 102}