Differential D14635 Diff 35412 src/infrastructure/customfield/editor/PhabricatorCustomFieldEditType.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/customfield/editor/PhabricatorCustomFieldEditType.php
| <?php | <?php | ||||
| final class PhabricatorCustomFieldEditType | final class PhabricatorCustomFieldEditType | ||||
| extends PhabricatorEditType { | extends PhabricatorEditType { | ||||
| private $customField; | private $customField; | ||||
| private $valueType; | |||||
| public function setCustomField(PhabricatorCustomField $custom_field) { | public function setCustomField(PhabricatorCustomField $custom_field) { | ||||
| $this->customField = $custom_field; | $this->customField = $custom_field; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function getCustomField() { | public function getCustomField() { | ||||
| return $this->customField; | return $this->customField; | ||||
| } | } | ||||
| public function setValueType($value_type) { | |||||
| $this->valueType = $value_type; | |||||
| return $this; | |||||
| } | |||||
| public function getValueType() { | public function getValueType() { | ||||
| // TODO: Improve. | return $this->valueType; | ||||
| return 'custom'; | |||||
| } | } | ||||
| public function getMetadata() { | public function getMetadata() { | ||||
| $field = $this->getCustomField(); | $field = $this->getCustomField(); | ||||
| return parent::getMetadata() + $field->getApplicationTransactionMetadata(); | return parent::getMetadata() + $field->getApplicationTransactionMetadata(); | ||||
| } | } | ||||
| public function getValueDescription() { | public function getValueDescription() { | ||||
| Show All 26 Lines | |||||