Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F478884
PhabricatorTokenSearchField.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
750 B
Referenced Files
None
Subscribers
None
PhabricatorTokenSearchField.php
View Options
<?php
final
class
PhabricatorTokenSearchField
extends
PhabricatorSearchTokenizerField
{
protected
function
getDefaultValue
()
{
return
array
();
}
protected
function
newDatasource
()
{
return
new
PhabricatorTokenDatasource
();
}
protected
function
getValueFromRequest
(
AphrontRequest
$request
,
$key
)
{
$list
=
$this
->
getListFromRequest
(
$request
,
$key
);
$phids
=
array
();
$slugs
=
array
();
$token_type
=
PhabricatorTokenTokenPHIDType
::
TYPECONST
;
foreach
(
$list
as
$item
)
{
$type
=
phid_get_type
(
$item
);
if
(
$type
==
$token_type
)
{
$phids
[]
=
$item
;
}
}
return
$phids
;
}
protected
function
newConduitParameterType
()
{
return
new
ConduitPHIDListParameterType
();
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, May 7, 8:28 AM (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
88612
Default Alt Text
PhabricatorTokenSearchField.php (750 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment