Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/customfield/PhabricatorUserTitleField.php
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | public function applyApplicationTransactionInternalEffects( | ||||
PhabricatorApplicationTransaction $xaction) { | PhabricatorApplicationTransaction $xaction) { | ||||
$this->getObject()->loadUserProfile()->setTitle($xaction->getNewValue()); | $this->getObject()->loadUserProfile()->setTitle($xaction->getNewValue()); | ||||
} | } | ||||
public function readValueFromRequest(AphrontRequest $request) { | public function readValueFromRequest(AphrontRequest $request) { | ||||
$this->value = $request->getStr($this->getFieldKey()); | $this->value = $request->getStr($this->getFieldKey()); | ||||
} | } | ||||
public function renderEditControl() { | public function renderEditControl(array $handles) { | ||||
return id(new AphrontFormTextControl()) | return id(new AphrontFormTextControl()) | ||||
->setName($this->getFieldKey()) | ->setName($this->getFieldKey()) | ||||
->setValue($this->value) | ->setValue($this->value) | ||||
->setLabel($this->getFieldName()) | ->setLabel($this->getFieldName()) | ||||
->setCaption(pht('Serious business title.')); | ->setCaption(pht('Serious business title.')); | ||||
} | } | ||||
} | } |