Differential D17067 Diff 41083 src/applications/differential/field/DifferentialCommitMessageField.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/field/DifferentialCommitMessageField.php
| Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | abstract class DifferentialCommitMessageField | ||||
| public function renderFieldValue($value) { | public function renderFieldValue($value) { | ||||
| if (!strlen($value)) { | if (!strlen($value)) { | ||||
| return null; | return null; | ||||
| } | } | ||||
| return $value; | return $value; | ||||
| } | } | ||||
| public function getFieldTransactions($value) { | |||||
| if (!$this->isFieldEditable()) { | |||||
| return array(); | |||||
| } | |||||
| throw new PhutilMethodNotImplementedException(); | |||||
| } | |||||
| final public function getCommitMessageFieldKey() { | final public function getCommitMessageFieldKey() { | ||||
| return $this->getPhobjectClassConstant('FIELDKEY', 64); | return $this->getPhobjectClassConstant('FIELDKEY', 64); | ||||
| } | } | ||||
| final public static function newEnabledFields(PhabricatorUser $viewer) { | final public static function newEnabledFields(PhabricatorUser $viewer) { | ||||
| $fields = self::getAllFields(); | $fields = self::getAllFields(); | ||||
| $results = array(); | $results = array(); | ||||
| ▲ Show 20 Lines • Show All 107 Lines • Show Last 20 Lines | |||||