Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/customfield/field/PhabricatorCustomFieldList.php
| Show First 20 Lines • Show All 194 Lines • ▼ Show 20 Lines | foreach ($fields as $key => $field) { | ||||
| } | } | ||||
| $view->addTextContent($value); | $view->addTextContent($value); | ||||
| break; | break; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| public function appendFieldsToListItem( | |||||
| PhabricatorCustomFieldInterface $object, | |||||
| PhabricatorUser $viewer, | |||||
| PHUIObjectItemView $view) { | |||||
| foreach ($this->fields as $field) { | |||||
| $field->setViewer($viewer); | |||||
| $field->renderOnListItem($view); | |||||
| } | |||||
| } | |||||
| public function buildFieldTransactionsFromRequest( | public function buildFieldTransactionsFromRequest( | ||||
| PhabricatorApplicationTransaction $template, | PhabricatorApplicationTransaction $template, | ||||
avivey: this can be one loop | |||||
| AphrontRequest $request) { | AphrontRequest $request) { | ||||
| $xactions = array(); | $xactions = array(); | ||||
| $role = PhabricatorCustomField::ROLE_APPLICATIONTRANSACTIONS; | $role = PhabricatorCustomField::ROLE_APPLICATIONTRANSACTIONS; | ||||
| foreach ($this->fields as $field) { | foreach ($this->fields as $field) { | ||||
| if (!$field->shouldEnableForRole($role)) { | if (!$field->shouldEnableForRole($role)) { | ||||
| continue; | continue; | ||||
| ▲ Show 20 Lines • Show All 116 Lines • Show Last 20 Lines | |||||
this can be one loop