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 addFieldsToListViewItem( | |||||
PhabricatorCustomFieldInterface $object, | |||||
PhabricatorUser $viewer, | |||||
PHUIObjectItemView $view) { | |||||
foreach ($this->fields as $field) { | |||||
if ($field->shouldAppearInListView()) { | |||||
$field->setViewer($viewer); | |||||
$field->renderOnListItem($view); | |||||
} | |||||
} | |||||
} | |||||
public function buildFieldTransactionsFromRequest( | public function buildFieldTransactionsFromRequest( | ||||
PhabricatorApplicationTransaction $template, | PhabricatorApplicationTransaction $template, | ||||
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) { | ||||
▲ Show 20 Lines • Show All 118 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0