fork
Configure Feed
Select the types of activity you want to include in your feed.
@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
fork
Configure Feed
Select the types of activity you want to include in your feed.
1<?php
2
3final class PhabricatorStandardCustomFieldBlueprints
4 extends PhabricatorStandardCustomFieldTokenizer {
5
6 public function getFieldType() {
7 return 'blueprints';
8 }
9
10 public function getDatasource() {
11 return new DrydockBlueprintDatasource();
12 }
13
14 public function applyApplicationTransactionExternalEffects(
15 PhabricatorApplicationTransaction $xaction) {
16
17 $old = $this->decodeValue($xaction->getOldValue());
18 $new = $this->decodeValue($xaction->getNewValue());
19
20 DrydockAuthorization::applyAuthorizationChanges(
21 $this->getViewer(),
22 $xaction->getObjectPHID(),
23 $old,
24 $new);
25 }
26
27 protected function renderValue() {
28 $value = $this->getFieldValue();
29 if (!$value) {
30 return phutil_tag('em', array(), pht('No authorized blueprints.'));
31 }
32
33 return id(new DrydockObjectAuthorizationView())
34 ->setUser($this->getViewer())
35 ->setObjectPHID($this->getObject()->getPHID())
36 ->setBlueprintPHIDs($value);
37 }
38
39
40
41}