value = $object->getRealName(); } public function getOldValueForApplicationTransactions() { return $this->getObject()->getRealName(); } public function getNewValueForApplicationTransactions() { if (!$this->isEditable()) { return $this->getObject()->getRealName(); } return $this->value; } public function applyApplicationTransactionInternalEffects( PhabricatorApplicationTransaction $xaction) { $this->getObject()->setRealName($xaction->getNewValue()); } public function readValueFromRequest(AphrontRequest $request) { $this->value = $request->getStr($this->getFieldKey()); } public function renderEditControl() { return id(new AphrontFormTextControl()) ->setName($this->getFieldKey()) ->setValue($this->value) ->setLabel($this->getFieldName()) ->setDisabled(!$this->isEditable()); } private function isEditable() { return PhabricatorEnv::getEnvConfig('account.editable'); } }