Differential D14515 Diff 35178 src/applications/transactions/view/PhabricatorApplicationEditHTTPParameterHelpView.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/view/PhabricatorApplicationEditHTTPParameterHelpView.php
| Show All 36 Lines | public function render() { | ||||
| $uri = 'https://your.install.com/application/edit/'; | $uri = 'https://your.install.com/application/edit/'; | ||||
| // Remove fields which do not expose an HTTP parameter type. | // Remove fields which do not expose an HTTP parameter type. | ||||
| $types = array(); | $types = array(); | ||||
| foreach ($fields as $key => $field) { | foreach ($fields as $key => $field) { | ||||
| $type = $field->getHTTPParameterType(); | $type = $field->getHTTPParameterType(); | ||||
| if ($type === null) { | if ($type === null) { | ||||
| unset($fields[$key]); | unset($fields[$key]); | ||||
| continue; | |||||
| } | } | ||||
| $types[$type->getTypeName()] = $type; | $types[$type->getTypeName()] = $type; | ||||
| } | } | ||||
| $intro = pht(<<<EOTEXT | $intro = pht(<<<EOTEXT | ||||
| When creating objects in the web interface, you can use HTTP parameters to | When creating objects in the web interface, you can use HTTP parameters to | ||||
| prefill fields in the form. This allows you to quickly create a link to a | prefill fields in the form. This allows you to quickly create a link to a | ||||
| form with some of the fields already filled in with default values. | form with some of the fields already filled in with default values. | ||||
| ▲ Show 20 Lines • Show All 205 Lines • Show Last 20 Lines | |||||