Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2992401
ConduitUserListParameterType.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
866 B
Referenced Files
None
Subscribers
None
ConduitUserListParameterType.php
View Options
<?php
final
class
ConduitUserListParameterType
extends
ConduitListParameterType
{
protected
function
getParameterValue
(
array
$request
,
$key
,
$strict
)
{
$list
=
parent
::
getParameterValue
(
$request
,
$key
,
$strict
)
;
$list
=
$this
->
parseStringList
(
$request
,
$key
,
$list
,
$strict
)
;
return
id
(
new
PhabricatorUserPHIDResolver
(
)
)
->
setViewer
(
$this
->
getViewer
(
)
)
->
resolvePHIDs
(
$list
)
;
}
protected
function
getParameterTypeName
(
)
{
return
'list<user>'
;
}
protected
function
getParameterFormatDescriptions
(
)
{
return
array
(
pht
(
'List of user PHIDs.'
)
,
pht
(
'List of usernames.'
)
,
pht
(
'List with a mixture of PHIDs and usernames.'
)
,
)
;
}
protected
function
getParameterExamples
(
)
{
return
array
(
'["PHID-USER-1111"]'
,
'["alincoln"]'
,
'["PHID-USER-2222", "alincoln"]'
,
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Feb 23, 08:31 (1 d, 16 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1120948
Default Alt Text
ConduitUserListParameterType.php (866 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment