Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/type/PhabricatorTextConfigType.php
- This file was added.
<?php | |||||
abstract class PhabricatorTextConfigType | |||||
extends PhabricatorConfigType { | |||||
public function isValuePresentInRequest( | |||||
PhabricatorConfigOption $option, | |||||
AphrontRequest $request) { | |||||
$value = parent::readValueFromRequest($option, $request); | |||||
return (bool)strlen($value); | |||||
} | |||||
protected function newHTTPParameterType() { | |||||
return new AphrontStringHTTPParameterType(); | |||||
} | |||||
protected function newControl(PhabricatorConfigOption $option) { | |||||
return new AphrontFormTextControl(); | |||||
} | |||||
} |