Page Menu
Home
WMGMC Issues
搜索
Configure Global Search
登录
Files
F16109
ConduitUserListParameterType.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
订阅
标记用于日后
授予令牌
Size
866 B
Referenced Files
None
订阅者
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
详情
附加的
Mime Type
text/x-php
Expires
9月 11 Thu, 1:46 PM (22 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5580
默认替代文本
ConduitUserListParameterType.php (866 B)
Attached To
Mode
rP phorge
附加的
Detach File
Event Timeline
Log In to Comment