Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/type/PhabricatorConfigType.php
Show All 23 Lines | public function readValueFromRequest( | ||||
PhabricatorConfigOption $option, | PhabricatorConfigOption $option, | ||||
AphrontRequest $request) { | AphrontRequest $request) { | ||||
$http_type = $this->newHTTPParameterType(); | $http_type = $this->newHTTPParameterType(); | ||||
return $http_type->getValue($request, 'value'); | return $http_type->getValue($request, 'value'); | ||||
} | } | ||||
abstract protected function newHTTPParameterType(); | abstract protected function newHTTPParameterType(); | ||||
public function validateValue(PhabricatorConfigOption $option, $value) { | |||||
return array(); | |||||
} | |||||
public function newTransaction( | public function newTransaction( | ||||
PhabricatorConfigOption $option, | PhabricatorConfigOption $option, | ||||
$value) { | $value) { | ||||
$xaction_value = $this->newTransactionValue($option, $value); | $xaction_value = $this->newTransactionValue($option, $value); | ||||
return id(new PhabricatorConfigTransaction()) | return id(new PhabricatorConfigTransaction()) | ||||
->setTransactionType(PhabricatorConfigTransaction::TYPE_EDIT) | ->setTransactionType(PhabricatorConfigTransaction::TYPE_EDIT) | ||||
▲ Show 20 Lines • Show All 72 Lines • Show Last 20 Lines |