Differential D14607 Diff 35339 src/applications/transactions/editfield/PhabricatorCommentEditField.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/editfield/PhabricatorCommentEditField.php
| <?php | <?php | ||||
| final class PhabricatorCommentEditField | final class PhabricatorCommentEditField | ||||
| extends PhabricatorEditField { | extends PhabricatorEditField { | ||||
| protected function newControl() { | protected function newControl() { | ||||
| return new PhabricatorRemarkupControl(); | return new PhabricatorRemarkupControl(); | ||||
| } | } | ||||
| protected function newEditType() { | protected function newEditType() { | ||||
| return new PhabricatorCommentEditType(); | return new PhabricatorCommentEditType(); | ||||
| } | } | ||||
| public function generateTransaction( | |||||
| PhabricatorApplicationTransaction $xaction) { | |||||
| $spec = array( | |||||
| 'value' => $this->getValueForTransaction(), | |||||
| ); | |||||
| return head($this->getEditTransactionTypes()) | |||||
| ->generateTransaction($xaction, $spec); | |||||
| } | |||||
| } | } | ||||