Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2893412
SemiStructuredObjectTypePHIDSearchField.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
840 B
Referenced Files
None
Subscribers
None
SemiStructuredObjectTypePHIDSearchField.php
View Options
<?php
final
class
SemiStructuredObjectTypePHIDSearchField
extends
PhabricatorSearchField
{
private
$value
;
public
function
setValue
(
string
$value
)
{
$this
->
value
=
$value
;
return
$this
;
}
public
function
readValueFromRequest
(
AphrontRequest
$request
)
{
$id
=
$request
->
getURIData
(
'typeid'
)
;
if
(
$id
===
null
)
{
return
null
;
}
$object_type
=
SemiStructuredObjectTypeQuery
::
loadOneById
(
$this
->
getViewer
(
)
,
$id
)
;
return
array
(
$object_type
->
getPHID
(
)
)
;
}
protected
function
getValueFromRequest
(
AphrontRequest
$request
,
$key
)
{
throw
new
Exception
(
'Did not expect call'
)
;
}
protected
function
getValueForControl
(
)
{
return
$this
->
value
;
}
protected
function
newControl
(
)
{
return
id
(
new
AphrontFormMarkupControl
(
)
)
->
setValue
(
$this
->
value
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 18:21 (1 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1127390
Default Alt Text
SemiStructuredObjectTypePHIDSearchField.php (840 B)
Attached To
Mode
R6 Semi Structured
Attached
Detach File
Event Timeline
Log In to Comment