mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-29 02:02:41 +01:00
44 lines
909 B
PHP
44 lines
909 B
PHP
|
<?php
|
||
|
|
||
|
final class NuancePhabricatorFormSourceDefinition
|
||
|
extends NuanceSourceDefinition {
|
||
|
|
||
|
public function getName() {
|
||
|
return pht('Phabricator Form');
|
||
|
}
|
||
|
|
||
|
public function getSourceTypeConstant() {
|
||
|
return 'phabricator-form';
|
||
|
}
|
||
|
|
||
|
public function updateItems() {
|
||
|
return null;
|
||
|
}
|
||
|
|
||
|
protected function augmentEditForm(
|
||
|
AphrontFormView $form,
|
||
|
PhabricatorApplicationTransactionValidationException $ex = null) {
|
||
|
|
||
|
/* TODO - add a box to allow for custom fields to be defined here, so that
|
||
|
* these NuanceSource objects made from this defintion can be used to
|
||
|
* capture arbitrary data */
|
||
|
|
||
|
return $form;
|
||
|
}
|
||
|
|
||
|
protected function buildTransactions(AphrontRequest $request) {
|
||
|
$transactions = parent::buildTransactions($request);
|
||
|
|
||
|
// TODO -- as above
|
||
|
|
||
|
return $transactions;
|
||
|
}
|
||
|
|
||
|
public function renderView() {
|
||
|
}
|
||
|
|
||
|
public function renderListView() {
|
||
|
}
|
||
|
|
||
|
}
|