2013-11-20 22:41:19 +01:00
|
|
|
<?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
|
2015-05-22 09:27:56 +02:00
|
|
|
* these NuanceSource objects made from this definition can be used to
|
2013-11-20 22:41:19 +01:00
|
|
|
* capture arbitrary data */
|
|
|
|
|
|
|
|
return $form;
|
|
|
|
}
|
|
|
|
|
|
|
|
protected function buildTransactions(AphrontRequest $request) {
|
|
|
|
$transactions = parent::buildTransactions($request);
|
|
|
|
|
|
|
|
// TODO -- as above
|
|
|
|
|
|
|
|
return $transactions;
|
|
|
|
}
|
|
|
|
|
2014-09-09 22:49:56 +02:00
|
|
|
public function renderView() {}
|
2013-11-20 22:41:19 +01:00
|
|
|
|
2014-09-09 22:49:56 +02:00
|
|
|
public function renderListView() {}
|
2013-11-20 22:41:19 +01:00
|
|
|
|
|
|
|
}
|