Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F78625401
AphrontProjectListHTTPParameterType.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
Thu, Aug 22, 01:34
Size
1 KB
Mime Type
text/x-php
Expires
Sat, Aug 24, 01:34 (2 d)
Engine
blob
Format
Raw Data
Handle
20077872
Attached To
rPH Phabricator
AphrontProjectListHTTPParameterType.php
View Options
<?php
final
class
AphrontProjectListHTTPParameterType
extends
AphrontListHTTPParameterType
{
protected
function
getParameterValue
(
AphrontRequest
$request
,
$key
)
{
$type
=
new
AphrontStringListHTTPParameterType
();
$list
=
$this
->
getValueWithType
(
$type
,
$request
,
$key
);
return
id
(
new
PhabricatorProjectPHIDResolver
())
->
setViewer
(
$this
->
getViewer
())
->
resolvePHIDs
(
$list
);
}
protected
function
getParameterTypeName
()
{
return
'list<project>'
;
}
protected
function
getParameterFormatDescriptions
()
{
return
array
(
pht
(
'Comma-separated list of project PHIDs.'
),
pht
(
'List of project PHIDs, as array.'
),
pht
(
'Comma-separated list of project hashtags.'
),
pht
(
'List of project hashtags, as array.'
),
pht
(
'Mixture of hashtags and PHIDs.'
),
);
}
protected
function
getParameterExamples
()
{
return
array
(
'v=PHID-PROJ-1111'
,
'v=PHID-PROJ-1111,PHID-PROJ-2222'
,
'v=hashtag'
,
'v=frontend,backend'
,
'v[]=PHID-PROJ-1111&v[]=PHID-PROJ-2222'
,
'v[]=frontend&v[]=backend'
,
'v=PHID-PROJ-1111,frontend'
,
'v[]=PHID-PROJ-1111&v[]=backend'
,
);
}
}
Event Timeline
Log In to Comment