3 final class PhabricatorStandardCustomFieldText
4 extends PhabricatorStandardCustomField
{
6 public function getFieldType() {
10 public function buildFieldIndexes() {
13 $value = $this->getFieldValue();
15 $indexes[] = $this->newStringIndex($value);
21 public function readApplicationSearchValueFromRequest(
22 PhabricatorApplicationSearchEngine
$engine,
23 AphrontRequest
$request) {
25 return $request->getStr($this->getFieldKey());
28 public function applyApplicationSearchConstraintToQuery(
29 PhabricatorApplicationSearchEngine
$engine,
30 PhabricatorCursorPagedPolicyAwareQuery
$query,
34 $query->withApplicationSearchContainsConstraint(
35 $this->newStringIndex(null),
40 public function appendToApplicationSearchForm(
41 PhabricatorApplicationSearchEngine
$engine,
42 AphrontFormView
$form,
46 id(new AphrontFormTextControl())
47 ->setLabel($this->getFieldName())
48 ->setName($this->getFieldKey())
52 public function shouldAppearInHerald() {
56 public function getHeraldFieldConditions() {
58 HeraldAdapter
::CONDITION_CONTAINS
,
59 HeraldAdapter
::CONDITION_NOT_CONTAINS
,
60 HeraldAdapter
::CONDITION_IS
,
61 HeraldAdapter
::CONDITION_IS_NOT
,
62 HeraldAdapter
::CONDITION_REGEXP
,
63 HeraldAdapter
::CONDITION_NOT_REGEXP
,
67 public function getHeraldFieldStandardType() {
68 return HeraldField
::STANDARD_TEXT
;
71 protected function getHTTPParameterType() {
72 return new AphrontStringHTTPParameterType();
75 public function getConduitEditParameterType() {
76 return new ConduitStringParameterType();
79 protected function newExportFieldType() {
80 return new PhabricatorStringExportField();