Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F82779626
ConduitUserListParameterType.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Sep 13, 09:29
Size
866 B
Mime Type
text/x-php
Expires
Sun, Sep 15, 09:29 (2 d)
Engine
blob
Format
Raw Data
Handle
20752078
Attached To
rPH Phabricator
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"]'
,
);
}
}
Event Timeline
Log In to Comment