Path: blob/master/src/applications/differential/customfield/DifferentialAuditorsField.php
12256 views
<?php12final class DifferentialAuditorsField3extends DifferentialStoredCustomField {45public function getFieldKey() {6return 'phabricator:auditors';7}89public function getFieldName() {10return pht('Auditors');11}1213public function getFieldDescription() {14return pht('Allows commits to trigger audits explicitly.');15}1617public function getValueForStorage() {18return phutil_json_encode($this->getValue());19}2021public function setValueFromStorage($value) {22try {23$this->setValue(phutil_json_decode($value));24} catch (PhutilJSONParserException $ex) {25$this->setValue(array());26}27return $this;28}2930public function canDisableField() {31return false;32}3334public function shouldAppearInEditEngine() {35return true;36}3738public function shouldAppearInConduitTransactions() {39return true;40}4142protected function newConduitEditParameterType() {43return new ConduitPHIDListParameterType();44}4546public function shouldAppearInApplicationTransactions() {47return true;48}4950}515253