3 final class PhabricatorStandardCustomFieldBlueprints
4 extends PhabricatorStandardCustomFieldTokenizer
{
6 public function getFieldType() {
10 public function getDatasource() {
11 return new DrydockBlueprintDatasource();
14 public function applyApplicationTransactionExternalEffects(
15 PhabricatorApplicationTransaction
$xaction) {
17 $old = $this->decodeValue($xaction->getOldValue());
18 $new = $this->decodeValue($xaction->getNewValue());
20 DrydockAuthorization
::applyAuthorizationChanges(
22 $xaction->getObjectPHID(),
27 public function renderPropertyViewValue(array $handles) {
28 $value = $this->getFieldValue();
30 return phutil_tag('em', array(), pht('No authorized blueprints.'));
33 return id(new DrydockObjectAuthorizationView())
34 ->setUser($this->getViewer())
35 ->setObjectPHID($this->getObject()->getPHID())
36 ->setBlueprintPHIDs($value);