Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/editengine/PhabricatorEditEngine.php
| Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Lines | /* -( Managing Fields )---------------------------------------------------- */ | ||||
| abstract public function getEngineApplicationClass(); | abstract public function getEngineApplicationClass(); | ||||
| abstract protected function buildCustomEditFields($object); | abstract protected function buildCustomEditFields($object); | ||||
| public function getFieldsForConfig( | public function getFieldsForConfig( | ||||
| PhabricatorEditEngineConfiguration $config) { | PhabricatorEditEngineConfiguration $config) { | ||||
| $object = $this->newEditableObject(); | $object = $this->newEditableObject(); | ||||
| $this->editEngineConfiguration = $config; | $this->editEngineConfiguration = $config; | ||||
| // This is mostly making sure that we fill in default values. | |||||
| $this->setIsCreate(true); | |||||
| return $this->buildEditFields($object); | return $this->buildEditFields($object); | ||||
| } | } | ||||
| final protected function buildEditFields($object) { | final protected function buildEditFields($object) { | ||||
| $viewer = $this->getViewer(); | $viewer = $this->getViewer(); | ||||
| $editor = $object->getApplicationTransactionEditor(); | $editor = $object->getApplicationTransactionEditor(); | ||||
| $types = $editor->getTransactionTypesForObject($object); | $types = $editor->getTransactionTypesForObject($object); | ||||
| ▲ Show 20 Lines • Show All 966 Lines • Show Last 20 Lines | |||||