Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/editengine/PhabricatorEditEngine.php
| Show First 20 Lines • Show All 1,042 Lines • ▼ Show 20 Lines | /* -( Conduit )------------------------------------------------------------ */ | ||||
| /** | /** | ||||
| * @return map<string, PhabricatorEditType> | * @return map<string, PhabricatorEditType> | ||||
| * @task conduit | * @task conduit | ||||
| */ | */ | ||||
| private function getAllEditTypesFromFields(array $fields) { | private function getAllEditTypesFromFields(array $fields) { | ||||
| $types = array(); | $types = array(); | ||||
| foreach ($fields as $field) { | foreach ($fields as $field) { | ||||
| $field_types = $field->getEditTransactionTypes(); | $field_types = $field->getEditTransactionTypes(); | ||||
| if ($field_types === null) { | |||||
| continue; | |||||
| } | |||||
| foreach ($field_types as $field_type) { | foreach ($field_types as $field_type) { | ||||
| $field_type->setField($field); | $field_type->setField($field); | ||||
| $types[$field_type->getEditType()] = $field_type; | $types[$field_type->getEditType()] = $field_type; | ||||
| } | } | ||||
| } | } | ||||
| return $types; | return $types; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines | |||||