Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2892343
PhabricatorSearchTextField.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
662 B
Referenced Files
None
Subscribers
None
PhabricatorSearchTextField.php
View Options
<?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
Details
Attached
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)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment