Differential D14635 Diff 35412 src/applications/transactions/editengine/PhabricatorEditEngineAPIMethod.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/editengine/PhabricatorEditEngineAPIMethod.php
| Show First 20 Lines • Show All 173 Lines • ▼ Show 20 Lines | foreach ($types as $type) { | ||||
| $type->getTransactionType()); | $type->getTransactionType()); | ||||
| $section[] = null; | $section[] = null; | ||||
| $type_description = pht( | $type_description = pht( | ||||
| 'Use `%s` to select this edit type.', | 'Use `%s` to select this edit type.', | ||||
| $type->getEditType()); | $type->getEditType()); | ||||
| $value_type = $type->getValueType(); | $value_type = $type->getValueType(); | ||||
| if (!strlen($value_type)) { | |||||
| $value_type = '?'; | |||||
| } | |||||
| $value_description = $type->getValueDescription(); | $value_description = $type->getValueDescription(); | ||||
| $table = array(); | $table = array(); | ||||
| $table[] = "| {$key} | {$head_type} | {$description} |"; | $table[] = "| {$key} | {$head_type} | {$description} |"; | ||||
| $table[] = '|--------|--------------|----------------|'; | $table[] = '|--------|--------------|----------------|'; | ||||
| $table[] = "| `type` | `const` | {$type_description} |"; | $table[] = "| `type` | `const` | {$type_description} |"; | ||||
| $table[] = "| `value` | `{$value_type}` | {$value_description} |"; | $table[] = "| `value` | `{$value_type}` | {$value_description} |"; | ||||
| $section[] = implode("\n", $table); | $section[] = implode("\n", $table); | ||||
| Show All 9 Lines | |||||