Differential D14634 Diff 35411 src/applications/transactions/view/PhabricatorApplicationEditHTTPParameterHelpView.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/view/PhabricatorApplicationEditHTTPParameterHelpView.php
| Show First 20 Lines • Show All 89 Lines • ▼ Show 20 Lines | EOTEXT | ||||
| , | , | ||||
| $uri, | $uri, | ||||
| $uri); | $uri); | ||||
| $rows = array(); | $rows = array(); | ||||
| foreach ($fields as $field) { | foreach ($fields as $field) { | ||||
| $rows[] = array( | $rows[] = array( | ||||
| $field->getLabel(), | $field->getLabel(), | ||||
| $field->getKey(), | head($field->getAllReadValueFromRequestKeys()), | ||||
| $field->getHTTPParameterType()->getTypeName(), | $field->getHTTPParameterType()->getTypeName(), | ||||
| $field->getDescription(), | $field->getDescription(), | ||||
| ); | ); | ||||
| } | } | ||||
| $main_table = id(new AphrontTableView($rows)) | $main_table = id(new AphrontTableView($rows)) | ||||
| ->setHeaders( | ->setHeaders( | ||||
| array( | array( | ||||
| Show All 38 Lines | |||||
| EOTEXT | EOTEXT | ||||
| , | , | ||||
| $uri, | $uri, | ||||
| $uri, | $uri, | ||||
| $uri); | $uri); | ||||
| $rows = array(); | $rows = array(); | ||||
| foreach ($fields as $field) { | foreach ($fields as $field) { | ||||
| $aliases = $field->getAliases(); | $aliases = array_slice($field->getAllReadValueFromRequestKeys(), 1); | ||||
| if (!$aliases) { | if (!$aliases) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| $rows[] = array( | $rows[] = array( | ||||
| $field->getLabel(), | $field->getLabel(), | ||||
| $field->getKey(), | $field->getKey(), | ||||
| implode(', ', $aliases), | implode(', ', $aliases), | ||||
| ); | ); | ||||
| ▲ Show 20 Lines • Show All 97 Lines • Show Last 20 Lines | |||||