Page MenuHomePhorge

PhabricatorSearchTextField.php
No OneTemporary

PhabricatorSearchTextField.php

<?php
final class PhabricatorSearchTextField
extends PhabricatorSearchField {
protected function getDefaultValue() {
return '';
}
protected function getValueFromRequest(AphrontRequest $request, $key) {
return $request->getStr($key);
}
protected function validateControlValue($value) {
if (!is_array($value)) {
return;
}
$this->addError(
pht('Invalid'),
pht('Text value for "%s" can not be parsed.', $this->getLabel()));
}
protected function newControl() {
return new AphrontFormTextControl();
}
protected function newConduitParameterType() {
return new ConduitStringParameterType();
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Jan 19, 16:39 (2 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1126563
Default Alt Text
PhabricatorSearchTextField.php (662 B)

Event Timeline