Differential D15045 Diff 36333 src/applications/transactions/editfield/PhabricatorStringListEditField.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/editfield/PhabricatorStringListEditField.php
<?php | <?php | ||||
final class PhabricatorStringListEditField | final class PhabricatorStringListEditField | ||||
extends PhabricatorEditField { | extends PhabricatorEditField { | ||||
protected function newControl() { | protected function newControl() { | ||||
return new AphrontFormTextControl(); | return new AphrontFormTextControl(); | ||||
} | } | ||||
protected function getValueForControl() { | |||||
$value = $this->getValue(); | |||||
return implode(', ', $value); | |||||
} | |||||
protected function newConduitParameterType() { | protected function newConduitParameterType() { | ||||
return new ConduitStringListParameterType(); | return new ConduitStringListParameterType(); | ||||
} | } | ||||
protected function newHTTPParameterType() { | protected function newHTTPParameterType() { | ||||
return new AphrontStringListHTTPParameterType(); | return new AphrontStringListHTTPParameterType(); | ||||
} | } | ||||
} | } |